Re: [netcdfgroup] easiest way to add an attribute to a variable in a netCDF file?

From the NCO Users guide

> Alternatively, one may use ncatted (see ncatted netCDF Attribute Editor) to 
> add a _FillValue attribute to all variables
> 
>           ncatted -O -a _FillValue,,o,f,1.0e36 inout.nc

-Roy

On Aug 12, 2011, at 11:01 AM, 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/ 

**********************
"The contents of this message do not reflect any position of the U.S. 
Government or NOAA."
**********************
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division
Southwest Fisheries Science Center
1352 Lighthouse Avenue
Pacific Grove, CA 93950-2097

e-mail: Roy.Mendelssohn@xxxxxxxx (Note new e-mail address)
voice: (831)-648-9029
fax: (831)-648-8440
www: http://www.pfeg.noaa.gov/

"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected" 
"the arc of the moral universe is long, but it bends toward justice" -MLK Jr.



  • 2011 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: