ncl_c_nnpntinits man page

c_nnpntinits — Enter single point mode

Function Prototype

void c_nnpntinits(int, float [], float [], float []);

Synopsis

void c_nnpntinits (npnts, x, y, z);

Description

npnts
The number of input data points. (npnts > 2)
x
An array of size npnts containing the X coordinates of the input data points.
y
An array of size npnts containing the Y coordinates of the input data points.
z
An array of size npnts containing the functional values of the input data points. That is, z[n] is the value of the input function at coordinate (x[n],y[n]), for 0 <= n < npnts.

Usage

This function is invoked when you want to interpolate at individal points. It is an initialization routine that sets up some internal variables and does this initial triangulation. To actually do the interplation, use function c_nnpnts. To terminate single point mode, use the function c_nnpntend.

Access

To use c_nnpntinits, load the NCAR Graphics library ngmath.

See Also

natgrid, natgrid_params, c_natgrids, c_nnpnts, c_nnpntend.

Complete documentation for Natgrid is available at URL
http://ngwww.ucar.edu/ngdoc/ng/ngmath/n…

Info

March 1997-1998 UNIX NCAR GRAPHICS