Skip to content

Comments

fix(data): strip bogus snow depth from Open-Meteo fallback path#335

Merged
Orinks merged 6 commits intodevfrom
fix/snow-depth-model-fallback
Feb 24, 2026
Merged

fix(data): strip bogus snow depth from Open-Meteo fallback path#335
Orinks merged 6 commits intodevfrom
fix/snow-depth-model-fallback

Conversation

@Orinks
Copy link
Owner

@Orinks Orinks commented Feb 24, 2026

Fixes #334

When NWS current conditions are unavailable, Open-Meteo is used as a full fallback — including its ERA5/GFS-modelled snow_depth, which can report wildly incorrect values (e.g. 17 inches on the ground in flat southern New Jersey in late February).

Fix: Null out snow_depth_in and snow_depth_cm before returning the Open-Meteo fallback. Only real observation station data should populate snow depth.

One-liner change in _augment_current_with_openmeteo.

When NWS current conditions are unavailable, Open-Meteo is used as a
full fallback — including its ERA5/GFS-modelled snow_depth which can
be wildly wrong (e.g. 17 inches in flat southern NJ). Strip snow_depth
before returning the fallback; only station observations are reliable.

Fixes #334
Open-Meteo/VC snow_depth bleeds into US current conditions via the
fusion engine's field-level merge even when NWS is available but
returns null for snow depth. Strip model-sourced snow depth for US
locations; international (ECMWF/Open-Meteo) is more reliable and kept.
…S trusted

VC likely sources US snowDepth from SNODAS (gridded analysis), same
unreliability as Open-Meteo ERA5/GFS. Only NWS snow depth accepted for
US; international Open-Meteo (ECMWF) remains unaffected.
Five new tests covering:
- Open-Meteo snow depth stripped for US (model/ERA5)
- Visual Crossing snow depth stripped for US (likely SNODAS-derived)
- NWS snow depth kept for US
- Open-Meteo snow depth kept for international (ECMWF reliable)
- pragma: no cover on async client fallback path (complex to mock)
@Orinks Orinks merged commit 71b7257 into dev Feb 24, 2026
6 checks passed
@Orinks Orinks deleted the fix/snow-depth-model-fallback branch February 24, 2026 03:11
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