# xarray.DataTree.compute

#### DataTree.compute(\*\*kwargs)[[source]](https://github.com/pydata/xarray/blob/main/xarray/core/datatree.py#L2527-L2552)

Manually trigger loading and/or computation of this datatree’s data
from disk or a remote source into memory and return a new datatree.
Unlike load, the original datatree is left unaltered.

Normally, it should not be necessary to call this method in user code,
because all xarray functions should either work on deferred data or
load data automatically. However, this method can be necessary when
working with many file objects on disk.

* **Parameters:**
  **\*\*kwargs** ([`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)) – Additional keyword arguments passed on to `dask.compute`.
* **Returns:**
  **object** ([`DataTree`](xarray.DataTree.html.md#xarray.DataTree)) – New object with lazy data variables and coordinates as in-memory arrays.

#### SEE ALSO
[`dask.compute`](https://docs.dask.org/en/latest/api.html#dask.compute)
