# xarray.DataTree.relative_to

#### DataTree.relative_to(other)[[source]](https://github.com/pydata/xarray/blob/main/xarray/core/treenode.py#L749-L768)

Compute the relative path from this node to node other.

If other is not in this tree, or it’s otherwise impossible, raise a ValueError.
