Skip to content

GHCNh for a date window, and observations fetched only at the forecast steps - #12

Merged
scorvec merged 2 commits into
mainfrom
claude/ghcnh-window
Oct 28, 2026
Merged

scorvec merged 2 commits into
mainfrom
claude/ghcnh-window

Conversation

@scorvec

@scorvec scorvec commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

Two changes that let scorvec.com's verification database pair every GHCNh station instead of a 2500-station sample:

  • GHCNh ingest for a date window. ghcnh.ingest(since=, until=) and mverify db ghcnh --since/--until read and quality-control each station-year whole (the spike and stuck-sensor checks see the hours either side) but store only the window, so every station for a few weeks fits on a runner where a year of them would not. The window is part of the version logged, so a store read for one window reads the files again for another.
  • match reads only the observations at the fields' valid times. fetch_obs(times=) keeps those valid times and match passes the forecast's steps: a 12-hourly forecast against hourly stations held twelve times the observations it could use. Gauge totals end at a step too (accumulations are taken between steps), so no pair changes.

Tests: test_ghcnh_window_stores_only_its_hours_of_each_station_year, and test_fetch_obs_filters covers times.

The site pins 783fd7f (this branch's head): merge with a merge commit, not a squash, so that commit stays on main.

🤖 Generated with Claude Code

https://claude.ai/code/session_0148RnpHupoNFzgsLvayCDr9

scorvec and others added 2 commits October 27, 2026 20:30
ghcnh.ingest(since=, until=) and mverify db ghcnh --since/--until read and
quality-control each station-year whole (the spike and stuck-sensor checks
see the hours either side) but store only the window, so every GHCNh station
for a few weeks fits where a year of them would not. The window is part of
the version logged, so a store read for one window reads the files again for
another.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0148RnpHupoNFzgsLvayCDr9
fetch_obs(times=) keeps those valid times, and match passes the forecast's
steps: a 12-hourly forecast against hourly stations held twelve times the
observations it could use (gigabytes for every GHCNh station over a few
weeks). Gauge totals end at a step too, since accumulations are taken
between steps, so no pair changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0148RnpHupoNFzgsLvayCDr9
@scorvec scorvec changed the title claude/ghcnh window GHCNh for a date window, and observations fetched only at the forecast steps Oct 28, 2026
@scorvec
scorvec merged commit 53cc3a5 into main Oct 28, 2026
6 checks passed
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