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

_LineWidth_ 

{indent} Explanation-bla-bla with range \[1, 2, 3 ..\].
{indent}

*arg1*

{indent} Explanation-bla-bla for *arg1*
{indent}

*arg2* *red* | *blu* | *gre* | *pin* | *tur* | *yel* | *whi* | *bla* | *bro*

{indent} Explanation-bla-bla for *arg2* in color red / blue ...
{indent}

*arg3* \[_PointSize_\]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. 
{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

{noformat:|borderWidth=1|bgColor=#eeeeee}
# read any grid
xxx arg1    ;# Example bla bla
pol         ;# Display as polygon
{noformat}

!att:_img_ref^xxx.png|thumbnail,border=1,width=200!
_Result of *xxx* on grid_

h2. See also

[yyy], [zzz]