Versions Compared

Key

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

*lgo* — Logical operation between two grids

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

*lgo* _lgo\_number_ *lo | hi* _workspacename_

{panel}

h2. Description

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

h2. Arguments

_lgo_number_ 
{indent}Logical operation number. The numbers are from 1 to 10 as explained below.{indent}

{info:title=Logical operation numbers}
              Assume the grids are zlo and zhi.
              Assume relations 

Name

lgo — Logical operation between two grids

Syntax

Panel
bgColor#FFFFAA
borderWidth1
borderStylesolid

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

Info
titleLogical 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 =


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

zhi
4:

if

(

!b1

)

v

=

undefined

undefined
5:

if

(

!(

b1

and

zhi

lt

zlo

)

and

!(

b1

and

zlo

lt

zhi

)

)

v

=

zhi

zhi
6:

if

(

!(

b1

and

zhi

gt

zlo

)

and

!(

b1

and

zlo

gt

zhi

)

)

v

=

zhi

zhi
7:

if

(

b1

and

zhi

lt

zlo

)

v

=

zhi

zhi
8:

if

(

b1

and

zlo

gt

zhi

)

v

=

zlo

zlo
9:

if

(

b1

and

zlo

gt

zhi

)

v

=

undefined

undefined
10:

if

(

zhi

gt

zlo

)

v

=

undefined {info} *lo* {indent}Result grid is active dataset.{indent} *hi* {indent}Result grid is placed in workspace _workspacename_.{indent} _workspacename_ {indent}Name in workspace of second grid.{indent} h2. See also [add - Add to dataset], [sub - Subtract operation], [mul - Multiply operation], [rep - Replace] {pagebreak}

undefined

lo

hi

workspacename

See also

add - Add to dataset, sub - Subtract operation, mul - Multiply operation, rep - Replace