FCMask: Forest-Change Mask
Description
This function can format GFC into forest-distribution
regions of interest over time.
Usage
FCMask(pol = NULL, year = 1:2, cummask = TRUE, deforest = FALSE,
perc = 80:100, mc.cores = detectCores(), ...)Arguments
pol
RasterStack;
SpatialPolygonsDataFrame; Extent;
character, or NULL. Spatial object
such as any of these produced by getGADM
or by FCPolygon. If NULL then a
list of unit names is printed, see
getGADM.
year
numeric. Years between 0 and 18 (or between
2000 and 2018).
cummask
logical. Compute cumulative masks
instead of discrete masks. Default TRUE.
deforest
logical. Process non-forest areas
instead of forest areas. Default FALSE.
perc
numeric. Percentage of canopy
closure. Default 80:100. This argument is
ignored if deforest = TRUE.
mc.cores
numeric. The number of cores,
see mclapply.
Value
RasterBrick of forest/non-forest masks over time. or
character vector with GADM.
Examples
Run this code# NOT RUN {
## A mask of GFC layers in the municipality of 'Uribia' is computed:
# }
# NOT RUN {
UribiaMask <- FCMask('Uribia')
plot(UribiaMask)
# }
Run the code above in your browser using DataLab