These functions are used for post-processing of ALFRESCO fire events from map outputs.

prep_fire_events(k, pts, locs, replicates, source = "Modeled",
  buffer_list = list(NULL),
  buffer_labels = LETTERS[1:length(buffer_list)], veg = NULL, main_dir)

prep_fire_events_emp(b, pts, locs, replicates = "Observed",
  source = "Observed", buffer_list = list(NULL),
  buffer_labels = LETTERS[1:length(buffer_list)], veg = NULL, yrs)

Arguments

k

integer, an iterator.

pts

table of point locations.

locs

location names

replicates

character, simulation replicate labels.

source

character, "Observed" or "Modeled".

buffer_list

list of point location buffers in meters.

buffer_labels

labels for buffers in list.

veg

vegetation raster layer.

main_dir

directory path.

b

a raster brick.

yrs

vector of years.

Value

a list.