xarray.DataTree.to_dict (original) (raw)

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]