Home > Net >  How to use Dask.Array.From_Zarr to open a zarr file on Dask?
How to use Dask.Array.From_Zarr to open a zarr file on Dask?

Time:06-22

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') : enter image description here

but when I try on one coordinates such as time it works: enter image description here

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.

  • Related