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 #78063] Tue, 25 October 2011 06:49 Go to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article <j86e3h$5of$1@speranza.aioe.org>,
Paul van Delst <paul.vandelst@noaa.gov> wrote:

> Hello,
>
> Ashley Berg wrote:
>> So, I know how to overwrite a variable in a netCDF file, but how do I
>> add a new one?
>
> 0) Open the existing file for writing (NCDF_OPEN)
.
.
.
> 8) Close the file (NCDF_CLOSE)
>
> cheers,
>
> paulv

And, by the way, this usually requires creating a new file and
copying the contents of the original file. So, it may not be very
efficient, and you probably want to operate on a *copy* of your input
file in case something goes wrong during the process.

Cheers, Ken Bowman
[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: Wed Oct 08 14:09:59 PDT 2025

Total time taken to generate the page: 0.00246 seconds