Repository navigation
teehr-evaluate 0.1.0: evaluate a teehr-timeseries against USGS observations - #13
Merged
Merged
Conversation
…ations A model-agnostic tool under evaluation/: reads teehr-timeseries from a folder or in place from S3 with the step's vended keys, loads gage points from the USGS site service, fetches hourly USGS observations and, optionally, the NWM 3.0 retrospective at the same gages from NOAA's public Zarr (gage_id gives the reach), and writes metrics.parquet, locations.parquet and a manifest that records each gage left out and why. Inputs it can't evaluate are refused before any download. The image prefetches teehr's Spark jars (hardlinked, 3.3 GB), names any runtime uid through nss_wrapper, and drops the step's S3 settings once the input is read, so NOAA's anonymous reads go to AWS. CI builds tool images under nextgen/, evaluation/ and fim/.
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.
Step 4, PR 3 (hydrowf-core docs/design/teehr-evaluation.md, section 4).
evaluation/teehr-evaluate/: reads a teehr-timeseries (local or s3:// with the step's vended keys, through s3fs, which core's Reader env is set up for), loads gage points from the USGS site service, fetches hourly USGS observations (teehr 0.8.0), optionally the NWM 3.0 retrospective at the same gages (NOAA's public Zarr; its gage_id coordinate gives each gage's reach), and writes metrics.parquet, locations.parquet (GeoParquet) and manifest.json (bbox, period, inputs' sha256, metrics, baseline, gages left out and why).Tests (
tests/evaluate.sh, in containers): 14 offline refusals; an empty input; Spark starting offline as an unnamed uid; metrics from a local folder, with the NWM baseline, and read in place from S3 (RustFS, the step's endpoint set, as uid 4321) with the same results; two gages with one unknown and the baseline outside its period; January 2020 at 01031510, which has only ice-affected values at :15, left out as having no hourly observations. Every CWL validates.