Re: created nc files

From: David Brown <dbrown_at_nyahnyahspammersnyahnyah>
Date: Tue, 14 Jul 2009 15:46:31 -0600

FYI, you can delete the attribute directly from the NetCDF file using
NCL as well:

delete(f->conint@_FillValue)

(assuming the file is open in "w" or "c" mode)

Anytime you create a variable in NCL using 'new', a _FillValue
(representing the value given to missing data) is created by default.
You can suppress its creation using:

v = new(6,float,"No_FillValue")

  -dave

On Jul 14, 2009, at 3:33 PM, Lei wrote:

> It works. Thanks. By the way, where does this attribute come from?
> Lei
>
> On Tue, Jul 14, 2009 at 4:22 PM, Adam Phillips <asphilli_at_ucar.edu>
> wrote:
> Hi Lei,
> Sure, you can simply delete the attribute from the array before you
> write the array to a netCDF file:
> delete(sst@_FillValue)
>
> Alternatively, you can remove the _FillValue from an already
> created netCDF file by using the netCDF operator ncatted:
> http://nco.sourceforge.net/nco.html#SEC87
> Adam
>
> Lei wrote:
> Hi,
> Each time I created a new nc file, there is always one attribute
> (_FillValue: -999) associated with each parameter. See the
> following example:
> float conint ( month, lat, lon )
> units : mm/day
> long_name : prcp anomaly
> _FillValue : -999
> Is there anyway to get rid of the attribute? Thanks,
> Lei
>
>
> ----------------------------------------------------------------------
> --
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
> --
> --------------------------------------------------------------
> Adam Phillips asphilli_at_ucar.edu
> National Center for Atmospheric Research tel: (303) 497-1726
> ESSL/CGD/CAS fax: (303) 497-1333
> P.O. Box 3000
> Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Jul 14 2009 - 15:46:31 MDT

This archive was generated by hypermail 2.2.0 : Thu Jul 23 2009 - 08:02:42 MDT