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

Feature request: Unidirectional Resampling #24

Open
agheysari opened this issue Aug 12, 2022 · 1 comment
Open

Feature request: Unidirectional Resampling #24

agheysari opened this issue Aug 12, 2022 · 1 comment

Comments

@agheysari
Copy link

Adding the unidirectional resampling (lat or lon) option would make ds.resample_grid() more versatile.
An example case for such option would be working on a global dataset with regular lat/lon that is cropped around the arctic circle. The density of meridians close to the poles usually causes very long cells in N-S direction, which could be fixed by ds.resample_grid() if it supports resampling the longitudes.

@robertjwilson
Copy link
Member

robertjwilson commented Aug 12, 2022

Hi @afgheysari

This sounds like a useful enhancement for polar applications. I cannot see a quick way to add it in, but I will think about it.

The underlying CDO method used by resample_grid does not allow unidirectionarl resampling. So I would need to find an alternative.

Potentially, the to_latlon method could be made more flexible, so that it lets users easily change the resolution of a latlon grid file. This might do what you are suggesting, though only for latlon grids.

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

No branches or pull requests

2 participants