Skip to contents

Forces raster to an specified extent

Usage

align_raster(
  iraster,
  rtemplate,
  outpath = c(NULL, "default", "yourpath"),
  outname = c(NULL, "yourname.tiff")
)

Arguments

iraster

a terra::rast object

rtemplate

a terra::rast object

outpath

a character string to save location. Note that it will be placed in a subfolder based on the template resolution.

Details

To facilitate stacking of rasters, and rasters of varied resolutions rasters must have the same extent. This function ensure that ..... MORE HERE ...

Examples