Extends landmine_fri_summary() with the structural measurements needed to tell why a fire-return-interval zone misses its target, and classifies each zone against a tolerance.

landmine_fri_metrics(
  lthfc,
  flammableMap,
  meanAnnualCumulBurnMap,
  studyAreaName,
  pixelAreaHa,
  studyArea = NULL,
  vegTypeMap = NULL,
  vegTypeMapInit = NULL,
  lccMap = NULL,
  treeClasses = NULL,
  tolerance = c(0.8, 1.25),
  severe = c(0.5, 2),
  minIgnitions = 20L,
  nYears = NA_real_
)

Arguments

lthfc

SpatRaster of target fire return intervals (the "LTHFC").

flammableMap

SpatRaster; 1 is flammable, 0 and NA are not.

meanAnnualCumulBurnMap

SpatRaster of mean annual burn counts per pixel.

studyAreaName

character, recorded in the returned table.

pixelAreaHa

area of one pixel, in hectares.

studyArea

optional SpatVector/sf polygon of the area the fire model was actually allowed to burn. Supplying this is strongly recommended; see Details.

vegTypeMap

optional SpatRaster of leading vegetation type. When supplied, a pctNoCohorts column reports the share of each zone's flammable pixels that carry no cohorts at all – non-forest land, not young forest. See Details.

vegTypeMapInit

optional SpatRaster of leading vegetation type at the START of the run. Supplying it separates land that never had cohorts from land that lost them, via pctCohortsInit and pctCohortsLost.

lccMap

optional SpatRaster of land cover class, on the same grid as lthfc.

treeClasses

integer vector of lccMap values that count as treed. Required with lccMap.

tolerance

length-2 numeric; achieved/target ratios outside this range are flagged. Symmetric in log space by default.

severe

length-2 numeric; ratios outside this range are flagged "severe".

minIgnitions

integer; a zone expected to see fewer ignitions than this over the whole run is reported but not judged, because its achieved FRI is dominated by sampling noise. Set NA to judge every zone.

nYears

length of the run in years, used with minIgnitions. NA skips the noise check.

Value

A data.table, one row per zone, sorted by LTHFC, with columns studyArea, LTHFC, FRI, ratio, status, areaHa, nTotal, nFlam, pctFlam, nPatches, largestPatchPct, pctNoCohorts, pctCohortsInit, pctCohortsLost, pctTreedLCC, cohortGap, pctInStudyArea, FRIunmasked, ratioUnmasked and expIgnitions. The columns depending on an optional input are NA when it is not supplied.

Details

ratio is achieved / target, so a value above 1 means the zone burns less often than intended (under-burning) and below 1 means more often. That orientation is what the diverging fill in landmine_plot_fri_zones() is centred on.

Why studyArea matters

LandMine masks both its rate-of-spread map and its spread probability to sim$studyArea, so pixels outside that polygon cannot be ignited or spread into. The fire-return-interval raster is not similarly masked, so it commonly extends past the polygon – and landmine_fri_summary() divides burns by every flammable pixel carrying an interval, unburnable ones included. Each such pixel inflates a zone's achieved interval without contributing any opportunity to burn.

This is not a small correction. On WesternAlbertaUpland, 988,437 of 3,361,240 flammable zone pixels (29.4%) lay outside the polygon and burned at a mean rate of 0.51 against 16.59 inside. Uncorrected, two zones appeared to under-burn by 3.5x and 12.2x; with the denominator restricted to the burnable area, every zone came in between 0.90 and 1.07 – there was no attainment problem at all. Supply studyArea and both figures are reported, ratio from the burnable area and ratioUnmasked the way the module's own summary computes it, so the discrepancy is visible rather than mistaken for a fire-model failure.

The structural columns exist because the failure modes are not distinguishable from the ratio alone:

  • pctFlam – the fraction of the zone that can carry fire at all. spread2() treats a non-flammable neighbour as a hard mask, so a porous zone loses perimeter growth every iteration and its fires stall short of their target size. On WesternAlbertaUpland the two failing zones were the only ones below 93% flammable (54.6% and 57.2%), which no previously-reported metric would have shown – the landscape-wide figure was 89%.

  • nPatches / largestPatchPct – these separate porous from fragmented. A zone can be half non-flammable and still be one connected sheet (zone 170's largest patch held 86.8% of its flammable pixels), which is a very different problem from a zone broken into islands smaller than the fire-size draw.

  • pctNoCohorts – on WesternAlbertaUpland this tracked the shortfall more closely than anything else: every zone below 5% hit its target (ratios 0.96-1.00), while the two worst zones were at 87.0% and 99.9%. Note it means non-forest land, not young forest: those same zones had the OLDEST stands in the study area (median time since fire 777 and 1067 years), so a young-fuel explanation is ruled out – high stand age is a consequence of under-burning, not its cause.

  • cohortGap = pctTreedLCC - pctCohortsInit – treed land that never received cohorts when the run was initialised. This separates "the zone genuinely is not forest" from "the zone is forest that was never populated", which the other columns cannot tell apart, and which imply completely different fixes. On WesternAlbertaUpland the gap was 0.1-2.1 points in every zone that met its target and 10.7-33.1 points in every zone that did not; cohort loss over 1000 years was at most 13.4% anywhere and ~0% in the two worst zones, so the shortfall is an initialisation property, not regeneration failure.