Skip to content

Climate moves the power-law ceiling (spreadClimate = ceiling) - #49

Merged
eliotmcintire merged 2 commits into
developmentfrom
feat/climateCeiling
Nov 19, 2026
Merged

eliotmcintire merged 2 commits into
developmentfrom
feat/climateCeiling

Conversation

@eliotmcintire

@eliotmcintire eliotmcintire commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Spread in dry years is capped by a fixed ceiling, so simulated burned area grows about half as fast with drought as observed. This lets climate move the ceiling toward the landscape's runaway threshold, never past it.

Affects: ledger rows from fits with spreadClimate = "ceiling" in fireSense_spreadFit; other rows predict exactly as before.

Technical details

spreadProbOneELF() (fireSense_spreadPredict.R) now calls fireSenseUtils::spreadLinkInputs() for the linear links: linearPredictor is its x (fuels only in ceiling mode), p is linearLinkProb(x, link, pars), and pars is returned as attribute linkPars (a vector, or one row per pixel in ceiling mode). New ledgerPowerLawPc50(sa, i) (NULL when absent or NA) is passed with climateRef. fireSense_SpreadPowerLaw is a per-pixel SpatRaster in ceiling mode even for one ELF (new linkParsRas()); multi-ELF blending accumulates the per-row linkPars. powerLawParsOf() is removed: spreadLinkInputs() makes the same vector (existing tests unchanged). fireSense_burn needs no change: its powerLawPars() reads any SpatRaster by layer name; a test reads the raster the same way and reproduces p from x, and I ran burn's powerLawPars() on such a raster.

Reuses: spreadLinkInputs(), linearLinkProb(), spreadFitPowerLawPc50Txt, spreadLinkParNames, the ledgerClimateRef() pattern; new: ledgerPowerLawPc50() (no reader of that column), linkParsRas() (the multi-ELF raster fill is inline over accumulated pars; this fills a raster from one pars matrix).

Tests (new test-climateCeiling.R; toy power-law helpers moved to setup-toySpread.R; OPENBLAS_NUM_THREADS=1, scratch library with fireSenseUtils from #250 labelled 0.2.3.9181): branch 0 failures, 387 passing; base (development, with the new tests) 4 errors, all in the new file, 365 passing.

Depends-on: PredictiveEcology/fireSenseUtils#250

🤖 Generated with Claude Code

…ing")

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@eliotmcintire eliotmcintire added enhancement New feature or request backwards compatible Existing code and results keep working unchanged labels Nov 19, 2026
…linkParsRas()

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@eliotmcintire
eliotmcintire merged commit c0e86f0 into development Nov 19, 2026
9 checks passed
@eliotmcintire
eliotmcintire deleted the feat/climateCeiling branch November 19, 2026 14:07
eliotmcintire added a commit that referenced this pull request Nov 19, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Lx3DXhXsFis2pbqBTh2PPh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backwards compatible Existing code and results keep working unchanged enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant