xdas.asdataarray#
- xdas.asdataarray(obj, tolerance=None)[source]#
Try to convert given object to a dataarray.
Only supports DataArray or xr.DataArray as input.
- Parameters:
- Returns:
The object converted to a DataArray. Data is not copied.
- Return type:
- Raises:
ValueError – If the object cannot be converted to a DataArray.