<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)">Problem solved. I made a mistake in using the replace_ieeenan function.<br> Thanks.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 23, 2015 at 12:25 PM, David Brown <span dir="ltr"><<a href="mailto:dbrown@ucar.edu" target="_blank">dbrown@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Xin,<br>
Is it possible that all the elements of the variable are actually set<br>
to -nan? You could use<br>
num(isnan_ieee) to find out how many elements have the nan value.<br>
Otherwise if you are using replace_ieeenan correctly and it is clearly<br>
not working properly, we would like to see this NC file. Use the<br>
directions at <a href="http://www.ncl.ucar.edu/report_bug.shtml" rel="noreferrer" target="_blank">http://www.ncl.ucar.edu/report_bug.shtml</a> to upload it<br>
and let us know the file name. Thanks.<br>
-dave<br>
<span class="im HOEnZb"><br>
<br>
On Thu, Jul 23, 2015 at 12:53 PM, Xin Xi <<a href="mailto:xin.xi30@gmail.com">xin.xi30@gmail.com</a>> wrote:<br>
</span><div class="HOEnZb"><div class="h5">> Hi, I have a NC file containing a 2D variable with a few -nan values. When I<br>
> print min and max of the variable, it gives me -nan in both cases. I donot<br>
> know how they come from - likely due to strange model behavior. The variable<br>
> has a _FillValue property. I donot know how to remove or replace the -nan<br>
> values with the fill value. I tried the replace_ieeenan procedure, but it<br>
> replaces the entire variable with FillValue.<br>
> Pls help.<br>
> Thanks.<br>
> Xin<br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> ncl-talk mailing list<br>
> <a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
> List instructions, subscriber options, unsubscribe:<br>
> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
><br>
</div></div></blockquote></div><br></div>