Repository navigation
GHCNh for a date window, and observations fetched only at the forecast steps - #12
Merged
Merged
Conversation
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
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.
Two changes that let scorvec.com's verification database pair every GHCNh station instead of a 2500-station sample:
ghcnh.ingest(since=, until=)andmverify db ghcnh --since/--untilread 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.fetch_obs(times=)keeps those valid times andmatchpasses 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, andtest_fetch_obs_filterscoverstimes.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