xarray_beam.open_zarr

xarray_beam.open_zarr(store, **kwargs)[source]

Returns a lazily indexable xarray.Dataset and chunks from a Zarr store.

Only Zarr stores with the consistent chunking between non-indexed variables (i.e., those for which the Dataset.chunks property is valid) can be opened.

Parameters:
  • store (str | Store | StorePath | FSMap | Path | dict[str, Buffer] | PathLike[str]) – Xarray compatible Zarr store to open.

  • **kwargs (Any) – passed on to xarray.open_zarr. The “chunks” keyword argument is not supported.

Returns:

(dataset, chunks) pair, consisting of a Dataset with the contents of the Zarr store and a dict mapping from dimensions to integer chunk sizes.

Return type:

tuple[Dataset, dict[str, int]]