Data conversion to the scalar data type
Result = scalar(expression)
spatial, non spatial boolean, nominal, ordinal, directional, ldd
dimension of expression scalar
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
- • pcrcalcbindingResult = Result.map;Expr1 = Expr1.map;areamapExpr1.map;initialreport Result = scalar(1);• pythonExpr1 = readmap(“Expr1.map”)setclone(“Expr1.map”);Result = scalar(1)