[ncl-talk] -nan value in Netcdf file

David Brown dbrown at ucar.edu
Thu Jul 23 13:25:55 MDT 2015


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
>


More information about the ncl-talk mailing list