Skip to content

Add example for multi-dimensional coordinate regridding using xESMF to documentation #3021

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

Closed
jaard opened this issue Jun 14, 2019 · 2 comments

Comments

@jaard
Copy link

jaard commented Jun 14, 2019

I was happy to discover recently that 1-D interpolation on dimension coordinates is now implemented in xarray. This functionality is well illustrated in the documentation (http://xarray.pydata.org/en/stable/interpolation.html).

Regridding of data on multi-dimensional coordinates, however, is still an open problem (see #486, #1822 and also xgcm/xgcm#68). There appears to be a way of performing this operation using xESMF instead, which is not included in either the xESMF or the xarray documentation. I haven't figured it out yet myself, but the comments on the issues above suggest to me that it's possible.

The kind of advanced regridding operation is a fairly common use-case, i.e. for interpolating ocean model data from sigma-levels to z-levels. Therefore, as long as this functionality is not handled by xarray directly, I think there should be an example of or a reference to a possible workaround using xESMF in the xarray documentation.

@max-sixty
Copy link
Collaborator

As part of keeping our issue count <1000, closing as unlikely to inspire change, please reopen if anyone disagrees

In this case, contributions welcome!

@max-sixty max-sixty closed this as not planned Won't fix, can't repro, duplicate, stale Aug 28, 2024
@keewis
Copy link
Collaborator

keewis commented Aug 28, 2024

I think the best place for this is either xesmf's documentation (since it directly consumes xarray objects) or https://cookbooks.projectpythia.org

Then we could link to those resources to make them easier to find.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants