assemble_data brings together the DBCA Fire History data, the area of interest (aoi) and the aoi name into a list.

assemble_data(fire_path, FYfrom, FYto, aoi, accessed_on = NULL)

Arguments

fire_path

a character vector of the full file path to the previously downloaded DBCA Fire History DBCA 060 shape file (see details). File path includes file extension ".shp"

FYfrom

numeric representing the starting year for the analysis and generation of metrics. Years are financial year (July-June).

FYto

numeric representing the current year for the analysis and generation of metrics. Years are financial year (July-June).

aoi

the aoi object previously created by using either user_aoi() or DBCA_aoi()

accessed_on

date that the DBCA Fire History DBCA 060 shape file was downloaded and accessed. Defaults to NULL. Intention is to be able to track of when the data was accessed as over time the base data will be updated.

Value

A list containing the spatially and temporally subsetted Fire History polygons, the aoi polygon/s, the aoi name and period. Spatial data are of class SpatVector and are reprojected to Albers GDA2020 (epsg:9473). Note if there is no data in the Fire History for the aoi, the function returns an error with a message.

Details

Under the hood, assemble_data reads from the very large Fire History shape file only those polygons that intersect the aoi. The user must have previously downloaded the Fire History shape file DBCA_Fire_History_DBCA_060. The function stores the subset of the Fire History, the aoi and the aoi name in a named list which will be used by other functions for calculating various fire metrics. Note all spatial objects have class sf and data is now reprojected to Albers GDA2020 (epsg:9473).

Author

Bart Huntley, bart.huntley@dbca.wa.gov.au

Examples

if (FALSE) {
fire_data <- assemble_data(fire_path = "C:/path/to/data/DBCA_Fire_History_DBCA_060.shp",
FYfrom = 1988, FYto = 2022, aoi = aoi, accessed_on = "01/01/1901")
}