-
Notifications
You must be signed in to change notification settings - Fork 0
Gmesh Data Format
gmesh - Garret Mesh
sample input from data/reuter_gmesh.in
0 10.0 20.0 10.0 1.0 0.0 0.0 0.0 2.0 0.0 0.0 2.0 2.0 0.0 0.0 2.0 0.0 0.0 0.0 2.0 2.0 0.0 2.0 2.0 2.0 2.0 0.0 2.0 2.0
0 10.0 20.0 20.0 2.0 0.0 0.0 2.0 2.0 0.0 2.0 2.0 2.0 2.0 0.0 2.0 2.0 0.0 0.0 4.0 2.0 0.0 4.0 2.0 2.0 4.0 0.0 2.0 4.0
0 10.0 20.0 10.0 1.0 0.0 0.0 4.0 2.0 0.0 4.0 2.0 2.0 4.0 0.0 2.0 4.0 0.0 0.0 6.0 2.0 0.0 6.0 2.0 2.0 6.0 0.0 2.0 6.0
0 10.0 20.0 20.0 2.0 0.0 2.0 0.0 2.0 2.0 0.0 2.0 4.0 0.0 0.0 4.0 0.0 0.0 2.0 2.0 2.0 2.0 2.0 2.0 4.0 2.0 0.0 4.0 2.0
0 10.0 20.0 30.0 3.0 0.0 2.0 2.0 2.0 2.0 2.0 2.0 4.0 2.0 0.0 4.0 2.0 0.0 2.0 4.0 2.0 2.0 4.0 2.0 4.0 4.0 0.0 4.0 4.0
0 10.0 20.0 20.0 2.0 0.0 2.0 4.0 2.0 2.0 4.0 2.0 4.0 4.0 0.0 4.0 4.0 0.0 2.0 6.0 2.0 2.0 6.0 2.0 4.0 6.0 0.0 4.0 6.0
0 10.0 20.0 10.0 1.0 0.0 4.0 0.0 2.0 4.0 0.0 2.0 6.0 0.0 0.0 6.0 0.0 0.0 4.0 2.0 2.0 4.0 2.0 2.0 6.0 2.0 0.0 6.0 2.0
0 10.0 20.0 20.0 2.0 0.0 4.0 2.0 2.0 4.0 2.0 2.0 6.0 2.0 0.0 6.0 2.0 0.0 4.0 4.0 2.0 4.0 4.0 2.0 6.0 4.0 0.0 6.0 4.0
0 10.0 20.0 10.0 1.0 0.0 4.0 4.0 2.0 4.0 4.0 2.0 6.0 4.0 0.0 6.0 4.0 0.0 4.0 6.0 2.0 4.0 6.0 2.0 6.0 6.0 0.0 6.0 6.0
The fields on each line are:
sid emin emax hits err [x y z] for all 8 corners
usage: gmeshrebin [-b batchsize] xmin xmax xspacing ymin ymax yspacing zmin zmax zspacing
The default batchsize is set to 10k pixels. If the input file is very large, say 10 GB, the batchsize limits the memory footprint dedicated to handle the input mesh. Too small a batchsize might limit performance. Too big a batchsize is unnecessary.
use example:
UNIX> cat data/reuter_input.in | gmeshrebin 0.0 2.0 2.0 0.0 6.0 3.0 0.0 6.0 3.0 > out1
This time you input the bin size in x, y and z dimension on the command line.
gmeshrebin will check the bin size and adjust so that there are an integer number of bins in each dimension.
Now there is a "seegmesh" viewer also.
UNIX> cat data/reuter_input.in | gmeshrebin 0.0 2.0 2.0 0.0 6.0 3.0 0.0 6.0 3.0 | seegmesh
This command will show the rebinned results. (the color map is logrithmic, base-10, and goes from 1e-16 to 1.0)
UNIX> cat data/reuter_input.in | seegmesh
This command would show the input mesh in "seegmesh".