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

Inconsistent chunks when loading cube into an xarray dataset #73

Open
dzelge opened this issue Oct 30, 2018 · 0 comments
Open

Inconsistent chunks when loading cube into an xarray dataset #73

dzelge opened this issue Oct 30, 2018 · 0 comments

Comments

@dzelge
Copy link
Contributor

dzelge commented Oct 30, 2018

I used https://jupyterhub.earthsystemdatalab.net to generate this example. This inconsistency
will prevent exporting teh xarray.Dataset to zarr.

c = esdl.Cube.open('datacube/esdc-31d-1deg-1x180x360-1.0.2_1//')
ds = c.data.dataset()
ds.chunks
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-36-3a43202e1c7b> in <module>()
----> 1 ds.chunks

/opt/conda/lib/python3.6/site-packages/xarray/core/dataset.py in chunks(self)
   1237                 for dim, c in zip(v.dims, v.chunks):
   1238                     if dim in chunks and c != chunks[dim]:
-> 1239                         raise ValueError('inconsistent chunks')
   1240                     chunks[dim] = c
   1241         return Frozen(SortedKeysDict(chunks))

ValueError: inconsistent chunks
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

1 participant