
Calculate active fire properties based on NASA FIRMS polygons
Source:R/calc_active_fire_properties.R
active_fire_properties.Rd
This function allows to efficiently extract the properties of fire events occurred in the region of interest from the NASA FIRMS active fire polygon datasets. For each polygon, the fire events properties like fire pixel brightness temperature, and fire radiative power (frp) along with fire hotspots for the desired year is returned. The required resources for this indicator are:
Format
A tibble with a column for the 15 different fire events variables including lon/lat coordinates.
Examples
library(sf)
library(mapme.biodiversity)
temp_loc <- file.path(tempdir(), "mapme.biodiversity")
if (!file.exists(temp_loc)) {
dir.create(temp_loc)
resource_dir <- system.file("res", package = "mapme.biodiversity")
file.copy(resource_dir, temp_loc, recursive = TRUE)
}
(try(aoi <- system.file("extdata", "sierra_de_neiba_478140_2.gpkg",
package = "mapme.biodiversity"
) %>%
read_sf() %>%
init_portfolio(
years = 2021,
outdir = file.path(temp_loc, "res"),
tmpdir = tempdir(),
add_resources = FALSE,
verbose = FALSE
) %>%
get_resources("nasa_firms", instrument = "VIIRS") %>%
calc_indicators("active_fire_properties") %>%
tidyr::unnest(active_fire_properties)))
#> Simple feature collection with 21 features and 20 fields
#> Geometry type: POLYGON
#> Dimension: XY
#> Bounding box: xmin: -71.80933 ymin: 18.57668 xmax: -71.33201 ymax: 18.69931
#> Geodetic CRS: WGS 84
#> # A tibble: 21 × 21
#> WDPAID NAME DESIG_ENG ISO3 assetid bright_ti4 scan track acq_date acq_time
#> <dbl> <chr> <chr> <chr> <int> <dbl> <dbl> <dbl> <chr> <int>
#> 1 478140 Sier… National… DOM 1 338. 0.49 0.41 2021-01… 1812
#> 2 478140 Sier… National… DOM 1 341. 0.39 0.36 2021-01… 1754
#> 3 478140 Sier… National… DOM 1 298. 0.67 0.73 2021-01… 524
#> 4 478140 Sier… National… DOM 1 299. 0.67 0.73 2021-01… 524
#> 5 478140 Sier… National… DOM 1 333. 0.33 0.55 2021-02… 1718
#> 6 478140 Sier… National… DOM 1 345. 0.68 0.74 2021-02… 1700
#> 7 478140 Sier… National… DOM 1 346. 0.42 0.45 2021-03… 1736
#> 8 478140 Sier… National… DOM 1 346. 0.41 0.61 2021-03… 1712
#> 9 478140 Sier… National… DOM 1 336. 0.39 0.36 2021-03… 1754
#> 10 478140 Sier… National… DOM 1 331. 0.39 0.36 2021-03… 1754
#> # ℹ 11 more rows
#> # ℹ 11 more variables: satellite <chr>, instrument <chr>, confidence <chr>,
#> # version <int>, bright_ti5 <dbl>, frp <dbl>, daynight <chr>, type <int>,
#> # longitude <dbl>, latitude <dbl>, geom <POLYGON [°]>