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

Home » Public Forums » archive » Re: Deleting a variable from a 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: Deleting a variable from a NetCDF file [message #49484 is a reply to message #49477] Mon, 24 July 2006 15:03 Go to previous messageGo to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
alexzcervantes@gmail.com wrote:
> How about overwriting a variable in a NetCDF file?
>
> My problem is that I have to overwrite a variable in a NetCDF file. I
> was thinking of deleting the variable, and then writing my new
> variable.
>
> Is there a flag that will allow me to just overwrite the variable?

Will the new variable have the same data type and dimensions as the
original? Then just rename it (NCDF_VARRENAME) and then overwrite the
data (NCDF_VARPUT).

Otherwise you have to make a new file, copy over all the stuff you want
to keep, add the new stuff. The netCDF operators (NCO) are good for this
sort of thing:

http://nco.sourceforge.net/

--
Mark Hadfield "Kei puwaha te tai nei, Hoea tahi tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Array comparison
Next Topic: Re: Draw Widget in GUIBuilder?

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

Current Time: Fri Oct 10 17:04:12 PDT 2025

Total time taken to generate the page: 0.95833 seconds