ycoordinate¶
Result = ycoordinate(expression)
- expression
spatial, non spatial boolean
- Result
spatial scalar
Options¶
--unittrue
or --unitcell
--unittrue
coordinates are expressed in true distance coordinates (default)
--unitcell
coordinates are expressed in unit cell lengths, where thenminimum y coordinate of a cell centre is 0.5 and the maximum y coordinate of a cell centre isny - 0.5, where y is the number of rows of cells.
assignment of coordinates
--coorcentre
for each cell, the coordinate of the cell centre is assigned (default)
--coorul
for each cell, the coordinate of the upper left corner is assigned
--coorlr
for each cell, the coordinate of the lower right corner is assigned
Operation¶
For each cell that has a value 1 (TRUE) on expression assigns the y coordinate of the cell to the cell on Result. Cells with a value 0 (FALSE) on expression are assigned a missing value.
Notes¶
A cell with a missing value on expression is assigned a missing value on Result.
Group¶
This operation belongs to the group of Coordinates, unique ID’s
Examples¶
- • pcrcalc#! –coorcentrebindingResult = Result.map;Expr = Expr.map;initialreport Result = ycoordinate(Expr);• pythonsetglobaloption(“coorcentre”)Expr = readmap(“Expr.map”)Result = ycoordinate(Expr)
Result.map
Expr.map