div — Divide a constant value into a dataset or divide a dataset by another
div hi hiname ;# divide active dataset by workspace hiname dataset, result in hiname. div lo hiname ;# divide active dataset by workspace hiname dataset, result in active. div value ;# divide value into active dataset, result in active data. div x | y | sca value ;# divide value into x or y or scalar coordinates. div x | y | z | sca [value] xx | yy | zz | sca [factor] ;# divide data coordinates by each other. |
The div command will divide a constant value with a dataset or divide two datasets by each other. div works on grid and polydata type of dataset. The result dataset is changed. Dividing by zero will be bypassed.
The command Function |
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.
# Divide a grid in active with a grid in workspace named mygrid and place the result in active div lo mygrid |
# Divide the value 15 with a dataset in active div 15 |
# Divide x by y data coordinates and place the result in x data coordinates. div x yy |
add - Add to dataset, sub - Subtract operation, mul - Multiply operation