Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Unknown macro: {alias}

Name

lgo — Logical operation between two grids

Syntax

lgo lgo_number lo | hi workspacename

Description

Logical grid to grid operation performed between active grid and a grid in a workspace.

Arguments

lgo_number

Unknown macro: {indent}

Logical operation number. The numbers are from 1 to 10 as explained below.

Logical operation numbers

Assume the grids are zlo and zhi.
Assume relations b1=zlo_is_defined and zhi_is_defined.
b2=zlo_is_defined. b3=zlo_is_undefined.
v is the new grid node.

1: if ( b1 ) v = max(zlo,zhi)
2: if ( b1 ) v = min(zlo,zhi)
3: if ( b3 ) v = zhi
4: if ( !b1 ) v = undefined
5: if ( !( b1 and zhi lt zlo ) and !( b1 and zlo lt zhi ) ) v = zhi
6: if ( !( b1 and zhi gt zlo ) and !( b1 and zlo gt zhi ) ) v = zhi
7: if ( b1 and zhi lt zlo ) v = zhi
8: if ( b1 and zlo gt zhi ) v = zlo
9: if ( b1 and zlo gt zhi ) v = undefined
10: if ( zhi gt zlo ) v = undefined

lo

Unknown macro: {indent}

Result grid is active dataset.

hi

Unknown macro: {indent}

Result grid is placed in workspace workspacename.

workspacename

Unknown macro: {indent}

Name in workspace of second grid.

See also

add, sub - Subtract operation, mul, rep

  • No labels