Returns agridded, 2D array containing z values, given random x-, y-, z-coordinates (this function works best with sparse data points).
grid_x The x dimension of the grid. The x values are scaled to fit this dimension.
grid_y The y dimension of the grid. The y values are scaled to fit this dimension.
w = 1.0 / (dist ^ Order)
dist
is the distance to the point. (Default: 2)XMax The x-coordinate of the right edge of the grid. If omitted, maps the maximum x value found in the points(0, *) array to the right edge of the grid.
XMin The x-coordinate of the left edge of the grid. If omitted, maps the minimum x value found in the points(0, *) array to the left edge of the grid.
YMax The y-coordinate of the top edge of the grid. If omitted, maps the maximum y value found in the points(1, *) array to the top edge of the grid.
YMin The y-coordinate of the bottom edge of the grid. If omitted, maps the minimum y value found in the points(1, *) array to the bottom edge of the grid.
GRID_3D is similar to FAST_GRID3. GRID_3D, however, works best with sparse data points (say, less than 1000 points to be gridded) and is stable when extrapolating into large void areas. (FAST_GRID3 works best with dense data points; it is considerably faster, but slightly less accurate, than GRID_3D.)
PRO grid_demo3
points = INTARR(3, 10) points(*, 0) = [1,1,2] points(*, 1) = [1,1,3] points(*, 2) = [9,9,5] points(*, 3) = [9,8,0] points(*, 4) = [4,9,6] points(*, 5) = [0,9,9] points(*, 6) = [3,7,15] points(*, 7) = [5,6,-5] points(*, 8) = [0,0,3] points(*, 9) = [9,0,-1]
zval = GRID_3D(points, 48, 32, Order=2.0)
WINDOW, 0, Colors=128 SURFR SURFACE, zval, Bottom=90, Ax=30.0, Az=30.0, /T3d
END
UNIX and OpenVMS Users: For information on the optional software package for advanced gridding, PV-WAVE:GTGRID, contact your Visual Numerics account representative.