active_fire_counts {mapme.biodiversity} | R Documentation |
Calculate active fire counts based on NASA FIRMS polygons
Description
This function allows to efficiently calculate the number of fire events occurred in the region of interest from the NASA FIRMS active fire polygon datasets. For each polygon, the fire event counts for the desired year is returned.
Usage
calc_active_fire_counts()
Details
The required resources for this indicator are:
Value
A function that returns a tibble with a column for number of fire events per year and instrument.
Examples
## Not run:
library(sf)
library(mapme.biodiversity)
outdir <- file.path(tempdir(), "mapme-data")
dir.create(outdir, showWarnings = FALSE)
mapme_options(
outdir = outdir,
verbose = FALSE
)
aoi <- system.file("extdata", "sierra_de_neiba_478140_2.gpkg",
package = "mapme.biodiversity"
) %>%
read_sf() %>%
get_resources(get_nasa_firms(years = 2021, instrument = "VIIRS")) %>%
calc_indicators(calc_active_fire_counts()) %>%
tidyr::unnest(active_fire_counts)
aoi
## End(Not run)
[Package mapme.biodiversity version 0.6.0 Index]