13 Usage

Single mode needs no setup beyond adding the module to a simulation that includes fireSense.

Multi mode:

library(SpaDES.core)

mySim <- simInit(
  times = list(start = 2011, end = 2100),
  modules = list("fireSense_summary"),
  params = list(fireSense_summary = list(
    mode = "multi",
    simOutputPath = "outputs/myStudyArea", ## holds rep01/, rep02/, ...
    studyAreaName = "myStudyArea",
    climateScenario = "CanESM5_SSP370",
    reps = 1L:10L
  )),
  objects = list(rasterToMatch = rasterToMatch),
  paths = list(modulePath = "..")
)
spades(mySim)

The replicate files are found either from outputsDF (the row-bound outputs(sim) of the replicates) or, without it, by searching simOutputPath/rep*/; in that case the module stops if a burn map or burn summary is missing. Historical fires for the comparison figure come from firePolys and ignitionFirePoints, or are downloaded from the Canadian National Fire Database.