Returns agridded, 2D array containing z values, given random x-, y-, z-coordinates (this function works best with dense data points).
grid_x
grid_y
Nghbr
No_Avg
If the No_Avg keyword is present and nonzero, however, the value of the cell in the gridded array is the total of all the points that fall in that cell.
XMin
XMax
YMin
YMax
FAST_GRID3 is similar to GRID_3D. FAST_GRID3, however, works best with dense data points (more than 1000 points to be gridded) and is considerably faster, but slightly less accurate, than GRID_3D. (GRID_3D works best with sparse data points and is stable when extrapolating into large void areas.)
TIP: For best results, use a small neighborhood (such as 3) and a large number of iterations (more than 16).
PRO f_gridemo3
points = RANDOMU(s, 3, 1000) points(0, *) = points(0, *) * 10.0 points(1, *) = points(1, *) * 10.0 points(*, 0) = [1.7, 1.6, 2.9] points(*, 1) = [1.4, 1.2, 3.7] points(*, 2) = [9.8, 9.2, 5.5] points(*, 3) = [9.8, 8.4, 0.1] points(*, 4) = [4.8, 9.9, 6.3] points(*, 5) = [0.2, 9.0, 9.0] points(*, 6) = [3.1, 7.2, 15.2] points(*, 7) = [5.6, 6.0, -5.9] points(*, 8) = [0.3, 0.5, 3.3] points(*, 9) = [9.7, 0.7, -1.6]
zval = FAST_GRID3(points, 48, 32)
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.