+

+

Addition

Result = expression1 + expression2
expression1

spatial, non spatial scalar

expression2

spatial, non spatial scalar

Result

spatial; non spatial if expression1 and expression2 are non spatial scalar

Operation

For each cell, the values of expression1 and expression2 are summed. This sum is assigned to the corresponding cell on Result.

Notes

A cell with missing value on expression1 and/or expression2 is assigned a missing value on Result.

Result+=expression1 is an alternative notation for Result = Result + expression1

Group

This operation belongs to the group of Arithmetic operators

Examples

  1. • pcrcalc
    binding
    Result = Result.map;
    Expr1 = Expr1.map;
    Expr2 = Expr2.map;
    initial
    report Result = Expr1 + Expr2;

    • python
    Expr1 = readmap(“Expr1.map”)
    Expr2 = readmap(“Expr2.map”)
    Result = Expr1 + Expr2

    Result.map

    Expr1.map

    Expr2.map

    ../../_images/plus_Result.png ../../_images/minus_Expr1.png ../../_images/minus_Expr2.png