rasterToMatch and rasterToMatchLarge raster layers are created from studyArea and studyAreaLarge polygons (respectively) using a template raster (often rawBiomassMap)

prepRasterToMatch(
  studyArea,
  studyAreaLarge,
  rasterToMatch,
  rasterToMatchLarge,
  destinationPath,
  templateRas,
  studyAreaName,
  cacheTags
)

Arguments

studyArea

A SpatialPolygons* object used as the principle study region, passed to reproducible::prepInputs().

studyAreaLarge

same as studyArea, but larger and completely covering it.

rasterToMatch

A RasterLayer objects to use as the template for all subsequent raster operations (i.e., the one used throughout the simulation).

rasterToMatchLarge

the rasterToMatchLarge object from sim

destinationPath

path to data directory where objects will be downloaded or saved to

templateRas

a template raster used to make rasterToMatch and/or rasterToMatchLarge. Must match studyAreaLarge.

studyAreaName

character string giving the study area name.

cacheTags

a character vector of strings to pass to Cache(userTags)