For each distinct value of lthfc (the target fire return interval, held as a raster of per-pixel FRI values), computes the achieved FRI as the reciprocal of the mean annual burn rate over that zone's flammable pixels.

landmine_fri_summary(
  lthfc,
  flammableMap,
  meanAnnualCumulBurnMap,
  studyAreaName,
  studyArea = NULL
)

Arguments

lthfc

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

flammableMap

SpatRaster; pixels that are NA or 0 are non-flammable and are excluded from both the numerator and the denominator.

meanAnnualCumulBurnMap

SpatRaster of mean annual burn counts per pixel.

studyAreaName

character, recorded in the returned table.

studyArea

optional SpatVector/sf polygon of the area the fire model was permitted to burn. Supply this. See Details.

Value

A data.table with columns studyArea, LTHFC, FRI, sorted by LTHFC.

Details

This was duplicated verbatim in the LandMine module's single- and multi-mode summary functions, so the two could silently diverge.

studyArea is not optional in practice

Without it, the achieved interval is computed over every flammable pixel carrying a fire return interval – including pixels outside the polygon that LandMine masks ROSmap and mod$spreadProb to, which therefore cannot burn at all. On WesternAlbertaUpland, 988,437 of 3,361,240 flammable zone pixels (29.4%) were outside, burning at a mean rate of 0.51 against 16.59 inside, and one zone had 73 burnable pixels out of 146,627. That made two zones look as though they under-burned by 3.5x and 12.2x; with the denominator restricted to the burnable area every zone came in between 0.90 and 1.07, i.e. there was no shortfall to explain. The argument defaults to NULL only so that existing callers keep their previous (wrong) numbers until they are updated deliberately.

Two edge cases are preserved as-is rather than "fixed", because changing them would change published outputs:

  • a zone in which nothing burned yields 1/0 = Inf, not NA and not a large finite number;

  • the burn total is a plain sum() with no na.rm, so an NA burn pixel inside a zone makes that whole zone's achieved FRI NA. Masking all three rasters by flammableMap is what normally prevents this – an implicit contract that the NA masks of lthfc and meanAnnualCumulBurnMap agree. Both behaviours are covered by tests so a future change to either is deliberate.