-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Wrapping a kerchunk.Array
object directly with xarray
#8699
Comments
One issue that came up around not being able to avoid creating indexes for 1D coordinates (@benbovy): #8107 (comment) |
Another one is why does opening a dataset require indexing into it? If I add a xarray/xarray/core/variable.py Line 812 in c9ba2be
this happens: In [3]: xr.tutorial.open_dataset('air_temperature')
Out[3]: BasicIndexer((slice(None, 13, None),))
BasicIndexer((slice(-12, None, None),))
BasicIndexer((slice(None, 14, None),))
BasicIndexer((slice(-13, None, None),))
BasicIndexer((slice(None, 12, None),))
BasicIndexer((slice(-11, None, None),)) why is any of that indexing happening? EDIT: Oh it's happening when the EDIT2: False alarm about this one 😅 |
It's interesting to define a minimal |
Closing this as successfully implemented in the |
What is your issue?
In fsspec/kerchunk#377 the idea came up of using the xarray API to concatenate arrays which represent parts of a zarr store - i.e. using xarray to kerchunk a large set of netCDF files instead of using
kerchunk.combine.MultiZarrToZarr
.The idea is to make something like this work for kerchunking sets of netCDF files into zarr stores
I had a go at doing this in this notebook, and in doing so discovered a few potential issues with xarray's internals.
For this to work xarray has to:
kerchunk.Array
object which barely defines any array API methods, including basically not supporting indexing at all,xr.concat
,kerchunk.Array
.It's an interesting exercise in using xarray as an abstraction, with no access to real numerical values at all.
The text was updated successfully, but these errors were encountered: