scalar¶
Result = scalar(expression)
- expression
spatial, non spatial boolean, nominal, ordinal, directional, ldd
- Result
dimension of expression scalar
Operation¶
If expression is a PCRaster map or a calculation resulting in a PCRaster map, it is converted: the cell values of expression are assigned without change to the corresponding cells on Result. Or it generates a map of scalar data type with one constant value.
If expression has no PCRaster data type, a Result with data type scalar is generated. This is the case if expression is a number or a calculation with numbers. Result will be a map with the same location attributes as the global clone map; all cells will have the value of expression.
Notes¶
A cell with missing value on expression is assigned a missing value on Result.
Group¶
This operation belongs to the group of Conversion and assignment
See Also¶
Examples¶
- • pcrcalcbindingResult = Result.map;Expr1 = Expr1.map;areamapExpr1.map;initialreport Result = scalar(1);• pythonExpr1 = readmap(“Expr1.map”)setclone(“Expr1.map”);Result = scalar(1)
Result.map
Expr1.map