Skip to content

Fix S9: burn cells used the ignition maps' grid - #36

Merged
eliotmcintire merged 1 commit into
developmentfrom
burn-grid-resolution
Dec 4, 2026
Merged

eliotmcintire merged 1 commit into
developmentfrom
burn-grid-resolution

Conversation

@eliotmcintire

Copy link
Copy Markdown
Contributor

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) set burn$grid to gridOf() of the first ignition map (960 m, 404 x 360 for 14.3), while burn$gridCell and the seeded starts are cells of core, the 240 m burn grid (1615 x 1438). scoreS9() and writeSeededFires() turn cells into coordinates with gridXY(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

… S9 and writeSeededFires used the wrong cell coordinates

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@eliotmcintire eliotmcintire added the bug Something isn't working label Dec 4, 2026
@eliotmcintire
eliotmcintire merged commit 6a1fc5c into development Dec 4, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant