areaaverage¶
Result = areaaverage(expression, areaclass)
- expression
spatial scalar
- areaclass
spatial boolean, nominal, ordinal
- Result
spatial scalar
Operation¶
areaclass Identifies the class to which a cell belongs: cells with corresponding values on areaclass together form a separate class. For each separate class the expression values of the cells belonging to that class are averaged. This average value is assigned to all cells belonging to that class. This is done for all classes and saved as Result.
Notes¶
A cell with missing value on areaclass will result in a missing value on Result at the corresponding cell.
Group¶
This operation belongs to the group of Area operators
See Also¶
Examples¶
- • pcrcalcbindingResult = Result.map;Class = Class.map;Expr = Expr.map;initialreport Result = areaaverage( Expr, Class);• pythonClass = readmap(“Class.map”)Expr = readmap(“Expr.map”)Result = areaaverage( Expr, Class)
Result.map
Class.map
Expr.map