Repository navigation
Climate moves the power-law ceiling (spreadClimate = ceiling) - #49
Merged
Merged
Conversation
…ing") Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…linkParsRas() Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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"infireSense_spreadFit; other rows predict exactly as before.Technical details
spreadProbOneELF()(fireSense_spreadPredict.R) now callsfireSenseUtils::spreadLinkInputs()for the linear links:linearPredictoris itsx(fuels only in ceiling mode), p islinearLinkProb(x, link, pars), andparsis returned as attributelinkPars(a vector, or one row per pixel in ceiling mode). NewledgerPowerLawPc50(sa, i)(NULL when absent or NA) is passed withclimateRef.fireSense_SpreadPowerLawis a per-pixel SpatRaster in ceiling mode even for one ELF (newlinkParsRas()); multi-ELF blending accumulates the per-rowlinkPars.powerLawParsOf()is removed:spreadLinkInputs()makes the same vector (existing tests unchanged). fireSense_burn needs no change: itspowerLawPars()reads any SpatRaster by layer name; a test reads the raster the same way and reproduces p from x, and I ran burn'spowerLawPars()on such a raster.Reuses:
spreadLinkInputs(),linearLinkProb(),spreadFitPowerLawPc50Txt,spreadLinkParNames, theledgerClimateRef()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 tosetup-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