[ncl-talk] -nan value in Netcdf file

Dennis Shea shea at ucar.edu
Thu Jul 23 13:25:39 MDT 2015


Under functions you could perform a case sensitive search for NaN

http://www.ncl.ucar.edu/Document/Functions/Built-in/isnan_ieee.shtml
http://www.ncl.ucar.edu/Document/Functions/Built-in/replace_ieeenan.shtml

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
>


More information about the ncl-talk mailing list