# linint2_points_Wrap

Interpolates from a rectilinear grid to an unstructured grid using bilinear interpolation, and retains metadata.

## Prototype

load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl" ; This library isautomatically loaded; from NCL V6.2.0 onward. ; No need for user to explicitly load. function linint2_points_Wrap ( xi : numeric, yi : numeric, fi : numeric, fiCyclicX [1] : logical, xo [*] : numeric, yo [*] : numeric, Option [1] : integer ) return_val : float or double

## Arguments

*xi*

An array that specifies the X coordinates of the *fi*
array. Most frequently, this is a 1D monotonically increasing array
that may be unequally spaced. In some cases, *xi* can be a
multi-dimensional array (see next paragraph). The rightmost dimension
(call it *nxi*) must have at least two elements, and is the
last (fastest varying) dimension of *fi*.

If *xi* is a multi-dimensional array, then each *nxi*
subsection of *xi* must be monotonically increasing, but may be
unequally spaced. All but its rightmost dimension must be the same
size as all but *fi*'s rightmost two dimensions.

*yi*

An array that specifies the Y coordinates of the *fi*
array. Most frequently, this is a 1D monotonically increasing array
that may be unequally spaced. In some cases, *yi* can be a
multi-dimensional array (see next paragraph). The rightmost dimension
(call it *nyi*) must have at least two elements, and is the
second-to-last dimension of *fi*.

If *yi* is a multi-dimensional array, then each *nyi*
subsection of *yi* must be monotonically increasing, but may be
unequally spaced. All but its rightmost dimension must be the same
size as all but *fi*'s rightmost two dimensions.

*fi*

An array of two or more dimensions. The two rightmost dimensions
(*nyi* x *nxi*) are the dimensions to be used in the
interpolation. If missing values are present, the attribute
*fi*@_FillValue must be
set appropriately.

*fiCyclicX*

An option to indicate whether the rightmost dimension of *fi*
is cyclic.

This should be set to True only if you have global data, but your longitude values don't quite wrap all the way around the globe. For example, if your longitude values go from, say, -179.75 to 179.75, or 0.5 to 359.5, then you would set this to True.

*xo*

One-dimensional array that specifies the X (longitude) coordinates of the unstructured grid.

*yo*

One-dimensional array that specifies the Y (latitude) coordinates of
the unstructured grid. It must be the same length as *xo*.

*Option*

Reserved for future use. Currently not used.

## Description

This function is identical to **linint2_points**, except the return
value will have metadata added based on metadata attached to *fi*. See
the **linint2_points** page for full documentation and examples.