<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)">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. <br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)">Pls help.<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)">Thanks.<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)">Xin<br></div></div>