Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Name

gsm — Grid slices manipulation

Syntax

Panel
bgColor#FFFFAA
borderWidth1
borderStylesolid

# 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

The minus sign tells to change order of column switching to highest column first.

Examples

Ex.1: Adding layers

No Format
bgColor#eeeeee
borderWidth1
gsm add       ;# Adding the next layer to the current layer in the cube for all layers.
{noformat}

h2. See also

[cal], [gr3], [gse]

See also

cal - Calculation algorithms, gr3 - Grid data into 3D cube, gse - Grid selection of a sub grid