Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Wiki Markup
{alias:gsm}
h2. Name

*gsm* — Grid slices manipulation


h2. Syntax
{panel:|borderStyle=solid|borderWidth=1|bgColor=#FFFFAA}

\# Grid slices manipulation
*gsm* \[_workspacename_] \[*x | y*] \[*sub | add | mul | div*] \[*sel* _selection_]  

\# Switch columns in cube.
*gsm swc* \[-] \[*yxz | xzy | zyx*] 


{panel}

h2. 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). 

h2. Arguments

_workspacename_ 
{indent}Name in workspace with 3D-grid. If left out, operations are performed on active 3D-grid.{indent} 
*x | y* 
{indent}Direction of operation. If left out, the operation is performed in the z coordinates.{indent} 
*sub | add | mul | div* 
{indent}Mathematical operation between slices. Example: The next slice is added to the current. This is done done through the cube.{indent} 
*swc yxz* 
{indent}The x and y columns are switched.{indent} 
*swc xzy* 
{indent}The z and y columns are switched.{indent} 
*swc zyx* 
{indent}The z and x columns are switched.{indent} 
*\- yxz | xzy | zyx* 
{indent}The minus sign tells to change order of column switching to highest column first.{indent} 

h2. Examples

h3. Ex.1: Adding layers

{noformat:|borderWidth=1|bgColor=#eeeeee}

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

x | y

sub | add | mul | div

swc yxz

swc xzy

swc zyx

- yxz | xzy | zyx

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 - Calculation algorithms], [gr3 - Grid data into 3D cube], [gse - Grid selection of a sub grid]
{pagebreak}

See also

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