Skip to content

ageDisturbanceSources: pass record names to LandR (new "all" rule) - #123

Merged
eliotmcintire merged 2 commits into
developmentfrom
feat/precanlad-age
Dec 2, 2026
Merged

eliotmcintire merged 2 commits into
developmentfrom
feat/precanlad-age

Conversation

@eliotmcintire

@eliotmcintire eliotmcintire commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

The fire models' per-year stand ages and young-stand covariate now follow the same choice of disturbance records as Biomass_borealDataPrep (the new "all" rule in LandR#301: Pre-CanLaD, CanLaD or NTEMS, NFDB–NBAC agreement), so fitting and simulation use the same ages.

Affects: only runs with ageDisturbanceSources set to something other than the default "NFDB". With "all", pre-1985 stand ages and youngAge change, so fits made that way need refitting. The default is unchanged.

Depends-on: PredictiveEcology/LandR#301

Technical details
  • fireSense_dataPrepFit.R (.inputObjects): both calls to LandR::prepInputsDisturbanceYear() (the per-year standAgeMaps and disturbancePixelsByYear) pass sources = ageSources, and run for any value other than a lone "NFDB", not only "all". The parameter's documentation lists the record names.
  • LandR >= 1.2.0.9069. Version 1.3.0.9046, NEWS.
  • tests/testthat/test-disturbanceAgeSources.R: checks both calls pass the sources and that the condition is no longer "all" only.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Lx3DXfVqAugcusGHygZGJ3

…D to "all")

Any value other than a lone "NFDB" goes to
LandR::prepInputsDisturbanceYear(sources = ...), which uses Pre-CanLaD before
1985 with "all" (LandR#301) and accepts record names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Lx3DXfVqAugcusGHygZGJ3
@eliotmcintire eliotmcintire added enhancement New feature or request backwards compatible Existing code and results keep working unchanged labels Dec 1, 2026
@eliotmcintire eliotmcintire changed the title ageDisturbanceSources: pass record names to LandR (Pre-CanLaD in "all") ageDisturbanceSources: pass record names to LandR (new "all" rule) Dec 1, 2026
@eliotmcintire
eliotmcintire merged commit 17624c2 into development Dec 2, 2026
9 checks passed
@eliotmcintire
eliotmcintire deleted the feat/precanlad-age branch December 2, 2026 16:50
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