c_dsgrid2s(3NCARG) | NCAR GRAPHICS | c_dsgrid2s(3NCARG) |
c_dsgrid2s - primary single precision C entry for 2D gridding
float *c_dsgrid2s(int, float [], float [], float [],
int, int, float [], float [], int *);
float *c_dsgrid2s(int n, float x[], float y[], float z[],
int nx, int ny, float xo[], float yo[], int *ier);
c_dsgrid2s 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
float *out;
and we set:
out = c_dsgrid2s(n, x, y, z, nx, ny, xo, yo, ier);
then out[i*ny+j] is the interpolated function value at coordinate point (xo[i],yo[j]) for 0 <= i < nx and 0 <= j < ny. The space for out is allocated internal to c_dsgrid2s and is nx*ny floats in size.
To use c_dsgrid2s, load the NCAR Graphics library ngmath.
dsgrid, dsgrid_params, c_dsseti, c_dsgeti, c_dssetr, c_dsgetr, 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 |