xarray.Variable.compute#
- Variable.compute(**kwargs)[source]#
Trigger loading data into memory and return a new variable.
Data will be computed and/or loaded from disk or a remote source.
The original variable 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.
- Parameters:
**kwargs (
dict) – Additional keyword arguments passed on todask.array.compute.- Returns:
object (
Variable) – New object with the data as an in-memory array.
See also
dask.array.compute,Variable.load,Variable.load_async,DataArray.compute,Dataset.compute