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

Handle other generic axis names #72

Closed
pochedls opened this issue Oct 23, 2019 · 2 comments
Closed

Handle other generic axis names #72

pochedls opened this issue Oct 23, 2019 · 2 comments

Comments

@pochedls
Copy link

Some CMIP files (mistakenly) use 'longitude' as an axis id (instead of lon). It would be useful to also handle "longitude" and "latitude" as axis ids.

regridder = xe.Regridder(trend_map, ds_out, 'bilinear', reuse_weights=True)

KeyError: 'lon'
During handling of the above exception, another exception occurred:
...

In the meantime, is there a workaround for this issue (other than renaming the input axes)?

@JiaweiZhuang
Copy link
Owner

JiaweiZhuang commented Oct 23, 2019

This coordinate naming issue is discussed in #38. A quick workaround by renaming coordinate is in #5

I was thinking about implementing a context manager to switch the name, detailed in #38 (comment) Comments & PRs are highly welcome.

@pochedls
Copy link
Author

@JiaweiZhuang - thank you for your fast response. Since this is a duplicate, I am closing this ticket. I'll take a closer look at the other issues and see if I am able to help with this. Thank you for putting this package together!

aulemahal added a commit to Ouranosinc/xESMF that referenced this issue May 18, 2021
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