xarray.DataTree.persist

xarray.DataTree.persist#

DataTree.persist(**kwargs)[source]#

Trigger computation, keeping data as chunked arrays.

This operation can be used to trigger computation on underlying dask arrays, similar to .compute() or .load(). However this operation keeps the data as dask arrays. This is particularly useful when using the dask.distributed scheduler and you want to load a large amount of data into distributed memory. Like compute (but unlike load), the original dataset is left unaltered.

Parameters

**kwargs (dict) – Additional keyword arguments passed on to dask.persist.

Returns

object (DataTree) – New object with all dask-backed coordinates and data variables as persisted dask arrays.

See also

dask.persist