.\" .\" $Id: c_dsgrid3d.m,v 1.5 2008-07-27 03:35:36 haley Exp $ .\" .TH c_dsgrid3d 3NCARG "September 1997-1998" UNIX "NCAR GRAPHICS" .SH NAME c_dsgrid3d - primary double precision C entry for 3D gridding .SH FUNCTION PROTOTYPE .nf .cs R 24 double *c_dsgrid3d(int, double [], double [], double [], double [], .br int, int, int, double [], double [], double [], int *); .fi .cs R .br .SH SYNOPSIS .nf .cs R 24 double *c_dsgrid3d(int n, double x[], double y[], double z[], .br double u[], int nx, int ny, int nz, double xo[], .br double yo[], double zo[], int *ier); .fi .cs R .SH DESCRIPTION .IP n 12 The number of input data points. .IP x 12 An array containing the X coordinates of the input data points. .IP y 12 An array containing the Y coordinates of the input data points. .IP z 12 An array containing the Z coordinates of the input data points. .IP u 12 An array of size n containing the functional values of the input data points. That is, z[m] is the value of the input function at coordinate (x[m],y[m],z[m]), for 0 <= m < n. .IP nx 12 The number of X values in the output grid. .IP ny 12 The number of Y values in the output grid. .IP nz 12 The number of Z values in the output grid. .IP xo 12 An array of size nx containing the X coordinates of the output data grid. The values in xo must be increasing, but need not be equally spaced. .IP yo 12 An array of size ny containing the Y coordinates of the output data grid. The values in yo must be increasing, but need not be equally spaced. .IP zo 12 An array of size nz containing the Z coordinates of the output data grid. The values in zo must be increasing, but need not be equally spaced. .IP ier 12 An error return value. If *ier is returned as 0, then no errors were detected. If *ier is non-zero, then refer to the man page for dsgrid_errors. .SH USAGE 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 .sp double *out; .sp and we set: .sp out = *c_dsgrid3d(n, x, y, z, u, nx, ny, nz, xo, yo, zo, ier); .sp 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. .SH ACCESS To use c_dsgrid3d, load the NCAR Graphics library ngmath. .SH SEE ALSO dsgrid, dsgrid_params, c_dsseti, c_dsgeti, c_dssetrd, c_dsgetrd, c_dssetc, c_dsgetc. .sp Complete documentation for Dsgrid is available at URL .br http://ngwww.ucar.edu/ngdoc/ng/ngmath/dsgrid/dshome.html .SH COPYRIGHT Copyright (C) 2000 .br University Corporation for Atmospheric Research .br The use of this Software is governed by a License Agreement.