[ncl-talk] Writing to to new netcdf file after replacing NaNf

Dennis Shea shea at ucar.edu
Fri Nov 20 08:27:04 MST 2015


I am not sure why the message is being generated.

The created file seems correct (no NaN values)

ncl 0> f = addfile("ETo_daily_UT_Brazil_v1_20070101_20131231a.nc","r")
ncl 1> print(f)
ncl 2> x = f->ETo
ncl 3> nNaN = num(isnan_ieee(x))
ncl 4> print(nNaN)                             ==> 0

===

FYI: If the 'Eto' is reference evapotranspiration then you should be
aware that the next release of NCL

http://www.ncl.ucar.edu/future_release.shtml

will have a suite of functions:

Crop & Evapotranspiration -
Suite of functions for computing crop water requirements based upon
FAO Irrigation and drainage paper 56 including Penman-Monteith
estimates of reference evapotranspiration.


On Fri, Nov 20, 2015 at 7:07 AM, Freddie Mpelasoka
<freddie.mpelasoka at gmail.com> wrote:
> I have a file containing NaNf as missing values that are not
> recognized by standard tools except "ncdump". I tried hard to get rid
> of NaNf but I got stuck in write the clean data to a new netcdf file.
> I get the following error:
>
> fatal:["NclFile.c":432]:FileAddVar: an error occurred while adding a
> variable to a file, check to make sure data type is supported by the
> output format
> fatal:["Execute.c":8575]:Execute: Error occurred at or near line 67 in
> file replaceNaN.ncl
>
> I will be grateful for your help. I have attached my small script and
> the file containg NaNf.
>
> Cheers, Freddie
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: replaceNaN.ncl
Type: application/octet-stream
Size: 1641 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20151120/d30e7c41/attachment.obj 


More information about the ncl-talk mailing list