Grids a3D array containing intensity values, given random 4D 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.
grid_z The z dimension of the grid. The z 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.
ZMax The z-coordinate of the front edge of the grid. If omitted, maps the maximum z value found in the points(2, *) array to the front edge of the grid.
ZMin The z-coordinate of the back edge of the grid. If omitted, maps the minimum z value found in the points(2, *) array to the back edge of the grid.
GRID_4D is similar to FAST_GRID4. GRID_4D, 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_GRID4 works best with dense data points; it is considerably faster, but slightly less accurate, than GRID_4D.)
PRO grid_demo4
points = INTARR(4, 10) points(*, 0) = [1, 1, 2, 86] points(*, 1) = [1, 1, 3, 44] points(*, 2) = [9, 9, 5, 37] points(*, 3) = [5, 4, 7, 99] points(*, 4) = [4, 0, 6, 9] points(*, 5) = [0, 9, 9, 32] points(*, 6) = [3, 5, 5, 2] points(*, 7) = [6, 6, 5, 55] points(*, 8) = [0, 0, 5, 66] points(*, 9) = [9, 0, 0, 44]
ival = GRID_4D(points, 32, 32, 32, Order=4.0) ival = BYTSCL(ival)
block = BYTARR(30, 30, 30) block(*, *, *) = 255 block = VOL_PAD(block, 1)
block(0:16, 0:16, 16:31) = 0
WINDOW, 0, Colors=128 LOADCT, 3 CENTER_VIEW, Xr=[0.0, 31.0], $ Yr=[0.0, 31.0], Zr=[0.0, 31.0], $ Ax=(-60.0), Az=45.0, Zoom=0.6
SET_SHADING, Light=[-1.0, 1.0, 0.2]
SHADE_VOLUME, block, 1, vertex_list, $ polygon_list, Shades=ival, /Low
img1 = POLYSHADE(vertex_list, polygon_list, /T3d)
img2 = POLYSHADE(vertex_list, polygon_list, $ Shades=ival, /T3d)
TVSCL, (FIX(img1) + FIX(img2))
END
vol_demo4
demonstration program in:
wavedir/demo/arl
wavedir:[DEMO.ARL]
wavedir\demo\arl
wavedir
is the main PV-WAVE directory.
UNIX and OpenVMS Users: For information on the optional software package for advanced gridding, PV-WAVE:GTGRID, contact your Visual Numerics account representative.