Unify input file formats to Zarr and generalize dataloaders - #271
Draft
grey-nearing wants to merge 4 commits into
Draft
Unify input file formats to Zarr and generalize dataloaders#271grey-nearing wants to merge 4 commits into
grey-nearing wants to merge 4 commits into
Conversation
ashermetzger-rgb
force-pushed
the
gsnearing-unify-input-file-formats
branch
from
September 1, 2026 09:21
416c301 to
71affc2
Compare
…and update logging
ashermetzger-rgb
force-pushed
the
gsnearing-unify-input-file-formats
branch
from
September 3, 2026 08:30
71affc2 to
e6160ef
Compare
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.
Summary of Changes
This PR standardizes input file storage and data loaders across the codebase onto the Zarr format, improves data loader flexibility, and provides seamless migration tooling:
attributes.zarr) and streamflow time series (streamflow.zarr) into consolidated, chunked Zarr stores.Multimetdataloader with robust path resolution—supporting single consolidated stores (timeseries.zarr), per-product subdirectories (<product>/timeseries.zarr), and case-insensitive store matching.basin.split('_')[0]), allowing arbitrary basin identifier naming conventions.scaler.zarr):scaler.zarr) while retaining backward-compatible fallback to existingscaler.ncfiles.googlehydrology.datautils.convert(convert_caravan_attributes,convert_caravan_timeseries,convert_caravan_to_zarr) for converting legacy NetCDF and CSV directories into consolidated Zarr stores.run convert-caravan.BaseTester.evaluate()to automatically write consolidated metadata for{period}_results.zarrat the completion of inference.sample_cmal_deterministicto acceptscalerand apply analytical quantile zero-bounding through_handle_negative_values.Verification & Testing
pytest test/).