scale_rasters {ldmppr} | R Documentation |
Scale a set of rasters
Description
Scale a set of rasters
Usage
scale_rasters(raster_list, reference_resolution = NULL)
Arguments
raster_list |
a list of raster objects. |
reference_resolution |
the resolution to resample the rasters to. |
Value
a list of scaled raster objects.
Examples
# Create two example rasters
rast_a <- terra::rast(
ncol = 10, nrow = 10,
xmin = 0, xmax = 10,
ymin = 0, ymax = 10,
vals = runif(100)
)
rast_b <- terra::rast(
ncol = 10, nrow = 10,
xmin = 0, xmax = 10,
ymin = 0, ymax = 10,
vals = runif(100)
)
# Scale example rasters in a list
rast_list <- list(rast_a, rast_b)
scale_rasters(rast_list)
[Package ldmppr version 1.0.4 Index]