comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Add a new variable to netCDF file?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Add a new variable to netCDF file? [message #78065 is a reply to message #78063] Tue, 25 October 2011 06:53 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Paul van Delst writes:

> 0) Open the existing file for writing (NCDF_OPEN)
> 1) Put the netcdf file in DEFINE mode (NCDF_CONTROL)
> 2) If required, define new dimensions (NCDF_DIMDEF)
> 3) Define the new variable (NCDF_VARDEF)
> 4) Repeat 2-3 as necessary for multiple dimensions/variables.
> 5) Put the netcdf in DATA mode (NCDF_CONTROL)
> 6) Write the new variable data to the file (NCDF_VARPUT)
> 7) Repeat 7 as necessary for multiple variables.
> 8) Close the file (NCDF_CLOSE)

My memory is shaking on this topic, but I thought it
was not possible to add a variable to a netCDF file.
Although I seem to remember some provision
for this in the latest version of netCDF. My memory
is so fuzzy, I have no confidence in it, but I recall
this being an issue with *some* version of the scientific
data sets.

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Religious Wars
Next Topic: How to determine if ENVI is loaded?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 13:57:23 PDT 2025

Total time taken to generate the page: 0.56026 seconds