ess.reflectometry.corrections.normalize_by_counts#

ess.reflectometry.corrections.normalize_by_counts(data_array)#

Normalize the bin-summed data by the total number of counts. If the data has variances, a check is performed to ensure that the counts in each bin is much lower than the total counts. If this is not the case, an error is raised because the normalization would introduce non-negligible correlations which are not handled Scipp’s basic error propagation. See Heybrock et al. (2023). If the check passes, the input data is simply divided by the total number of counts, ignoring the variances of the denominator.

Parameters

data_array (DataArray) – Data array to be normalized.

Returns

DataArray – Normalized data array.