xarray_beam.Dataset.from_xarray

classmethod Dataset.from_xarray(source, chunks, *, split_vars=False, previous_chunks=None, pipeline=None, label=None)[source]

Create an xarray_beam.Dataset from an xarray.Dataset.

Parameters:
  • source (Dataset) – xarray.Dataset to read from.

  • chunks (Mapping[str | EllipsisType, int | str] | int | str) – optional mapping from dimension names to chunk sizes, or any value that can be passed to xarray_beam.normalize_chunks().

  • split_vars (bool) – whether variables are split between separate elements in the ptransform, or all stored in the same element.

  • previous_chunks (Mapping[str, int] | None) – chunks hint used for parsing string values in chunks with normalize_chunks().

  • 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.

Return type:

Dataset