Repository navigation
ageDisturbanceSources: pass record names to LandR (new "all" rule) - #123
Merged
Merged
Conversation
…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
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Lx3DXfVqAugcusGHygZGJ3
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.
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
ageDisturbanceSourcesset to something other than the default"NFDB". With"all", pre-1985 stand ages andyoungAgechange, so fits made that way need refitting. The default is unchanged.Depends-on: PredictiveEcology/LandR#301
Technical details
fireSense_dataPrepFit.R(.inputObjects): both calls toLandR::prepInputsDisturbanceYear()(the per-yearstandAgeMapsanddisturbancePixelsByYear) passsources = ageSources, and run for any value other than a lone"NFDB", not only"all". The parameter's documentation lists the record names.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