Skip to contents

Process input fire history vector data to produce yearly history rasters

Usage

processFire(
  outdir,
  fire_history,
  season_field,
  start_year = NULL,
  end_year = NULL,
  quiet = TRUE
)

Arguments

outdir

Directory to output fire history, must contains files produced by createDomain

fire_history

SpatVect or SimpleFeatures object contianing the fire history polygons. Must contain a field with fire date as a four-digit year.

season_field

Name of field in SpatVect containing year/season of fire

start_year

Optional, start year for history calculation. Years before this will be excluded.

end_year

Optional end year for history production. Years after this will be excluded. If this year is beyond the end year in the history, empty future projection rasters will be produced.

quiet

Print progress information

Value

Path to outdir for piping.

Examples

if (FALSE) {
data("COH_Fire")
fire_history <- vect(COH_Fire)
processFire("output",fire_history=fire_data,season_field="Year")
}