Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
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} Explanation bla-bla- _PointSize_ is a number larger than 0, relative to 1 (default), giving bla-bla. {indent}

h2. Examples

h3. Ex.1: Title-of-example Adding layers

{noformat:|borderWidth=1|bgColor=#eeeeee}
# read any grid xxx arg1   gsm ;#add Example bla bla pol   ;# Adding the next layer to ;#the Displaycurrent aslayer polygonin {noformat}the 
!att:_img_ref^xxx.png|thumbnail,border=1,width=200!
_Result of *xxx* on grid_

cube for all layers.
{noformat}

h2. See also

[yyycal], [gr3], [zzzgse]