Skip to content

Make the National echo edge actually fade to nothing - #24

Merged
tcurtsinger merged 1 commit into
mainfrom
claude/national-edge-feather
Aug 5, 2026
Merged

tcurtsinger merged 1 commit into
mainfrom
claude/national-edge-feather

Conversation

@tcurtsinger

Copy link
Copy Markdown
Owner

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 Smooth no 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:

  • an echo boundary fades out over a full cell instead of ending in a square;
  • a lone measured cell renders as a soft dot at full opacity on its own center, not a tile;
  • interiors are unchanged (coverage is 1 wherever all neighbors are valid).

The tradeoff, stated plainly

Smooth now 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:

  • no measured value is ever blended with a missing/no-coverage sentinel — only opacity varies there;
  • Native is unchanged: exact measured footprint, hard cell boundaries, full opacity, no feather;
  • interrogation still reports the exact backend value and status, so a click inside the feathered margin truthfully answers missing or no coverage.

docs/25 records 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 verify green: 319 frontend tests, build, rustfmt, clippy, 134 Rust tests, cargo check. No Rust changes.
  • Sampling suite (the shader's testable mirror) rewritten to pin the ramp: full opacity at cell centers, 0.5 at the boundary, 0.1 just inside the unmeasured cell, exactly 0 where nothing contributes, sentinel codes provably excluded from the value at every step, and Native asserted hard-edged.

🤖 Generated with Claude Code

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>
@tcurtsinger
tcurtsinger merged commit e455e40 into main Aug 5, 2026
1 check passed
@tcurtsinger
tcurtsinger deleted the claude/national-edge-feather branch August 5, 2026 18:58
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