ess.sans.i_of_q.bin_in_qxy#
- ess.sans.i_of_q.bin_in_qxy(data, qx_bins, qy_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 (
CleanQxy
[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.qx_bins (
types.QxBins
(scipp.Variable
)) – The binning in Qx to be used.qy_bins (
types.QyBins
(scipp.Variable
)) – The binning in Qy 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:
CleanSummedQxy
[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 Qx and Qy and then summed over all detector pixels.