Standardises all layers in a SpatRaster
to a scale of 0-1,
by dividing by the maximum value in each layer. Only operates by layer
Examples
example_raster(seed = 3010) |>
std_rast(reverse = TRUE)
#> class : SpatRaster
#> dimensions : 10, 10, 1 (nrow, ncol, nlyr)
#> resolution : 1, 1 (x, y)
#> extent : 0, 10, 0, 10 (xmin, xmax, ymin, ymax)
#> coord. ref. :
#> source(s) : memory
#> name : example
#> min value : 0.0000000
#> max value : 0.9897896