Fix: nonflammableLCC missed SCANFI's rock/exposed code - #18
Merged
Merged
Conversation
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
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.
fireSense_dataPrepPredict.R:46hard-codednonflammableLCC = c(0, 20, 31, 32, 33), the NTEMS non-flammable codes, missing30, SCANFI's rock/exposed class. Land cover built byfireSenseUtils::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 constantmakeFireSenseLCC()uses.reqdPkgsnow floorsfireSenseUtils@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 ondevelopmentand passes here. Full suite: 54 tests / 177 passed / 0 failed ondevelopment, 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