<div dir="ltr">Thanks Dave!  This was exactly what I was looking for.<div><br></div><div>Liz.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 20, 2015 at 12:50 PM, David Brown <span dir="ltr">&lt;<a href="mailto:dbrown@ucar.edu" target="_blank">dbrown@ucar.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Liz,<br>
<br>
Use the procedure, replace_ieeenan.<br>
(<a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/replace_ieeenan.shtml" target="_blank">https://www.ncl.ucar.edu/Document/Functions/Built-in/replace_ieeenan.shtml</a>)<br>
 -dave<br>
<div><div class="h5"><br>
On Tue, Jan 20, 2015 at 12:27 PM, Elizabeth Burakowski<br>
&lt;<a href="mailto:burakows@ucar.edu">burakows@ucar.edu</a>&gt; wrote:<br>
&gt; I&#39;m running into an issue with missing values set to &#39;-nan&#39;.<br>
&gt;<br>
&gt; dir= &quot;/glade/p/work/burakows/nohrsc/mNOHRSC_mslt_200811_200904/&quot;<br>
&gt; fils= systemfunc(&quot;cd &quot;+dir+&quot; ; ls avg*.nc&quot;)<br>
&gt; a=addfiles(dir+fils(1:4)+&quot;.nc&quot;,&quot;r&quot;)<br>
&gt; ListSetType(a,&quot;join&quot;)<br>
&gt; b=a[:]-&gt;z<br>
&gt;<br>
&gt; printVarSummary(b)  ; note that b@_FillValue is set to -nan &amp; actual range<br>
&gt; (0, 653)<br>
&gt; print(min(b))             ; minimum value is showing up as -nan instead of 0<br>
&gt; print(max(b))            ; maximum value is showing up as -nan instead of<br>
&gt; 653<br>
&gt;<br>
&gt; I tried resetting the _FillValue to -9999:<br>
&gt;<br>
&gt; b@_FillValue = -9999<br>
&gt; printVarSummary(b)   ; now b@_FillValue is -9999, range is<br>
&gt;<br>
&gt; Any ideas on how to get rid of the -nan?<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; Liz.<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; ncl-talk mailing list<br>
&gt; List instructions, subscriber options, unsubscribe:<br>
&gt; <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
&gt;<br>
</blockquote></div><br></div>