extract_gfc | R Documentation |
This function extracts a dataset for a given AOI from a series of
pre-downloaded GFC tiles. The download_tiles
function should
be used beforehand in order to download the necessary data to the specified
data_folder
. Note that the output file format is fixed as GeoTIFF
with LZW compression.
extract_gfc(
aoi,
data_folder,
to_UTM = FALSE,
stack = "change",
dataset = "GFC-2022-v1.10",
...
)
aoi |
an Area of Interest (AOI) as a |
data_folder |
folder where downloaded GFC product tiles are located
(see |
to_UTM |
if TRUE, then reproject the output into the UTM zone of the AOI centroid. If FALSE, retain the original WGS84 projection of the GFC tiles. |
stack |
the layers to extract from the GFC product. Defaults to "change". See Details. |
dataset |
which version of the Hansen data to use |
... |
additional arguments as for |
The stack
option can be "change" (the default), "first", or "last".
When set to "change", the forest change layers (treecover2000, loss, gain,
lossyear, and datamask) will be extracted for the given aoi
. The
"first" and "last" options will mosaic the 2000 or last year composite top
of atmosphere (TOA) reflectance images (respectively).
RasterStack
with GFC layers
download_tiles
, annual_stack
,
gfc_stats
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.