xarray.DataArray.load#
- DataArray.load(**kwargs)[source]#
Trigger loading 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.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) – Additional keyword arguments passed on todask.compute.- Returns:
object (
DataArray) – Same object but with lazy data and coordinates as in-memory arrays.
See also
dask.compute,DataArray.load_async,DataArray.compute,Dataset.load,Variable.load