getTM | R Documentation |
This function calculates yearly tree cover maps based on a starting year layer in a binary forest mask form and an loss year layer which indicates which pixels were subject to forest loss in a given year,
getTM(inputForestMap, inputLossMap, years = 2000:2018)
inputForestMap |
A |
inputLossMap |
A |
years |
A |
A binary RasterStack
with a number of layers equal to length(years)
.
A value of 0 represents no forest cover, a value of 1 represents forest cover.
All cell values indicating forest loss in the inputLossMap
object at a given year
will be consectuivley set to 0. The result is a yearly binary classification of forest cover.
Darius Görgen (MapTailor Geospatial Consulting GbR) info@maptailor.net
Maintainer: MAPME-Initiative contact@mapme-initiative.org
Contact Person: Dr. Johannes Schielein
Copyright: MAPME-Initiative
License: GPL-3
library(raster) library(mapme.forest) binaryCover = raster(system.file("extdata", "pkgTest_binaryCover.tif", package = "mapme.forest")) lossYear = raster(system.file("extdata", "pkgTest_lossyear.tif", package = "mapme.forest")) yearlyMaps = getTM(inputForestMap = binaryCover, inputLossMap = lossYear, years = 2001:2018) yearlyMaps
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.