NCO has an attribute edit utility called ncatted.
http://nco.sourceforge.net/nco.html#ncatted-netCDF-Attribute-Editor
Dan
On Fri, 2011-08-12 at 13:01 -0500, Lynnes, Christopher S. (GSFC-6102)
wrote:
> I have a netCDF file which is missing its _FillValue attributes. I know what
> they are supposed to be, so is there a utility that will let me add them, or
> do I need to write a piece of code to do it? Something like ncrename, but
> where I can add attribute and value if not there?
> --
> Dr. Christopher Lynnes NASA/GSFC, Code 610.2 phone: 301-614-5185
>
>
> _______________________________________________
> netcdfgroup mailing list
> netcdfgroup@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe, visit:
> http://www.unidata.ucar.edu/mailing_lists/
>
--
Dan Kokron
Global Modeling and Assimilation Office
NASA Goddard Space Flight Center
Greenbelt, MD 20771
Daniel.S.Kokron@xxxxxxxx
Phone: (301) 614-5192
Fax: (301) 614-5304