# xarray.DataTree.subtree

#### *property* DataTree.subtree

Iterate over all nodes in this tree, including both self and all descendants.

Iterates breadth-first.

* **Yields:**
  **node** (`TreeNode`) – The nodes of the subtree, starting with this node.

#### SEE ALSO
[`DataTree.subtree_with_keys`](xarray.DataTree.subtree_with_keys.html.md#xarray.DataTree.subtree_with_keys), [`DataTree.descendants`](xarray.DataTree.descendants.html.md#xarray.DataTree.descendants), [`group_subtrees`](xarray.group_subtrees.html.md#xarray.group_subtrees)
