<div dir="ltr"><div>[1] linint1_n is a <b>Built-In</b> library function. It is not in the Contributed library as you indicated:<br></div><div><a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/linint1_n.shtml"><b>http://www.ncl.ucar.edu/Document/Functions/Built-in/linint1_n.shtml</b></a></div><div><br></div><div>[2] Both xi and xo must monotonic:</div><div><br></div><div>h<a href="ttp://www.ncl.ucar.edu/Document/Functions/Contributed/isMonotonic.shtml"><b>ttp://www.ncl.ucar.edu/Document/Functions/Contributed/isMonotonic.shtml</b></a></div><div><br></div><div>print("xi="+<b>isMonotonic</b>(xi))</div><div>print("xo="+<b>sMonotonic</b>(xo))</div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 5, 2019 at 9:26 AM Giorgio Graffino <<a href="mailto:g.graffino@tim.it">g.graffino@tim.it</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Dear NCL people,</div><div>I want to report a (potential) error in the documentation.</div><div><br></div><div>While looking at how to interpolate a monotonically decreasing dimension from a 2D variable onto another, I found the linint1 functions (<a href="https://www.ncl.ucar.edu/Document/Functions/Contributed/linint1_n.shtml" target="_blank">https://www.ncl.ucar.edu/Document/Functions/Contributed/linint1_n.shtml</a>). It is said that the relevant dimension "must be strictly monotonically increasing or decreasing". However, when I run the function no output variable is created and the following warning appears</div><div><br></div><div> warning:linint1_n: xi and xo must be monotonically increasing</div><div><br></div><div>I'm using NCL 6.3.0 (quite old, I know) on a Linux cluster. Could it be the reason why a monotonically decreasing dimension is not accepted? Or is the documentation wrong?<br></div><div><br></div><div>Cheers,</div><div>Giorgio<br></div>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">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>
</blockquote></div>