scalar
Data conversion to the scalar data type
Result = scalar(expression)
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.
A cell with missing value on expression is assigned a missing value on Result.
This operation belongs to the group of Conversion and assignment
Result.map | Expr1.map |