Lazily reads a MapBiomas Fuego (Fire) Peru raster from a given
sub-product, hosted as a GeoTIFF on Google Cloud Storage. Only the bytes
required for the requested extent are downloaded (via GDAL's
/vsicurl/ driver). Optionally crops and masks the raster to an
area of interest.
Arguments
- product
Character. One of the products listed in
get_mapbiomas_peru_fire_products, e.g."annual_burned".- year
Integer. For
"annual"products, the map year (from1999). For"range"products (accumulated_*,frequency_burned), the end year (from2014, range starts 2013).- crop_to
Optional. An
sf/sfcobject,SpatVector, orSpatExtent. IfNULL, the full raster is returned.- collection
Integer. MapBiomas Fuego Peru collection. Default
1(only one available).
Examples
if (FALSE) { # \dontrun{
library(geoidep)
lima <- get_departaments("LIMA")
burned_2024 <- get_mapbiomas_peru_fire(product = "annual_burned", year = 2024, crop_to = lima)
} # }