-
Notifications
You must be signed in to change notification settings - Fork 4
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
sel based on non-dim coordinate #74
Comments
I've always used this approach: https://github.com/bradyrx/esmtools/blob/master/esmtools/spatial.py (see |
do you think it would make sense adding this to the accessors? couldnt |
I'll reopen this. I think it would be nice to have it as accessors. |
xarray will soon have this |
Ocean output is often on curvilinear grids. Therefore the lon, lat info is not stored in x,y. I often just want to have a look at a certain lon, lat box.
This is a long standing xr issue: pydata/xarray#2028 pydata/xarray#1603 a few idea how to accomplish this but apparently some performance issues. The implemention with
to_index()
doesnt suit us becauselon(x,y)
andlat(x,y)
.I also tried to implement this with
slice
but failed.Would you also need something like this @bradyrx ? Do you have any other ideas?
csel
could be a nice accessor forgrid
The text was updated successfully, but these errors were encountered: