Description Usage Arguments Value Author(s)
Rasterize a PRODES vector to match a reference raster resolution.
1 2 3 4 5 6 7 8 | prodes2raster(
file_pd,
file_rt,
raster_path = tempfile(pattern = "prodes2raster", fileext = ".tif"),
tile,
year_pd,
prodes_lbl
)
|
file_pd |
A length-one character. Path to a PRODES map (a shapefile). |
file_rt |
A length-one character. Path to raster of reference (a tif). |
raster_path |
A length-one character. An optional file path to store the resulting raster. |
tile |
DEPRECATED. A length-one character. The Landsat scene id (6 numbers). |
year_pd |
A integer. The years of deforestation to keep in the output. |
prodes_lbl |
A tibble mapping the labels of PRODES from Portuguesse to English. It must contain the PRODES' labels in Portuguese (label_ld_pt, character) and english (label_pd, character), and its ID (id_pd, an integer that must have a one-to-one relationship to label_id). |
A raster object.
Alber Sanchez, alber.ipia@inpe.br
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.