Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamically detect non-time dims in regrid #531

Merged
merged 3 commits into from
Feb 10, 2022
Merged

Dynamically detect non-time dims in regrid #531

merged 3 commits into from
Feb 10, 2022

Conversation

brews
Copy link
Member

@brews brews commented Feb 10, 2022

Fixes failing distributed regrid regional writes to zarr store when input data has variable that is not "lat" or "lon" and does not depend on "time" dim.

The error appears because all data regionally written to the zarr needs to depend on "time". The solution is to dynamically figure out which variables do or do not depend on time. Previously, this depended on a static, user-provided list of variables to exclude.

close #494

Fixes failing distributed regrid regional writes to zarr store when input data has variable that is not "lat" or "lon" and does not depend on "time" dim. The error appears because all data regionally written to the zarr needs to depend on "time". The solution is to dynamically figure out which variables do or do not depend on time. Previously, this depended on a static, user-provided list of variables to exclude.

close #494
@brews brews requested a review from emileten February 10, 2022 22:55
@brews brews self-assigned this Feb 10, 2022
@brews
Copy link
Member Author

brews commented Feb 10, 2022

Potential alternative to ClimateImpactLab/dodola#177

@brews
Copy link
Member Author

brews commented Feb 10, 2022

A test run of this change, using the data from #494 is here: https://argo.cildc6.org/workflows/default/distributed-regrid-dev-27wlw

@emileten
Copy link
Contributor

Thanks for this alternative @brews, I will take a look in a bit !

Copy link
Contributor

@emileten emileten left a comment

Choose a reason for hiding this comment

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

Thanks Brewster, looks great. Also, I think your test ran successfully. I guess it was rerunning one of the steps that had failed ?

In which case once we merge this I can try again the full model rerun.

workflows/templates/distributed-regrid.yaml Show resolved Hide resolved
@brews brews merged commit 859a80b into master Feb 10, 2022
@brews brews deleted the fix_regrid_writes branch February 10, 2022 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GFDL-ESM4-pr.yaml historical fails biascorrected-preprocess regridding before downscaling
2 participants