pred

pred

Ordinal number of the next lower ordinal class

Result = pred(expression)
expression
spatial ordinal
Result
spatial ordinal

Operation

The result of the operation depends on wheter expression has a legend or not. If expression has a legend, the legend determines the domain of expression: the domain consists of the ordinal numbers linked to the classes in the legend. This domain with these ordinal classes is also assigned to Result. Cells on Result may have values in this domain. For each expression cell value the first lower ordinal number which is in the domain is determined. This is assigned to the corresponding cell on Result.

If expression does not have a legend an ordinal number is assigned to Result which is the ordinal number on expression minus 1, on a cell-by-cell basis.

Notes

A cell on expression with missing value is assigned a missing value on Result.

Group

This operation belongs to the group of Order

Examples

  1. • pcrcalc
    binding
    Result1 = Result1.map;
    Expr = Expr.map;
    initial
    report Result1 = pred(Expr);

    • python
    Expr = readmap(“Expr.map”)
    Result1 = pred(Expr)

    Result1.map

    Expr.map

    _images/pred_Result1.png _images/succ_Expr.png

  2. • pcrcalc
    binding
    Result2 = Result2.map;
    Expr = Expr.map;
    initial
    report Result2 = pred(Expr);

    • python
    Expr = readmap(“Expr.map”)
    Result2 = pred(Expr)

    Result2.map

    Expr.map

    _images/pred_Result2.png _images/succ_Expr.png

Table Of Contents

Previous topic

plancurv

Next topic

profcurv