Extract ALFRESCO data from simulation model run outputs.

extract_alf(i, type, loop_by, main_dir, age_dir = NULL, reps, years,
  cells, ...)

prep_alf_files(i, loop_by, main_dir, reps, years)

extract_fsv(i, loop_by, main_dir, reps = NULL, years = NULL, cells,
  ...)

extract_av(i, loop_by, main_dir, age_dir = NULL, reps = NULL,
  years = NULL, cells, ...)

Arguments

i

numeric, iterator.

type

"av" or "fsv" for vegetation age and cover area data extraction or fire sizes by vegetation cover type data extraction, respectively.

loop_by

character, loop over files by "rep" or by "year".

main_dir

main input directory.

age_dir

age inputs directory.

reps

integer vector, ALFRESCO simulation replicate indices for data extraction.

years

numeric vector, years for data extraction.

cells

data frame containing cell indices for the appropriate ALFRESCO spatial domain.

...

additional arguments.

Value

a data frame is returned for further processing as well as there being a side effect of additional files being written directly to disk.

Details

The ALFRESCO wildfire model outputs collections of geotiff files for each year and simulation replicate of a model run. These functions assist with extracting data from these map layers for use in statistical analysis and other applications.

prep_alf_files prepares ALFRESCO output map file lists for ingestion by the data extraction functions.

Examples

# not run