Data Manipulation
adds
This program adds a scalar 's' to every numerical value passed into it. For example:
mycomputer:~$ echo "1 2 3" | adds 4 5 6 7
avg
Averages a set of space or tab-separated numbers passed into it. For example:
mycomputer:~$ echo "2 3" | avg -i 1 2.5
colormap
This function maps a real value to a color on a 64 color spectrum. The available color spectrums are "hot", "cool", "jet", "gray", "copper","spring", "summer", "autumn", "winter". For example:
colormap -m 2 -r -1,5 -v 3 0.627451 0.3968 0.252698
uses colormap 2 to map the value 3 to RGB color values, where -1 is one end of the spectrum and 5 is the other end. The option -i will invert the color scheme.
lmpatom2vis
Converts LAMMPS atom style dump to Glotzilla vis format. Expects the following format:
ITEM: TIMESTEP
int
ITEM: NUMBER OF ATOMS
int
ITEM: BOX BOUNDS
double double
double double
double double
ITEM: ATOMS
int int double double double
int int double double double
...
maphist
mkhist
multiplys
Multiplys space or tab-separated numerical values by a constant. For example:
mycomputer:~$ echo "2 7 10.5" | multiplys 2 4 14 21
numericpart
Takes the numeric part of a string and returns it to stdout. For example:
mycomputer:~$ echo "1n-45.3\t7" | numericpart 1 -45.3 7
raw2vis
Converts raw output data (three columns of tab-delimited floats) to Glotzilla vis format. For example:
mycomputer:~$ urand 3 3 | raw2vis S 0 0.000985 0.041631 - S 0.176643 0.364602 0.091331 - S 0.092298 0.487217 0.52675 - ;
rawr2vis
Converts raw data (four columns of tab-delimited floats, x, y, z, and radius) to Glotzilla vis format
rawrp2vis
Converts raw data (five columns of tab-delimited floats, x, y, z, radius, and value p) to Glotzilla vis format, where p is used color the particle using colormap options. For example:
echo "0 0 0 2 0.4" | rawrp2vis -r 0,1 -m 5 S 0 0 0 r 2 c 1 0.396825 0.603175 - ;
reflect
Reads in raw data (cartesian x, y, z) and reflects across a specified plane. The plane is specified by a point on the plane and normal vector. If a normal vector is not specified, the normal vector is assumed to be the vector from the origin to the point. For example
mycomputer:~$ echo "0 0 0" | reflect -p 4,0,0 8 0 0 mycomputer:~$ echo "0 0 0" | reflect -p 4,0,0 -v 1,1,1 2.6667 2.6667 2.6667
It is acceptable for the vector entered to be perpendicular to the plane, but not normalized (of length 1).
setdensity
translate
Reads in raw data and translates each point by x y and z in cartesian coordinates. For example:
mycomputer:~$ echo "1 2 3" | translate 0 2.3 4 1 4.5 7
vis2pov
Reads in vis formatted data and converts it to pov format before printing it to stdout.
vis2raw
Reads in vis formatted data and converts it to raw data.
visbox
Reads in vis formatted data and outputs a subset of the data surrounding a specified point. Currently, the only subsets available are cubic in shape.
xyz2pov
Converts xyz data to pov? data.
xyz2raw
Converts xyz data to raw data.