<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"><<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 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>
<<a href="mailto:burakows@ucar.edu">burakows@ucar.edu</a>> wrote:<br>
> I'm running into an issue with missing values set to '-nan'.<br>
><br>
> dir= "/glade/p/work/burakows/nohrsc/mNOHRSC_mslt_200811_200904/"<br>
> fils= systemfunc("cd "+dir+" ; ls avg*.nc")<br>
> a=addfiles(dir+fils(1:4)+".nc","r")<br>
> ListSetType(a,"join")<br>
> b=a[:]->z<br>
><br>
> printVarSummary(b) ; note that b@_FillValue is set to -nan & actual range<br>
> (0, 653)<br>
> print(min(b)) ; minimum value is showing up as -nan instead of 0<br>
> print(max(b)) ; maximum value is showing up as -nan instead of<br>
> 653<br>
><br>
> I tried resetting the _FillValue to -9999:<br>
><br>
> b@_FillValue = -9999<br>
> printVarSummary(b) ; now b@_FillValue is -9999, range is<br>
><br>
> Any ideas on how to get rid of the -nan?<br>
><br>
> Thanks,<br>
><br>
> Liz.<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> ncl-talk mailing list<br>
> List instructions, subscriber options, unsubscribe:<br>
> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
><br>
</blockquote></div><br></div>