NOTE: Most graphic software packages do not grid sparse or irregular data simply because interpolation of data can lead to serious distortions. It is usually assumed that if regular-uniform data are required by a particular software program then the user must create this uniform mesh of data. Although many software packages grid your data for you, such as PV-Wave, you should be careful not to always questions the results.
NOTE: Highlighted italic text denotes user response.
Procedure #1:
Gridding errors in 2D data.
NOTE: There are two directories in the "grid" directory: new and old. The old directory work best with the gridding algorithm used in PV-Wave prior to 1993, and the new directory uses gridding algorithms that work best with either sparse or dense grids. To get more in depth explanation use the PV-WAVE help by typing in help at the PV-WAVE command prompt: wave> help . In both the new and old directory there are two directories: abc and xyz. The abc directory creates a simple plot where all points fall within a plane and the xyz directory also contain the same points but forms an irregular surface that resulted from a slight perturbation out of the same plane in the abc example and forms an irregular surface with some nuerical artifacts. In both examples postscript files are generated for "tv" (black-white) image plot, "shaded- surface" plot, and the "contour" plot.
Files of Sparse data: filenames: a.dat b.dat c.dat 0.0 0.0 0.0 5.0 0.0 0.0 10.0 0.0 0.0 15.0 0.0 0.0 20.0 0.0 0.0 0.0 5.0 5.0 5.0 5.0 5.0 10.0 5.0 5.0 15.0 5.0 5.0 20.0 5.0 5.0 0.0 10.0 10.0 5.0 10.0 10.0 10.0 10.0 10.0 15.0 10.0 10.0 20.0 10.0 10.0 0.0 15.0 15.0 5.0 15.0 15.0 10.0 15.0 15.0 15.0 15.0 15.0 20.0 15.0 15.0 0.0 20.0 20.0 5.0 20.0 20.0 10.0 20.0 20.0 15.0 20.0 20.0 20.0 20.0 20.0
NOTE: Both images confirm that all 25 points fall within the same plane.
Files of Sparse data: filenames: x.dat y.dat z.dat 0.0 0.0 0.0 5.0 0.0 0.0 10.0 0.0 0.0 15.0 0.0 0.0 20.0 0.0 0.0 0.0 5.0 5.0 5.0 5.0 5.0 10.0 5.0 5.0 15.0 5.0 5.0 20.0 5.0 5.0 0.0 10.0 10.0 5.0 10.0 0.0 <- creates dimple 10.0 10.0 0.0 <- creates dimple 15.0 10.0 0.0 <- creates dimple 20.0 10.0 10.0 0.0 15.0 15.0 5.0 15.0 15.0 10.0 15.0 15.0 15.0 15.0 15.0 20.0 15.0 15.0 0.0 20.0 20.0 5.0 20.0 20.0 10.0 20.0 20.0 15.0 20.0 20.0 20.0 20.0 20.0
NOTE: Both images confirm that all but 3 points fall within the same plane hence creating dimple in the center of the plane.
Files of Sparse data: filenames: a.dat b.dat c.dat 50.0 10.0 10.0 30.0 20.0 20.0 70.0 30.0 30.0 20.0 40.0 40.0 30.0 50.0 50.0 100.0 60.0 60.0 10.0 70.0 70.0 60.0 80.0 80.0 70.0 90.0 90.0 90.0 100.0 100.0
NOTE: All three images confirm that the original 10 points all fall within the same plane.
The sparse data is shown below along with the three images of the gridded results. Note that the x.dat = a.dat and the y.dat = b.dat, but z.dat is not equal to c.dat, here we changed only the vertical positon of the points.
Files of Sparse data: filenames: x.dat y.dat z.dat (old) 50.0 10.0 18.0 10.0 30.0 20.0 10.0 20.0 70.0 30.0 38.0 30.0 20.0 40.0 30.0 40.0 30.0 50.0 55.0 50.0 100.0 60.0 50.0 60.0 10.0 70.0 78.0 70.0 60.0 80.0 70.0 80.0 70.0 90.0 95.0 90.0 90.0 100.0 90.0 100.0
NOTE: All three images confirm that the original 10 points all fall outside of the original plane and the gridding has resulted in an artifical numerical artifact "a cave" which can be best observed in the upper portion of the contour plot.
grid_demo1 (Grids 1D data)
:w
grid_demo2 (Grids 2D data)
grid_demo3 (Grids 3D data)