Repository navigation
Make the National echo edge actually fade to nothing - #24
Merged
Merged
Conversation
The previous edge fix was live but invisible: coverage only reached 0.5 at the outer boundary, so the fragment still painted at ~71% opacity and then cliffed to zero across a half-cell ramp. A 30% dimming in front of a 70% cliff reads as a hard edge. Coverage is now the opacity directly, and Smooth no longer stops at the measured footprint: opacity ramps from full at the last measured cell center to zero at the first unmeasured cell center, so an echo boundary fades out over a full cell instead of ending in a square, and a lone measured cell becomes a soft dot rather than a tile. Native keeps the hard-edged exact footprint at full opacity. The tradeoff is explicit: Smooth feathers up to half a cell (~500 m) past the measured footprint at low opacity. No measured value is ever blended with a sentinel - only opacity varies there - and interrogation still answers missing/no-coverage truthfully inside the margin. Co-Authored-By: Claude Fable 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.
Summary
Follow-up to #23, which shipped correctly but was visually invisible — the owner reported no difference, and the math explains why:
At the outer boundary of the last measured cell, coverage is 0.5, so the old
sqrt(coverage)feather painted at ~71% opacity and then cliffed straight to 0. A 30% dimming spread over half a cell, followed by a 70% cliff, looks exactly like a hard edge.Coverage is now the opacity directly, and
Smoothno longer terminates at the measured footprint. Opacity ramps from full at the last measured cell center to zero at the first unmeasured cell center, so:The tradeoff, stated plainly
Smoothnow feathers up to half a cell (~500 m) past the measured footprint at low opacity. That translucent margin is precisely what replaces the hard square edge. Guardrails:Nativeis unchanged: exact measured footprint, hard cell boundaries, full opacity, no feather;missingorno coverage.docs/25records this as an accepted display-only cost of the mode (correcting the "footprint identical in both modes" line from #23).Still not a resolution change — MRMS CONUS remains a 1 km grid.
Validation
npm run verifygreen: 319 frontend tests, build, rustfmt, clippy, 134 Rust tests, cargo check. No Rust changes.🤖 Generated with Claude Code