zcollection.dataset.Dataset.from_xarray#

static Dataset.from_xarray(zds, delayed=True)[source]#

Create a new dataset from a xarray dataset.

Parameters:
  • zds (Dataset) – Dataset to convert.

  • delayed (bool) – If True, the data will be wrapped in a dask array. If False, the data will be handled as a numpy array.

Returns:

New dataset.

Return type:

Dataset