I'm having quite a problem when converting a zarr file to a dask array. This is what I get when I type arr = da.from_zarr('gros.zarr/time')
:
but when I try on one coordinates such as time it works:
Any Ideas how to solve this ?
CodePudding user response:
As noted in the comments by @Michael Delgado, if xarray
works, then that's probably the best option.
However, if for some reason you do want to open it with dask.array
, then you can specify the component of interest using component
kwarg:
from dask.array import from_zarr
x = from_zarr("gros.zarr", component="time")
For some reproducible examples, see this blog post.