Standard operators and mathematical methods for computations with SpatRaster objects. Computations are local (applied on a cell by cell basis). If multiple SpatRaster objects are used, these must have the same extent and resolution. These have been implemented:
Arith: +, -, *, /, ^, %%, %/%
Compare: ==, !=, >, <, <=, >=, is.na, is.nan, is.finite, is.infinite
The terra package does not distunguish between NA
(not available) and NaN
(not a number) and that both are represented as NaN
.
Logical: !, &, |
Summary: "max", "min", "range", "prod", "sum", "any", "all"
Math: "abs", "sign", "sqrt", "ceiling", "floor", "trunc", "cummax", "cummin", "cumprod", "cumsum", "log", "log10", "log2", "log1p", "acos", "acosh", "asin", "asinh", "atan", "atanh", "exp", "expm1", "cos", "cosh", "sin", "sinh", "tan", "tanh", "round", "signif"
For SpatExtent the following methods have been implemented: "round", "floor", "ceil", "=="