-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add destaggering functionality #93
Conversation
35f6fa6
to
a194f29
Compare
I think it would be nice to support destaggering multiple dimensions at once. Couldn't we just recursively call |
It would require a little bit of refactoring of the automatic staggered dim handling and a bit more internal complexity on the accessor methods, but if this is a use case we wanted to support, I could certainly make those changes! That being said, I don't believe I've seen this situation occur in practice. Do you have a sample dataset with such a variable with multiple staggered dimensions? |
You're right, I was originally thinking about maybe finding some variables staggered in |
…g private function for Variables
1d77ffc
to
025f827
Compare
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice work 👍 I have just a couple of small questions.
While this doesn't add direct tests with dask (deferring to #60 and a later release...perhaps v0.1?), with some some cursory exploration it looks like everything works out for #52 (comment). |
Co-authored-by: Lukas Pilz <mail@lukaspilz.de>
Co-authored-by: Lukas Pilz <mail@lukaspilz.de>
Co-authored-by: Anderson Banihirwe <axbanihirwe@gmail.com>
for more information, see https://pre-commit.ci
…ndling with destaggering
Thank you for the feedback @lpilz and @andersy005! I believe all the issues raised have been addressed. With an approving review from someone on @xarray-contrib/xwrf-devs, this should be good to merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work @jthielen !!
Awesome work 🚀 Thanks a lot! |
Change Summary
This is an updated version of #37 to handle de-staggering in all three dimensions and in a (hopefully, still needs to be tested) dask-friendly way.
Currently a draft PR to get eyes on my implementation right away; will be working on tests, documentation updates, and cleaning up the type hints later today.
Related issue number
Closes #35
Checklist