[ncl-talk] Interpolation error using linint1_n

Dennis Shea shea at ucar.edu
Wed Jun 5 10:41:13 MDT 2019


[1] linint1_n is a *Built-In* library function. It is not in the
Contributed library as you indicated:
*http://www.ncl.ucar.edu/Document/Functions/Built-in/linint1_n.shtml*
<http://www.ncl.ucar.edu/Document/Functions/Built-in/linint1_n.shtml>

[2] Both xi and xo must monotonic:

h*ttp://www.ncl.ucar.edu/Document/Functions/Contributed/isMonotonic.shtml*
<ttp://www.ncl.ucar.edu/Document/Functions/Contributed/isMonotonic.shtml>

print("xi="+*isMonotonic*(xi))
print("xo="+*sMonotonic*(xo))




On Wed, Jun 5, 2019 at 9:26 AM Giorgio Graffino <g.graffino at tim.it> wrote:

> Dear NCL people,
> I want to report a (potential) error in the documentation.
>
> While looking at how to interpolate a monotonically decreasing dimension
> from a 2D variable onto another, I found the linint1 functions (
> https://www.ncl.ucar.edu/Document/Functions/Contributed/linint1_n.shtml).
> 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
>
> warning:linint1_n: xi and xo must be monotonically increasing
>
> 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?
>
> Cheers,
> Giorgio
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190605/ccd053c4/attachment.html>


More information about the ncl-talk mailing list