xarray.DataArray.load_async#
- async DataArray.load_async(**kwargs)[source]#
Trigger and await asynchronous loading of data into memory and return this dataarray.
Data will be computed and/or loaded from disk or a remote source.
Unlike
.compute, the original dataarray is modified and returned.Only works when opening data lazily from IO storage backends which support lazy asynchronous loading. Otherwise will raise a NotImplementedError.
Note users are expected to limit concurrency themselves - xarray does not internally limit concurrency in any way.
- Parameters:
**kwargs (
dict) – Additional keyword arguments passed on todask.compute.- Returns:
object (
Dataarray) – Same object but with lazy data and coordinates as in-memory arrays.