ess.bifrost.live.cut#
- ess.bifrost.live.cut(data, *, axis_1, axis_2)[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. Then, the projected data is histogrammed according to the axis bins.- Parameters:
data (
EnergyData
[TypeVar
(RunType
,ess.reduce.nexus.types.SampleRun
(int
),ess.reduce.nexus.types.VanadiumRun
(int
))]) – Input data with coordinates “sample_table_momentum_transfer” and “energy_transfer”.axis_1 (
ess.bifrost.live.CutAxis1
(ess.bifrost.live.CutAxis
)) – Defines the projection onto and binning in the first axis.axis_2 (
ess.bifrost.live.CutAxis2
(ess.bifrost.live.CutAxis
)) – Defines the projection onto and binning in the second axis.
- Returns:
CutData
[TypeVar
(RunType
,ess.reduce.nexus.types.SampleRun
(int
),ess.reduce.nexus.types.VanadiumRun
(int
))] –data
projected and histogrammed along the cut axes.