xarray.Variable.load#

Variable.load(**kwargs)[source]#

Trigger loading data into memory and return this variable.

Data will be computed and/or loaded from disk or a remote source.

Unlike .compute, the original variable 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.

Parameters:

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

Returns:

object (Variable) – Same object but with lazy data as an in-memory array.