This function is called by the agg_uniform module and creates a uniform aggregation raster.

agg_uniform(template, logger = NULL)

Arguments

template

SpatRaster. Raster image to use as a template

logger

Stores all notification messages to be displayed in the Log Window. Insert the logger reactive list here for running in shiny, otherwise leave the default NULL

Value

a SpatRaster object

Author

Simon Smart simon.smart@cantab.net

Examples

raster <- terra::rast(nrow = 10, ncol = 10)
raster[] <- 1:100
uniform_raster <- agg_uniform(template = raster)