zcollection.dataset.Dataset.to_dict#

Dataset.to_dict(variables=None, **kwargs)[source]#

Convert the dataset to a dictionary, between the variable names and their data.

Parameters:
  • variables (Sequence[str] | None) – Variables to include (default to all dataset’s variables).

  • **kwargs – Additional parameters are passed through the function dask.compute().

Returns:

Dictionary of variables.

Return type:

dict[str, NDArray | NDMaskedArray]