Learn R Programming

gfcanalysis (version 1.8.0)

threshold_gfc: Threshold the GFC product

Description

Uses the GFC data output from extract_gfc to make an thresholded layer stack with five layers: treecover2000, loss, gain, lossyear, and datamask layers. See Details for the coding used in each layer. Note that the output file format is fixed as GeoTIFF with LZW compression.

Usage

threshold_gfc(gfc, forest_threshold = 25, ...)

Value

RasterBrick with thresholded GFC product (see details above)

Arguments

gfc

extract of GFC product for a given AOI (see extract_gfc)

forest_threshold

percent woody vegetation to use as a threshold for mapping forest/non-forest

...

additional arguments as for writeRaster, such as filename or overwrite

Details

The output uses the following codes to describe forest change at each pixel:

Band 1 (forest2000)

Non-forest0
Forest1

Band 2 (lossyear)

No loss0
Loss in 20011
Loss in 20022
Loss in 20033
Loss in 20044
Loss in 20055
Loss in 20066
Loss in 20077
Loss in 20088
Loss in 20099
Loss in 201010
Loss in 201111
Loss in 201212
Loss in 201313
Loss in 201414

Note that lossyear is zero for pixels that were not forested in 2000, and that the 2013 and 2014 loss layers are not available in the original 2013 Hansen dataset (the 2013 loss layer is available in the 2014 and 2015 updates, while the 2014 loss layer is available in the 2015 update only).

Band 3 (gain)

No gain0
Gain1

Note that gain is zero for pixels that were forested in 2000

Band 4 (lossgain)

No loss and gain0
Loss and gain1

Note that loss and gain is difficult to interpret from the thresholded product, as the original GFC product does not provide information on the sequence (loss then gain, or gain then loss), or the levels of canopy cover reached prior to loss (for gain then loss) or after loss (for loss then gain pixels). The layer is calculated here as: lossgain <- gain & (lossyear != 0), where loss year and gain are the original GFC gain and lossyear layers, respectively.

Band 5 (datamask)

No data0
Land1
Water2

See Also

extract_gfc