ess.bifrost.live.cut#

ess.bifrost.live.cut(data, *, axis_1, axis_2, arc_energy)[source]#

Cut data along two axes.

This function projects the input data expressed in \(Q\) and \(\Delta E\) onto a 2D surface defined by the cut axes. This integrates over the other dimensions while preserving the arc dimension if present. Then, the projected data is histogrammed according to the axis bins.

Parameters:
Returns:

CutData[TypeVar(RunType, ess.reduce.nexus.types.SampleRun (int), ess.reduce.nexus.types.VanadiumRun (int))]data projected and histogrammed along the cut axes. If the input has an arc dimension, it is preserved in the output. Otherwise, all dimensions are integrated.