maptotal

Result = maptotal(expression)
expression

spatial scalar

Result

non spatial scalar

Operation

Sums all expression cell values and assigns this sum of these values to Result (non spatial).

Notes

The value of Result is not correct if all cells of expression are missing value. In that case Result is assigned the value 0.

Group

This operation belongs to the group of Map operators

Examples

  1. • pcrcalc
    binding
    Result = Result.map;
    Expr = Expr.map;
    initial
    report Result = maptotal(Expr);

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

    Result.map

    Expr.map

    ../../_images/maptotal_Result.png ../../_images/mapmaximum_Expr.png