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

Home » Public Forums » archive » Re: How to overwrite a variable in netCDF file?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: How to overwrite a variable in netCDF file? [message #77945] Sun, 16 October 2011 18:09
Ashley Berg is currently offline  Ashley Berg
Messages: 14
Registered: February 2011
Junior Member
I just discovered an old thread:
http://groups.google.com/group/comp.lang.idl-pvwave/browse_t hread/thread/16af888fa8fef4da

Looks like it answers my above question! Check the link if you are
curious about how to overwrite an existing variable in a netCDF file.

Thanks again.
Re: How to overwrite a variable in netCDF file? [message #77946 is a reply to message #77945] Sun, 16 October 2011 17:56 Go to previous message
Zhang Bo is currently offline  Zhang Bo
Messages: 22
Registered: October 2011
Junior Member
On Oct 16, 7:19 pm, Ashley Berg <ashley.b...@gmail.com> wrote:
> How do I overwrite a variable in a netCDF file?
>
> I have a netCDF file that contains dozens and dozens of variables, and
> I am reading one variable in and modifying it.  I want to place the
> modified variable back into the netCDF file in place of the original
> (the name and dimensions of the variable are the same as the
> original).  How do I do this?  I don't want to have to read in and
> write back out every variable into a new file.
>
> Thanks!

I work more closely with grib2 rather than netCDF format. My
experience is there are other scripts can be used for manipulating
meteorological more efficiently. Since they have build-in functions
for specific purpose just like your. I suspect that GrADS may have
packages for data replacing. Sorry for no further help.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How to overwrite a variable in netCDF file?
Next Topic: Return array from a pro

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

Current Time: Wed Oct 08 13:40:19 PDT 2025

Total time taken to generate the page: 0.00599 seconds