xarray.DataTree.to_dataset# DataTree.to_dataset(inherit=True)[source]# Return the data in this node as a new xarray.Dataset object. Parameters: inherit (bool, optional) – If False, only include coordinates and indexes defined at the level of this DataTree node, excluding any inherited coordinates and indexes. See also DataTree.dataset