Skip to content

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

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_dataPrepFit.R:81 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 fits as flammable non-forest: 20% of ELF 14.4's "flammable" pixels, 6.9% in 14.3, 8.6% in 4.1 and 5.3.2, in land cover built after mid-September.

The default now comes from fireSenseUtils::fireSenseNonflammableLCC (PredictiveEcology/fireSenseUtils#103), the same constant makeFireSenseLCC() uses, so the two cannot diverge again. reqdPkgs now floors fireSenseUtils@development (>= 0.2.3.9060); a pre-existing test that pinned the old floor's version string is updated to match.

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: 62 tests / 180 passed / 0 failed on development, 64 tests / 182 passed / 0 failed here. Module version bumped to 1.2.0.9017; 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_dataPrepFit.R:81 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 fits as flammable non-forest (20% of ELF 14.4's
"flammable" pixels in the 2026-09 land cover, 6.9% in 14.3, 8.6% in 4.1/5.3.2).

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). A pre-existing
test pinned the old floor version string; updated to match.

Version 1.2.0.9017. 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 0545290 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