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] See also DataTree.subtree_with_keys