cut_projarea_rst_b: Cut projection areas of multiple species based on a single...

View source: R/2.f.proj.prep.R

cut_projarea_rst_bR Documentation

Cut projection areas of multiple species based on a single SpatialPolygon object (e.g. Ecoregion)

Description

This function will use a single SpatialPolygon to crop/mask raster/brick objects to be used on model projections.

Usage

cut_projarea_rst_b(
  area.p,
  env.uncut,
  occ.polys,
  mask = FALSE,
  sp.mask.l = NULL,
  prj.nm = "",
  sp.nm = "mult.spp"
)

Arguments

area.p

SpatialPolygon to be used as reference to crop/mask environmental variables of all species

env.uncut

raster/brick of environmental variables to be cut

occ.polys

list of occ.poly SpatialPolygons. see ?set_projarea for details.

mask

Should mask raster? (i.e. only use area inside polygon. See ?raster::mask for details) or use all spatial extent of area.p

sp.mask.l

a list of objects of class: SpatialPolygons or SpatialPolygonsDataFrame, used as additional mask to be applied on the predictor variables (env.uncut)

#' @seealso set_projarea, set_projarea_b, cut_projarea, cut_projarea_b, cut_projarea_mscn_b, cut_projarea_rst, cut_projarea_rst_mscn_b

prj.nm

climatic scenario name, usually "fut" or "past" is used to indicate a general timing of scenario

sp.nm

name (of species) to give to saved object

Value

list of environmental layers (raster/brick) cutted


HemingNM/ENMwizard documentation built on Jan. 4, 2024, 3:24 p.m.