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

sgrid use cases & API #220

Open
dcherian opened this issue Apr 23, 2021 · 3 comments
Open

sgrid use cases & API #220

dcherian opened this issue Apr 23, 2021 · 3 comments

Comments

@dcherian
Copy link
Contributor

Our homework was to write down use cases to come up with a useful API.

I would like to eventually see a xesmf.to_uniform_grid(dataset, method="conservative") that would work on staggered grid datasets. This requires automatic inference of corner points given a set of dimension names.

@malmans2
Copy link
Member

I'd like a method to subsample a dataset preserving the native grid.
I.e., after subsampling a dataset, the relative size/position of all axes does not change, and therefore all SGRID attributes are still valid.

Something like, .isel(X=slice(10, 20), Y=slice(10, 20), preserve_padding=True).

@malmans2
Copy link
Member

If preserve_padding=False, it would be nice to update the SGRID attributes accordingly.

@aulemahal
Copy link
Contributor

In addition to the first suggestion above, I think a way to infer missing "paddings" would be nice. Say if only padding: none is available, corner inference could include inference of the two outer elements to come up with padding: both.

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

3 participants