Skip to content

Refine MRMS validators and reprocess window for pass_2 fix#495

Merged
aldenks merged 4 commits intomainfrom
claude/fix-mrms-validators-WY1Va
Mar 7, 2026
Merged

Refine MRMS validators and reprocess window for pass_2 fix#495
aldenks merged 4 commits intomainfrom
claude/fix-mrms-validators-WY1Va

Conversation

@aldenks
Copy link
Member

@aldenks aldenks commented Mar 7, 2026

No description provided.

claude added 4 commits March 7, 2026 02:44
The validators were incorrectly failing due to:
1. precipitation_radar_only_surface has ~34% structural NaN from radar
   coverage gaps, exceeding the 15% threshold. The old random 2x2 spatial
   sampling was also unstable on this large geographic domain.
2. precipitation_pass_2_surface is 100% NaN right after an update due to
   very high source data latency, exceeding the 50% threshold.

Changes:
- Use quarter spatial sampling for stable estimates on the 3500×7000 grid
- precipitation_surface only in the non-lagged NaN check (max 35%):
  worst-case quarter is ~30% NaN when the most recent timestamp falls back
  to radar-only; radar_only's structural NaN is captured indirectly here
- pass_1 + categorical only in lagged NaN check (max 50%): pass_1
  worst-case quarter is ~46% NaN (most recent timestamp unavailable);
  pass_2 excluded as it has very high latency and is 100% NaN after updates

https://claude.ai/code/session_01JuCMa8C61QUGxsr8KLgXQk
- Add precipitation_radar_only_surface to non-lagged NaN check (35% threshold covers ~34% structural coverage gaps)
- Add precipitation_pass_2_surface to lagged NaN check alongside pass_1 (50% threshold handles gauge-collection latency)

https://claude.ai/code/session_01JuCMa8C61QUGxsr8KLgXQk
Validators:
- Move categorical_precipitation_type_surface to non-lagged check (PrecipFlag is
  radar-derived with no gauge latency)
- Tighten lagged check threshold from 50% to 40% (worst-case with gauge latency
  is ~38%: 1 of 3 timestamps at 100% NaN, rest at ~6%)

Operational update:
- Start reprocessing 3 hours before dataset max time so precipitation_surface
  gets rewritten with pass_2 data once it becomes available, overwriting any
  radar-only fallback written by the previous update run

https://claude.ai/code/session_01JuCMa8C61QUGxsr8KLgXQk
Define gauge_latency_vars once and use it as exclude_vars in the non-lagged
check, so new variables are automatically covered by the tighter threshold
without needing to update both validators.

https://claude.ai/code/session_01JuCMa8C61QUGxsr8KLgXQk
@aldenks aldenks merged commit 6389801 into main Mar 7, 2026
5 checks passed
@aldenks aldenks deleted the claude/fix-mrms-validators-WY1Va branch March 7, 2026 13:07
@aldenks aldenks linked an issue Mar 7, 2026 that may be closed by this pull request
7 tasks
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.

MRMS analysis

2 participants