Repository navigation
Fix S9: burn cells used the ignition maps' grid - #36
Merged
Merged
Conversation
… S9 and writeSeededFires used the wrong cell coordinates Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
The shape score S9 has been placing every fire in the wrong spot on real hindcasts, because the burn maps are 4 times finer than the ignition maps and the code used the coarser grid for both. Every S9 value reported so far is wrong, and the new seeded-fire maps (#35) failed for the same reason.
Affects: S9 values change. On ELF 14.3 (lp05 in-sample, 141 fires) the model's AUC minus the distance-only baseline goes from +0.28 to -0.08: the shapes are not better than "near the start". S8 and the other tests are unchanged.
Technical details
readHindcastLocation()(R/readFireSenseHindcast.R:179) setburn$gridtogridOf()of the first ignition map (960 m, 404 x 360 for 14.3), whileburn$gridCelland the seeded starts are cells ofcore, the 240 m burn grid (1615 x 1438).scoreS9()andwriteSeededFires()turn cells into coordinates withgridXY(burn$grid, ...), so the circles were in the wrong place;writeSeededFires()stopped with "no valid cells" on the GPSC score of 2026-12-04.Fix:
burn$grid = gridOf(core). Checked on the cached 14.3 read: median AUC 0.94 -> 0.72, aucDiff +0.28 -> -0.08, shareInside 0.42 -> 0.93;writeSeededFires()writes all 141 fires (3 MB), each start inside its observed fire.Test: test-reader.R builds a hindcast with 2 x 2 ignition maps and 8 x 8 burn maps (no test called
readHindcastLocation()before; the toy ELFs used one grid for both). It fails without the fix. Full suite: 0 failed, 0 skipped.🤖 Generated with Claude Code