Conversation
… add source dimension to rasdaman prep and QC notebook
…urce integer encoding
cstephen
approved these changes
May 21, 2026
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.
This PR revises the preprocessing steps of the arctic hydrology dataset to add a new "source" dimension that captures the original GCM data, creates "diff" values using the ratio method, and computes the resulting "adjusted" values derived from applying the diff to the Cheng baseline. The resulting coverage has already been incorporated into the API (see ua-snap/data-api#720)
Changes:
The goal here is to end up with a coverage just like the CONUS hydrology, but in this case we do not have the "diff" files and have to calculate our own statistics (monthly and annual means) from streamflow. Review the preprocessing code, paying particular attention to the diff math and to the new "source" variable. Note how we leave the PGW models out of the adjusted completely. Ask Josh if you are curious about details, but suffice it to say that its not mathematically valid to adjust these values.
To test, run all the steps in the README (output to one of your own directories) to produce the netcdf for Rasdaman. Copy the output to Zeus, then head over to ua-snap/rasdaman-ingest#158 for the ingest recipe, and ingest a test coverage. Point the API at the coverage make sure everything works as expected.