c_cssgrid(3NCARG) | NCAR GRAPHICS | c_cssgrid(3NCARG) |
c_cssgrid - tension spline interpolation on a sphere
float *c_cssgrid(int, float [], float [], float [],
int, int, float [], float [], int *);
float *c_cssgrid (n, rlat, rlon, f, ni, nj, plat, plon, ier)
c_cssgrid is called to find an interpolating tension spline for randomly positioned data on a unit sphere.
c_cssgrid returns a pointer to a linear array of data that contains interpolated values at user-specified lat/lon pairs. The returned array stores its values as if they were a 2-dimensional C array with latitude being the first dimension and longitude the second dimension. That is, if out is declared as
float *out;
and we set:
out = c_cssgrid(n, rlat, rlon, f, nlat, nlon, plat, plon, &ier);
then out[i*nlon+j] is the interpolated function value at coordinate point (plat[i], plon[j]) for 0 <= i < nlat and 0 <= j < nlon. The space for out is allocated internal to c_cssgrid and is nlat * nlon floats in size.
To use c_cssgrid, load the NCAR Graphics library ngmath.
css_overview, cssgrid_errors
Complete documentation for Cssgrid is available at URL
http://ngwww.ucar.edu/ngdoc/ng/ngmath/cssgrid/csshome.html
Copyright (C) 2000
University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.
May 2000 | UNIX |