Skip to content

Hindcast youngAge uses the fit's fire-and-harvest history - #52

Merged
eliotmcintire merged 2 commits into
developmentfrom
feat/disturbance-age-sources
Nov 30, 2026
Merged

eliotmcintire merged 2 commits into
developmentfrom
feat/disturbance-age-sources

Conversation

@eliotmcintire

@eliotmcintire eliotmcintire commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

Hindcasts decide which stands are "young" from the same fire and harvest history the fit used, so predictions and fits stay consistent after the new disturbance ages.

Affects: hindcast youngAge when fireSense_dataPrepFit provides disturbancePixelsByYear; unchanged otherwise.

Depends-on: PredictiveEcology/fireSense_dataPrepFit#121

Technical details

hindcastYoungAgeInputs() takes firePixels from sim$disturbancePixelsByYear when present, else firePixelsByYear(firePolysForAge, historicalFireRaster) as before. The no-fire-data stop names the new input. New expectsInput.

Tests: new case in test-latestVegetation.R (62 pass). test-metadata.R (6) passes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Lx3DXfVqAugcusGHygZGJ3

As fireSense_dataPrepFit does, so a hindcast resolves youngAge from the same
fires and cuts as the fit.

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 Nov 30, 2026
…l" uses now

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Lx3DXfVqAugcusGHygZGJ3
@eliotmcintire
eliotmcintire merged commit 111caca into development Nov 30, 2026
9 checks passed
@eliotmcintire
eliotmcintire deleted the feat/disturbance-age-sources branch November 30, 2026 23:55
eliotmcintire added a commit that referenced this pull request Nov 30, 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