Prepare ecoregions objects

prepEcoregions(
  ecoregionRst = NULL,
  ecoregionLayer,
  ecoregionLayerField = NULL,
  rasterToMatchLarge,
  rstLCCAdj,
  pixelsToRm,
  cacheTags
)

Arguments

ecoregionRst

an optional raster object that could be passed to sim, representing ecoregions

ecoregionLayer

an sf polygons object representing ecoregions

ecoregionLayerField

optional. The field in ecoregionLayer that represents ecoregions.

rasterToMatchLarge

the rasterToMatchLarge object from sim

rstLCCAdj

RasterLayer representing land cover adjusted for non-forest classes

pixelsToRm

a vector of pixels to remove

cacheTags

UserTags to pass to cache