ess.sans.i_of_q.bin_in_q#
- ess.sans.i_of_q.bin_in_q(data, q_bins, dims_to_keep)[source]#
Merges data from all pixels into a single I(Q) spectrum:
In the case of event data, events in all bins are concatenated
In the case of dense data, counts in all spectra are summed
- Parameters:
data (
CleanQ
[TypeVar
(ScatteringRunType
,ess.reduce.nexus.types.BackgroundRun
(int
),ess.reduce.nexus.types.SampleRun
(int
),ess.reduce.nexus.types.VanadiumRun
(int
)),TypeVar
(IofQPart
,types.Numerator
(scipp.DataArray
),types.Denominator
(scipp.DataArray
))]) – A DataArray containing the data that is to be converted to Q.q_bins (
types.QBins
(scipp.Variable
)) – The binning in Q to be used.dims_to_keep (
types.DimsToKeep
(collections.abc.Sequence
)) – Dimensions that should not be reduced and thus still be present in the final I(Q) result (this is typically the layer dimension).
- Returns:
CleanSummedQ
[TypeVar
(ScatteringRunType
,ess.reduce.nexus.types.BackgroundRun
(int
),ess.reduce.nexus.types.SampleRun
(int
),ess.reduce.nexus.types.VanadiumRun
(int
)),TypeVar
(IofQPart
,types.Numerator
(scipp.DataArray
),types.Denominator
(scipp.DataArray
))] – The input data converted to Q and then summed over all detector pixels.