LandMine burn optimization function

landmine_optim_burnFun(
  ros,
  centreCell,
  fireSize,
  spawnNewActive,
  sizeCutoffs,
  spreadProb
)

Arguments

ros

SpatRaster of LandMine Rate Of Spread values.

centreCell

See startCells in landmine_burn1().

fireSize

See fireSizes in landmine_burn1().

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.

sizeCutoffs

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

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.

Value

named list of length 2 containing:

  • burnedMap: SpatRaster of burned pixels;

  • LM: data.frame of patch statistics from landscapemetrics.