scipp.compat.from_xarray
scipp.compat.from_xarray#
- scipp.compat.from_xarray(obj)#
Convenience method to convert an xarray object into the corresponding scipp object.
If you know in advance what type of object you need to convert, you can also call
from_xarray_dataarray()
orfrom_xarray_dataset directly()
.