| c_csa3s(3NCARG) | NCAR GRAPHICS | c_csa3s(3NCARG) |
c_csa3s - cubic spline approximation, simple entry for three-dimensional input, gridded output
float *c_csa3s(int, float [], float [], float [], float [], int [], int, int,
int, float [], float [], float [], int *);
float *c_csa3s (int n, float xi[], float yi[], float zi[],
float ui[], int knots[3], int nxo, int nyo,
int nzo, float xo[], float yo[], float zo[],
int *ier);
c_csa3s is called to find an approximating cubic spline for three-dimensional input data. If you want to weight the input data values, calculate derivatives, or handle data sparse areas specially, then you will need to use c_csa3xs.
c_csa3s returns a pointer to a linear array of data that is the approximation spline stored in row-major order. That is, if out is declared as
float *out;
and we set:
out = c_csa3s(n, x, y, z, u, nx, ny, nz, xo, yo, zo, &ier);
then out[nz*ny*i + nz*j + k] is the approximation function value at coordinate point (xo[i], yo[j], zo[k]) for 0 <= i < nx, 0 <= j < ny, and 0 <= k < nz. The space for out is allocated internal to c_csa3s and is nx*ny*nz floats in size.
To use c_csa3s, load the NCAR Graphics library ngmath.
csagrid, c_csa3xs, c_csa3ls, c_csa3lxs
Complete documentation for Csagrid is available at URL
http://ngwww.ucar.edu/ngdoc/ng/ngmath/csagrid/csahome.html
Copyright (C) 2000
University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.
| January 1999 | UNIX |