Skip to content

Create new Rasdaman-ready coverage with source modes (original, diff, adjusted)#4

Merged
cstephen merged 4 commits into
mainfrom
add_diff
May 22, 2026
Merged

Create new Rasdaman-ready coverage with source modes (original, diff, adjusted)#4
cstephen merged 4 commits into
mainfrom
add_diff

Conversation

@Joshdpaul
Copy link
Copy Markdown
Contributor

@Joshdpaul Joshdpaul commented May 5, 2026

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.

Copy link
Copy Markdown
Contributor

@cstephen cstephen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I successfully generated the file, ingested it, and confirmed that it works when pointing my local API at it. I also gave the diff math a close look and it looks good & makes sense to me. ✔️

@cstephen cstephen merged commit 241c3b7 into main May 22, 2026
@cstephen cstephen deleted the add_diff branch May 22, 2026 00:30
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.

2 participants