Skip to content

minSpeciesEcoregionShare: remove species rare in an ecoregion (default 0.07) - #135

Merged
eliotmcintire merged 2 commits into
developmentfrom
feat/minSpeciesEcoregionShare
Oct 3, 2026
Merged

eliotmcintire merged 2 commits into
developmentfrom
feat/minSpeciesEcoregionShare

Conversation

@eliotmcintire

@eliotmcintire eliotmcintire commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

Adds the parameter minSpeciesEcoregionShare (default 0.07) and passes it to LandR::makeAndCleanInitialCohortData(). Within studyArea_biomassParam, a species present (cover above minCoverThreshold) in fewer than 7% of an ecoregion's vegetated pixels is removed from every pixel of that ecoregion. With no cohorts left there, the existing code gives it establishprob = 0 and no maxB/maxANPP in that ecoregion.

The default comes from BC ELFs with BEC zones (localEcozones). Western redcedar in the mountain hemlock (MH) zone ranges up to 6.7% by ELF (13.2.1), and in ESSF up to 2.2%. It should not persist in either. Its lowest share where it belongs is 7.3% (ICH in ELF 14.1). Set the parameter to 0 for the old behaviour.

Merge order: needs PredictiveEcology/LandR#264 merged and bumped to 1.2.0.9046 (the new reqdPkgs floor). tests/testthat/test-metadata.R lists the new parameter.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NrcKsYkv9Qx5qU4JTxSzGN

eliotmcintire and others added 2 commits October 2, 2026 16:29
…AndCleanInitialCohortData

Needs LandR#264 (and its version bump to 1.2.0.9046).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NrcKsYkv9Qx5qU4JTxSzGN
@eliotmcintire eliotmcintire changed the title minSpeciesEcoregionShare: remove species rare in an ecoregion (default 0.05) minSpeciesEcoregionShare: remove species rare in an ecoregion (default 0.07) Oct 3, 2026
@eliotmcintire

Copy link
Copy Markdown
Collaborator Author

This type of idea has been discussed for over a year. Now finally implemented.

@eliotmcintire
eliotmcintire merged commit 46c7f7a into development Oct 3, 2026
4 of 6 checks passed
@eliotmcintire
eliotmcintire deleted the feat/minSpeciesEcoregionShare branch October 3, 2026 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant