Skip to content

teehr-evaluate 0.1.0: evaluate a teehr-timeseries against USGS observations - #13

Merged
romer8 merged 1 commit into
mainfrom
teehr-evaluate
Nov 21, 2026
Merged

romer8 merged 1 commit into
mainfrom
teehr-evaluate

Conversation

@romer8

@romer8 romer8 commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator

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).
  • Refused before any download: another format, TEEHR schema or names; a missing, reserved or mismatched configuration_name; a malformed crosswalk or a gage with several series; missing files or columns; unknown metrics.
  • Image: teehr's Spark jars prefetched into /opt/ivy (writable, as Ivy needs; duplicates hardlinked: 4.5 GB -> 3.3 GB); nss_wrapper names any runtime uid for Hadoop; once the input is read the step's AWS_* settings are dropped (else NOAA's anonymous reads went to the cluster's S3) and IMDS is disabled; Spark UI off.
  • CI: image-plan.sh covers nextgen/, evaluation/ and fim/, refuses a tool name used twice, and matches release tags literally; images.yml builds from the matrix's dir.

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.

…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/.
@romer8
romer8 merged commit d4a2f99 into main Nov 21, 2026
@romer8
romer8 deleted the teehr-evaluate branch November 21, 2026 20:28
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