xarray.DataTree.to_dict (original) (raw)
- API reference
- xarray.DataTree.to_dict
DataTree.to_dict(relative=False)[source]#
Create a dictionary mapping of paths to the data contained in those nodes.
Parameters:
relative (bool) – If True, return relative instead of absolute paths.
Returns:
dict[str
, Dataset]