scipp.compat.xarray_compat.to_xarray#

scipp.compat.xarray_compat.to_xarray(obj)#

Convert a scipp object to the corresponding xarray object.

Warning

Any masks and variances in the input will be stripped during the conversion. Binned data is not supported.

Parameters

obj (Union[Variable, DataArray, Dataset, DataGroup]) – The scipp object to convert.

Returns

Union[Variable, DataArray, Dataset] – The converted xarray object.

See also

scipp.compat.from_xarray