<div dir="ltr"><div><div>Hi,<br><br></div>I took a look at the script you provided, and all the data in the variable data1 read from the file are missing. In any case, I'm confused as to how it relates to the problem you describe with linint1_n(). Are you sure the variables are monotonic -- what does the function isMonotonic() report for those variables?<br><br><a href="http://ncl.ucar.edu/Document/Functions/Contributed/isMonotonic.shtml">http://ncl.ucar.edu/Document/Functions/Contributed/isMonotonic.shtml</a><br><br></div>Rick<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 22, 2017 at 6:34 PM, Zhifeng Yang <span dir="ltr"><<a href="mailto:yangzf01@gmail.com" target="_blank">yangzf01@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi<br><br></div>I am using the function "linint1_n" to interpolate the array to a new array. But I got the following error while I am using it. Here is the error.<br><div><div><br>warning:linint1_n: xi and xo must be monotonically increasing<br><br></div><div>There are some missing values in xi array, but xi and xo are both monotonically increasing except the missing values part. Actually I used linint2 before which was fine with missing values if I set the attribute "_FillValue". I am not sure why linint1_n has this error.<br><br></div><div>Here I used <br>res@gsnDebugWriteFileName = "formary"<br></div><div>to generat "formary.ncl" and "<a href="http://formary.nc" target="_blank">formary.nc</a>" file for your reference. See the attachment.<br><br></div><div>Thank you very much.<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div>Zhifeng<br><br></div><div><br></div></font></span></div></div>
<br>______________________________<wbr>_________________<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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>