[ncl-talk] Editing a netcdf4 file

Dustan Wheatley - NOAA Affiliate dustan.wheatley at noaa.gov
Fri May 29 14:54:33 MDT 2015


I am trying to overwrite a netcdf4 file analogous to what is shown at
http://www.ncl.ucar.edu/Applications/change_netCDF.shtml
<https://exchange.ou.edu/owa/redir.aspx?C=owjNhXjJeU2q3l_CtHOdFTi5otfobdIIrQJSmDqpIJwEqeu5PSxBrYF-uWWKJzwXX3oP_TJTgXA.&URL=http%3a%2f%2fwww.ncl.ucar.edu%2fApplications%2fchange_netCDF.shtml>.
In the attached ncl script, I open the file to be modified at line 35 and
attempt the modification at line 73 (with a lot of calculations in
between).  While I have double-checked that the modified field (var_mod)
has the same dimensionality as the original variable (QRAIN), I am still
get a segmentation fault/core dump.  Never had this problem when I tried to
manipulate netcdf3 files.  Could it possibly be related to the netcdf4
compression?  It’s possible I may be trying to do something that’s no
longer possible.

Thanks in advance for any suggestions.

-Dusty Wheatley
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150529/0bf945e8/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rtpp.ncl
Type: application/octet-stream
Size: 3971 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150529/0bf945e8/attachment.obj 


More information about the ncl-talk mailing list