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 (VariableLike) – The scipp object to convert.
- Returns:
Variable
|DataArray
|Dataset
– The converted xarray object.
See also
scipp.compat.from_xarray