xarray_beam.Dataset.from_zarr¶
- classmethod Dataset.from_zarr(path, *, chunks=None, split_vars=False, pipeline=None, label=None)[source]¶
Create an xarray_beam.Dataset from a Zarr store.
- Parameters:
path (str) – Zarr path to read from.
chunks (Mapping[str | EllipsisType, int | str] | int | str | None) – optional mapping from dimension names to chunk sizes, or any value that can be passed to
xarray_beam.normalize_chunks(). If not provided, the chunk sizes will be inferred from the Zarr file.split_vars (bool) – whether variables are split between separate elements in the ptransform, or all stored in the same element.
pipeline (Pipeline | None) – Beam pipeline to use for this dataset. If not provided, you will need apply a pipeline later to compute this dataset.
label (str | None) – A unique name for this stage of the pipeline. Defaults to
None, in which case a name will be generated.
- Returns:
New Dataset created from the Zarr store.
- Return type: