
Crop a MapBiomas Fire raster to an area of interest (local backend)
Source:R/fire.R
fire_raster_local.RdThin wrapper over mb_raster_local; reuses its windowed
/vsicurl/ read and on-disk cache.
Usage
fire_raster_local(
aoi,
year = 2024,
product = c("accumulated", "annual", "frequency"),
fire_collection = 4,
host_collection = 9,
src = NULL,
mask = TRUE,
cache = TRUE,
cache_dir = NULL
)Arguments
- aoi
An
sf/sfcpolygon (e.g. an EOO hull or AOO union).- year
Integer year (ignored when
product = "accumulated").- product
"accumulated"(default) or"annual".- fire_collection
Fire collection number (default
4).- host_collection
Initiative folder hosting the fire data (default
9; Fire Col.4 lives undercollection_9/).- src
Optional GeoTIFF path/URL overriding the built fire URL.
- mask, cache, cache_dir
Passed to
mb_raster_local.