ess.bifrost.cutting.group_by_rotation#

ess.bifrost.cutting.group_by_rotation(data, sample_angle, instrument_angle)[source]#

Group data by rotation angles.

Parameters:
  • data (DetectorData[TypeVar(RunType, ess.reduce.nexus.types.SampleRun (int), ess.reduce.nexus.types.VanadiumRun (int))]) – Detector events with time coordinates.

  • sample_angle (SampleAngle[TypeVar(RunType, ess.reduce.nexus.types.SampleRun (int), ess.reduce.nexus.types.VanadiumRun (int))]) – Sample rotation angle “a3”. May be time-dependent (1d array with dim “time”) or scalar.

  • instrument_angle (InstrumentAngle[TypeVar(RunType, ess.reduce.nexus.types.SampleRun (int), ess.reduce.nexus.types.VanadiumRun (int))]) – Instrument rotation angle “a4”. May be time-dependent (1d array with dim “time”) or scalar.

Returns:

DataGroupedByRotation[TypeVar(RunType, ess.reduce.nexus.types.SampleRun (int), ess.reduce.nexus.types.VanadiumRun (int))]data grouped by rotation angles “a3” and “a4”.