FCMask: Forest-Change Mask

Description Usage Arguments Value Author(s) Examples

Description

This function can format GFC into forest-distribution regions of interest over time.

Usage

1
2
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.

...

Additional arguments in FCPolygon.

Value

RasterBrick of forest/non-forest masks over time. or character vector with GADM.

Author(s)

Wilson Lara <wilarhen@temple.edu>, Victor Gutierrez-Velez <victorhugo@temple.edu>

Examples

1
2
3
4
5
## A mask of GFC layers in the municipality of 'Uribia' is computed:
 
 UribiaMask <- FCMask('Uribia')
 plot(UribiaMask)
 

forestChange documentation built on March 26, 2020, 7:26 p.m.