zcollection.variable.delayed_array.from_zarr_array#
- zcollection.variable.delayed_array.from_zarr_array(array, shape, chunks, name, *, lock=False, asarray=True, inline_array=True)[source]#
Convert a Zarr array to a Dask array with the specified shape and chunks.
- Parameters:
array (Array) – The Zarr array to convert.
shape (Sequence[int]) – The desired shape of the resulting Dask array.
chunks (Sequence[int]) – The desired chunk shape of the resulting Dask array.
name (str) – The name of the resulting Dask array.
lock (bool) – Whether to use a lock to protect the underlying data store.
asarray – Whether to return the resulting Dask array as an array.
inline_array – Whether to inline the resulting array data in the tasks.
- Returns:
A Dask array equivalent to the provided Zarr array.
- Return type: