pred

Ordinal number of the next lower ordinal class

```
Result = pred(expression)
```

- expression
- spatial ordinal
- Result
- spatial ordinal

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.

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

This operation belongs to the group of Order

- • pcrcalcbindingResult1 = Result1.map;Expr = Expr.map;initialreport Result1 = pred(Expr);• pythonExpr = readmap(“Expr.map”)Result1 = pred(Expr)
Result1.map Expr.map - • pcrcalcbindingResult2 = Result2.map;Expr = Expr.map;initialreport Result2 = pred(Expr);• pythonExpr = readmap(“Expr.map”)Result2 = pred(Expr)
Result2.map Expr.map