-
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
Is it required to chunk selections? #40
Comments
Currently, selections are only possible with print(xarray.DataArray([16.91, ]).chunks)
So you should be able to do something like: import xarray as xr
import xoak
ds = xr.tutorial.open_dataset('rasm').isel(time=0)
ds.xoak.set_index(['yc', 'xc'], "scipy_kdtree")
print(ds.xoak.sel(yc=xr.DataArray([16.91, ]), xc=xr.DataArray([27.51, ])))
|
Do you think xoak should automatically do that internally to mimic xarray.Dataset.sel() behavior? |
Oh I guess duplicate of #37 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
AttributeError: 'float' object has no attribute 'chunks'
The text was updated successfully, but these errors were encountered: