1c_dsgrid3d(3NCARG) NCAR GRAPHICS c_dsgrid3d(3NCARG)
2
3
4
6 c_dsgrid3d - primary double precision C entry for 3D gridding
7
9 double *c_dsgrid3d(int, double [], double [], double [], double [],
10 int, int, int, double [], double [], double [], int *);
11
13 double *c_dsgrid3d(int n, double x[], double y[], double z[],
14 double u[], int nx, int ny, int nz, double xo[],
15 double yo[], double zo[], int *ier);
16
18 n The number of input data points.
19
20 x An array containing the X coordinates of the input data
21 points.
22
23 y An array containing the Y coordinates of the input data
24 points.
25
26 z An array containing the Z coordinates of the input data
27 points.
28
29 u An array of size n containing the functional values of the
30 input data points. That is, z[m] is the value of the input
31 function at coordinate (x[m],y[m],z[m]), for 0 <= m < n.
32
33 nx The number of X values in the output grid.
34
35 ny The number of Y values in the output grid.
36
37 nz The number of Z values in the output grid.
38
39 xo An array of size nx containing the X coordinates of the
40 output data grid. The values in xo must be increasing, but
41 need not be equally spaced.
42
43 yo An array of size ny containing the Y coordinates of the
44 output data grid. The values in yo must be increasing, but
45 need not be equally spaced.
46
47 zo An array of size nz containing the Z coordinates of the
48 output data grid. The values in zo must be increasing, but
49 need not be equally spaced.
50
51 ier An error return value. If *ier is returned as 0, then no
52 errors were detected. If *ier is non-zero, then refer to
53 the man page for dsgrid_errors.
54
56 c_dsgrid3d returns a pointer to a linear array of data that is the
57 interpolated grid stored in row-major order. That is, if out is
58 declared as
59
60 double *out;
61
62 and we set:
63
64 out = *c_dsgrid3d(n, x, y, z, u, nx, ny, nz, xo, yo, zo, ier);
65
66 then out[nz*ny*i + nz*j + k] is the interpolated function value at
67 coordinate point (xo[i],yo[j],zo[k]) for 0 <= i < nx, 0 <= j < ny, and
68 0 <= k < nz. The space for out is allocated internal to c_dsgrid3d and
69 is nx*ny*nz doubles in size.
70
72 To use c_dsgrid3d, load the NCAR Graphics library ngmath.
73
75 dsgrid, dsgrid_params, c_dsseti, c_dsgeti, c_dssetrd, c_dsgetrd,
76 c_dssetc, c_dsgetc.
77
78 Complete documentation for Dsgrid is available at URL
79 http://ngwww.ucar.edu/ngdoc/ng/ngmath/dsgrid/dshome.html
80
82 Copyright (C) 2000
83 University Corporation for Atmospheric Research
84
85 The use of this Software is governed by a License Agreement.
86
87
88
89UNIX September 1997-1998 c_dsgrid3d(3NCARG)