uniqueid

uniqueid

Unique whole value for each Boolean TRUE cell

Result = uniqueid(expression)
expression
spatial, non spatial boolean
Result
spatial scalar

Operation

For each cell that has a value 1 (TRUE) on expression assigns a unique whole positive value to Result, starting with 1. Cells that have a value 0 (FALSE) on expression are assigned a value 0.

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
    binding
    Result = Result.map;
    Expr = Expr.map;
    initial
    report Result = uniqueid(Expr);

    • python
    Expr = readmap(“Expr.map”)
    Result = uniqueid(Expr)

    Result.map

    Expr.map

    _images/uniqueid_Result.png _images/uniqueid_Expr.png

Table Of Contents

Previous topic

uniform

Next topic

upstream