Compute and save to disk exact fire size by vegetation class from extracted ALFRESCO outputs.

fsv(in_dir, out_dir, group, region, period)

Arguments

in_dir

input fsv directory where extracted fsv data are located in .rds files.

out_dir

top level (project) output directory: the function will add a fsv/[group]/[region] subdirectory where the output file is saved.

group

character, the region group, used for file selection in in_dir.

region

character, the region, used for file selection in in_dir.

period

character, "historical" or "projected".

Details

This function computes exact annual fire sizes by vegetation class from extracted ALFRESCO model run outputs. If discrete probability distributions of annual fire by vegetation class are required, see alf_dist. This function uses the same inputs, the extraction .rds files created by run_alf_extraction. It essentially does nothing more than row bind the data frames from the extraction files without computing any other statistics. This yields one file in a project directory that covers all extracted fire size by vegetation class data for a unique geographic region.

Examples

# NOT RUN {
in_dir <- "/atlas_scratch/mfleonawicz/alfresco/JFSP/extractions/fsv"
out_dir <- "/workspace/UA/mfleonawicz/data/alfresco/JFSP"
fsv(in_dir, out_dir, "FMO", "MFC buffers", "historical")
# }