Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{alias:div}

Name

div — Divide a constant value into a dataset or divide a dataset by another

...

Tip
titleTip

The command Function is an alternative for mathematical operations on single datasets. Look inside the Geocap Toolbox for commands.

Arguments

hi hiname

Divide dataset in active and hiname and the result data will be placed in workspace hiname.

lo hiname

Divide dataset in active and hiname and the result data will be placed in active workspace.

value

Add value and result data will be placed in the active workspace.

hi | lo hiname tes

Add two poly dataset together according to rules above and optionally test using the tes argument if xy coordinates are equal and then divide only for equal coordinates.

x | y | sca value

Divide value to x- or y- or scalar coordinates. The result data will be placed in the active workspace.

x | y | z | sca [value] xx | yy | zz [factor]

Divide value to x or y or scalar coordinates. The result data will be placed in the active workspace. Divide data coordinate axes by each other. Optionally use a value that will be divided by the coordinates and/or a factor that will be divided with the coordinates. x | y | z |sca represents the first data coordinates and xx | yy | zz represents the second data coordinates. The result is always placed in the first coordinates.

Examples

Ex.1: Divide a dataset with another

No Format
bgColor#eeeeee
borderWidth1

# Divide a grid in active with a grid in workspace named mygrid and place the result in active
div lo mygrid

...

No Format
bgColor#eeeeee
borderWidth1

# Divide the value 15 with a dataset in active
div 15

...

No Format
bgColor#eeeeee
borderWidth1

# Divide x by y data coordinates and place the result in x data coordinates.
div x yy

...