abs

Result = abs(expression)
expression

spatial, non spatial scalar

Result

dimension of expression scalar

Operation

For each cell, calculates the absolute value of the expression cell value and assigns it to Result.

Notes

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

Group

This operation belongs to the group of Arithmetic operators

Examples

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

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

    Result.map

    Expr.map

    ../../_images/abs_Result.png ../../_images/abs_Expr.png