Learn R Programming

forestChange (version 1.0)

CCPolygon: Canopy-cover polygon

Description

This function computes regions of interest across GFC areas for tree-cover data (GFC30TC).

Usage

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

Arguments

pol

SpatialPolygonsDataFrame, character or NULL. Polygon geometry, GADM, stack such as tha produced by FCPolygon, or NULL. If NULL then a list of GADM units is printed.

path

character. File path(s) to GFC30TC layers (.tif), or to zip archives containing GFC30TC.

int.patt

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

mc.cores

logical. Use parallel execution. Default TRUE. Ignored in Windows machines.

Additional arguments in FCMask.

Value

RasterStack, set of GADM units, or NULL.

References

Sexton, J. O., Song, X. P., Feng, M., Noojipady, P., Anand, A., Huang, C., ... & Townshend, J. R. (2013). Global, 30-m resolution continuous fields of tree cover: Landsat-based rescaling of MODIS vegetation continuous fields with lidar-based estimates of error. International Journal of Digital Earth, 6(5), 427-448.

Examples

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

Run the code above in your browser using DataLab