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

  1. • pcrcalc
    #! –coorcentre
    binding
    Result = Result.map;
    Expr = Expr.map;
    initial
    report Result = ycoordinate(Expr);

    • python
    setglobaloption(“coorcentre”)
    Expr = readmap(“Expr.map”)
    Result = ycoordinate(Expr)

    Result.map

    Expr.map

    ../../_images/ycoordinate_Result.png ../../_images/xcoordinate_Expr.png