Name
gsm — Grid slices manipulation
Syntax
# Grid slices manipulation
gsm [workspacename] [x | y] [sub | add | mul | div] [sel selection]
# Switch columns in cube.
gsm swc [-] [yxz | xzy | zyx]
Description
A 3d cube has grid dimension nrow, ncol, nlay for number of elements in a row, in a column and vertical layers or slices. A standard grid has dimension nrow, ncol , 1.
For a 3d cube it is possible to make grid slice operations between the slices of the same cube, or between slices of different cubes.
The result is always saved in the active cube (3D-grid).
Arguments
workspacename
Name in workspace with 3D-grid. If left out, operations are performed on active 3D-grid.
x | y
Direction of operation. If left out, the operation is performed in the z coordinates.
sub | add | mul | div
Mathematical operation between slices. Example: The next slice is added to the current. This is done done through the cube.
swc yxz
The x and y columns are switched.
swc xzy
The z and y columns are switched.
swc zyx
The z and x columns are switched.
-
- yxz | xzy | zyx*
Unknown macro: {indent}
The minus sign tells to change order of column switching to highest column first.
- yxz | xzy | zyx*
Examples
Ex.1: Adding layers
gsm add ;# Adding the next layer to the current layer in the cube for all layers.