The main function for the Andison Fire Module. See details.

landmine_burn1(
  landscape,
  startCells,
  fireSizes = 5,
  nActiveCells1 = c(10, 36),
  spawnNewActive = c(0.46, 0.2, 0.26, 0.11),
  maxRetriesPerID = 10L,
  sizeCutoffs = c(8000, 20000),
  spreadProbRel = NA_real_,
  spreadProb = 0.77,
  omitPixels = NULL
)

landmine_burn(
  landscape,
  startCells,
  fireSizes = 5,
  nActiveCells1 = c(10, 36),
  spawnNewActive = c(0.46, 0.2, 0.26, 0.11),
  sizeCutoffs = c(8000, 20000),
  spreadProbRel = 0.23
)

Arguments

landscape

A SpatRaster. This only provides the extent and resolution for the fire spread algorithm.

startCells

A numeric vector indicating the indices on the landscape where the fires will start with 100%% certainty.

fireSizes

A numeric vector indicating the final size of each of the fires. Must be same length as startCells.

nActiveCells1

A numeric vector of length 2. These are cutoffs above and below each of which different values of spawnNewActive are used. See details.

spawnNewActive

A numeric vector of length 4. These are the probabilities of creating spreading to 2 neighbours instead of the 1 default neighbour, each time step. The 4 values are for 4 different fire size conditions. See details.

maxRetriesPerID

Integer. Maximum number of retry attempts per firelet ID.

sizeCutoffs

A numeric vector of length 2. These are 2 size (in hectares) thresholds that affect which spawnNewActive probabilities are used. See details.

spreadProbRel

Relative probabilities, with non-flammable pixels NA: either a raster layer, or a numeric vector of length terra::ncell(landscape). For landmine_burn1(), prefer the numeric vector, for the same reason as spreadProb (needs SpaDES.tools >= 2.1.2.9000).

spreadProb

Spread probabilities, with non-flammable pixels NA: either a raster layer, or a numeric vector of length terra::ncell(landscape). For landmine_burn1(), prefer the numeric vector: spread2() re-materialises a raster spreadProb on every spread step, which is O(ncell) per step. No fire spreads into a pixel whose spreadProb is NA, in any step. The first step uses probability 1 in every other pixel.

omitPixels

An optional vector of pixel IDs to omit from fire size calculations. Can be used if spreadProb or spreadProbRel do not designate non-flammable pixels as NA, to allow fires to move through these pixels, while excluding these pixels from burn area calculations. Useful in study areas with discontinuous fuels, which would otherwise result in fires getting 'stuck' too often, and not reach their target size.

Value

A data.table with 4 columns (initialPixels, pixels, state, order).

Details

This algorithm is a modified contagious cellular automaton.

Note

The original version (landmine_burn()) is deprecated and should not be used. Use landmine_burn1() instead.

Algorithm

Core

Each fire starts at a single pixel, startCells and will spread, i.e., visit and convert from a 0 to the fire id number. It will iteratively spread until the number of cells visited is equal to floor(fireSizes).

Adjustments due to current fire size and number of active pixels

That can vary too, but it gets a bit complicated, so use that for now. Spawning probability was originally set at 13%, but created problems with very large and very small fires, so over time has been adjusted to vary depending on: a) number of active "firelets" (NF); and b) fire size (FS), such that:

  - If nActiveCells1[1] <= NF <  nActiveCells1[2] and FS < sizeCutoffs[2] -> spawnNewActive[2];
  - If                      NF >= nActiveCells1[2] and FS < sizeCutoffs[1] -> spawnNewActive[4];
  - If                      NF <  nActiveCells1[2] and FS > sizeCutoffs[2] -> spawnNewActive[3];
  - otherwise (including NF < nActiveCells1[1])                            -> spawnNewActive[1].

These rules create more heterogeneity in the pattern of burning.

Thresholds are given symbolically because the fitted values differ from the figures this documentation used to quote: sizeCutoffs is calibrated, and LandMine's adopted fit (the 120 m fit, row 1 of its LandMine_DEoptim_params.csv) gives about 2226 / 5559 ha rather than the 8,000 / 20,000 originally described.

The second rule uses >=: with >, the NF == nActiveCells1[2] case matched no rule.

A gap remains, and is deliberately not patched silently: when NF >= nActiveCells1[2] and FS >= sizeCutoffs[1], no rule applies and spawnNewActive[1] is used. The deprecated landmine_burn() set that region to zero instead, noting it is "undescribed in Andison" and that fires "look too circular" without it. Deciding between those requires a re-fit, so it is left as a documented open question.

Fire jumping

If the fire has not reached its target size, it will try to pick new neighbours among the 8 immediate neighbours up to 4 times. If it still did not find enough neighbours, then it will jump or "spot" up to 4 pixels away. It will then repeat the previous 2 stages again once (i.e., 4 neighbours, 1 jump, repeat), then it will stop, unable to achieve the desired fireSize.