# xarray.DataTree.equals

#### DataTree.equals(other)[[source]](https://github.com/pydata/xarray/blob/main/xarray/core/datatree.py#L1555-L1581)

Check whether two DataTrees are equal.

Two DataTrees are equal if they have isomorphic node structures, with
matching node names, and if they have matching variables and
coordinates, all of which are equal.

* **Parameters:**
  **other** ([`DataTree`](xarray.DataTree.html.md#xarray.DataTree)) – The other tree object to compare to.

#### SEE ALSO
[`Dataset.equals`](xarray.Dataset.equals.html.md#xarray.Dataset.equals), [`DataTree.isomorphic`](xarray.DataTree.isomorphic.html.md#xarray.DataTree.isomorphic), [`DataTree.identical`](xarray.DataTree.identical.html.md#xarray.DataTree.identical)
