xcoordinate¶
Result = xcoordinate(expression)
- expression
spatial, non spatial boolean
- Result
spatial scalar
Options¶
--unittrue or --unitcell
--unittruecoordinates are expressed in true distance coordinates (default)
--unitcellcoordinates are expressed in unit cell lengths, where the minimumnx coordinate of a cell centre is 0.5 and the maximum x coordinate of a cell centre is xn- 0.5, where x is the number of columns of cells.
assignment of coordinates
--coorcentrefor each cell, the coordinate of the cell centre is assigned (default)
--coorulfor each cell, the coordinate of the upper left corner is assigned
--coorlrfor 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 x 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#! –coorlrbindingResult = Result.map;Expr = Expr.map;initialreport Result = xcoordinate(Expr);• pythonsetglobaloption(“coorlr”)Expr = readmap(“Expr.map”)Result = xcoordinate(Expr)
Result.map
Expr.map