scippneutron.convert#
- scippneutron.convert(data, origin, target, scatter)[source]#
Perform a unit conversion from the given origin unit to target. See the documentation page on “Coordinate Transformations” (https://scipp.github.io/scippneutron/user-guide/coordinate-transformations.html) for more details.
- Parameters:
- Returns:
DataArray|Dataset– A new scipp.DataArray or scipp.Dataset with the new coordinate.- Seealso:
scippneutron.deduce_conversion_graph()andscippneutron.conversion_graph()to inspect the possible conversions.
Deprecated since version 26.8.0: Use
scipp.DataArray.transform_coords()orscipp.Dataset.transform_coords()with a graph fromscippneutron.conversion.graphinstead.