c_dsgrid3d(3NCARG) | NCAR GRAPHICS | c_dsgrid3d(3NCARG) |
c_dsgrid3d - primary double precision C entry for 3D gridding
double *c_dsgrid3d(int, double [], double [], double [], double [],
int, int, int, double [], double [], double [], int *);
double *c_dsgrid3d(int n, double x[], double y[], double z[],
double u[], int nx, int ny, int nz, double xo[],
double yo[], double zo[], int *ier);
c_dsgrid3d returns a pointer to a linear array of data that is the interpolated grid stored in row-major order. That is, if out is declared as
double *out;
and we set:
out = *c_dsgrid3d(n, x, y, z, u, nx, ny, nz, xo, yo, zo, ier);
then out[nz*ny*i + nz*j + k] is the interpolated 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_dsgrid3d and is nx*ny*nz doubles in size.
To use c_dsgrid3d, load the NCAR Graphics library ngmath.
dsgrid, dsgrid_params, c_dsseti, c_dsgeti, c_dssetrd, c_dsgetrd, c_dssetc, c_dsgetc.
Complete documentation for Dsgrid is available at URL
http://ngwww.ucar.edu/ngdoc/ng/ngmath/dsgrid/dshome.html
Copyright (C) 2000
University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.
September 1997-1998 | UNIX |