Learn R Programming

forestChange (version 1.0)

EBVMask: EBV Mask

Description

This function combines EBV distribution maps with forest/non-forest masks from FCMask.

Usage

EBVMask(pol = NULL, path, int.patt = "[[:digit:]].tif", mc.cores = detectCores(), 
    ...)

Arguments

pol

SpatialPolygonsDataFrame, character or NULL. User-defined polygon, the name of a GADM, or such a name plus its corresponding higher-level unit. If NULL then a list of GADM units is printed.

path

character. File path(s) to the distribution maps maps. (.tif). Compressed files (.zip) are extracted.

int.patt

character. If files in path are compressed then common pattern in the extracted files. Default '[[:digit:]].tif'.

mc.cores

numeric. The number of cores.

additional arguments in FCMask. This argument only works if pol is not an object produced by FCMask.

Value

RasterStack, set of GADM units, or NULL.

Examples

Run this code
# NOT RUN {
mun  <- EBVMask(NULL)
# }

Run the code above in your browser using DataLab