[ncl-talk] -nan value in Netcdf file

Xin Xi xin.xi30 at gmail.com
Thu Jul 23 13:32:40 MDT 2015


Problem solved. I made a mistake in using the replace_ieeenan function.
 Thanks.

On Thu, Jul 23, 2015 at 12:25 PM, David Brown <dbrown at ucar.edu> wrote:

> Hi Xin,
> Is it possible that all the elements of the variable are actually set
> to -nan? You could use
> num(isnan_ieee) to find out how many elements have the nan value.
> Otherwise if you are using replace_ieeenan correctly and it is clearly
> not working properly, we would like to see this NC file. Use the
> directions at http://www.ncl.ucar.edu/report_bug.shtml to upload it
> and let us know the file name. Thanks.
>  -dave
>
>
> On Thu, Jul 23, 2015 at 12:53 PM, Xin Xi <xin.xi30 at gmail.com> wrote:
> > Hi, I have a NC file containing a 2D variable with a few -nan values.
> When I
> > print min and max of the variable, it gives me -nan in both cases. I
> donot
> > know how they come from - likely due to strange model behavior. The
> variable
> > has a _FillValue property. I donot know how to remove or replace the -nan
> > values with the fill value. I tried the replace_ieeenan procedure, but it
> > replaces the entire variable with FillValue.
> > Pls help.
> > Thanks.
> > Xin
> >
> > _______________________________________________
> > ncl-talk mailing list
> > ncl-talk at ucar.edu
> > List instructions, subscriber options, unsubscribe:
> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150723/b89b4007/attachment.html 


More information about the ncl-talk mailing list