Spread probability for the pixels of one ELF

spreadProbOneELF(
  covs,
  params,
  covMinMax,
  formula,
  yr,
  maxFireSpread,
  lowerSpreadProb,
  byParams = FALSE
)

Arguments

covs

data.table of this ELF's pixels: pixelID and covariates (as fireSense_dataPrepPredict makes them; fuel biomass logged).

params

data.frame of the ELF's fitted parameter sets, one per row (ledger params).

covMinMax

the ELF's covMinMax_spread.

formula

the spread formula, to check the covariates are all there.

yr, maxFireSpread, lowerSpreadProb

as for fireSenseUtils::spreadProbFromIntegerCovs() and fireSenseUtils::logisticAll().

byParams

logical; TRUE (several ELFs) ignores formula: the covariates are those named in params, and the table is cut to them, since it holds every ELF's covariates.

Value

data.table with pixelID and spreadProb, the mean over parameter sets.