Skip to content

Fix: nonflammableLCC missed SCANFI's rock/exposed code - #18

Merged
eliotmcintire merged 1 commit into
developmentfrom
fix/scanfi-rock-nonflammable
Sep 28, 2026
Merged

eliotmcintire merged 1 commit into
developmentfrom
fix/scanfi-rock-nonflammable

Conversation

@eliotmcintire

Copy link
Copy Markdown
Collaborator

fireSense_dataPrepPredict.R:46 hard-coded nonflammableLCC = c(0, 20, 31, 32, 33), the NTEMS non-flammable codes, missing 30, SCANFI's rock/exposed class. Land cover built by fireSenseUtils::makeFireSenseLCC() from SCANFI carries that code, so rock entered predictions as flammable non-forest.

The default now comes from fireSenseUtils::fireSenseNonflammableLCC (PredictiveEcology/fireSenseUtils#103), the same constant makeFireSenseLCC() uses. reqdPkgs now floors fireSenseUtils@development (>= 0.2.3.9060).

Verified with a new test that builds a toy land cover with a rock/exposed pixel and checks the module's flammability step (LandR::defineFlammable) marks it non-flammable: it fails on development and passes here. Full suite: 54 tests / 177 passed / 0 failed on development, 56 tests / 179 passed / 0 failed here (26 pre-existing warnings, unrelated, unchanged). Module version bumped to 1.0.4.9005; merge after fireSenseUtils#103.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

🤖 Generated with Claude Code

https://claude.ai/code/session_01CwcjqqK59FmTJscyi7xUqv

fireSense_dataPrepPredict.R:46 hard-coded nonflammableLCC = c(0, 20, 31, 32, 33),
the NTEMS non-flammable codes, missing 30 (SCANFI's rock/exposed class). Land
cover built from SCANFI by fireSenseUtils::makeFireSenseLCC() carries that
code, so rock entered predictions as flammable non-forest.

The default now comes from fireSenseUtils::fireSenseNonflammableLCC, the
single source of truth makeFireSenseLCC() also uses (fireSenseUtils PR #103).
reqdPkgs floors fireSenseUtils@development (>= 0.2.3.9060).

Version 1.0.4.9005. Rmd docs re-rendered.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CwcjqqK59FmTJscyi7xUqv
@eliotmcintire
eliotmcintire merged commit d2fbc4a into development Sep 28, 2026
6 of 11 checks passed
@eliotmcintire
eliotmcintire deleted the fix/scanfi-rock-nonflammable branch September 28, 2026 22:32
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