Indexed Averager#
Summary#
Average signal and geometry using precomputed pixel bin indices.
Metadata#
Module ID: IndexedAverager
Module path: /home/runner/work/MoDaCor/MoDaCor/src/modacor/modules/technique_modules/scattering/indexed_averager.py
Module version: 20251130.1
Keywords: radial, azimuthal, averaging, binning, scattering
Required data keys#
signal
Q
Psi
pixel_index
Modifies#
signal: signal, uncertainties
Q: signal, uncertainties
Psi: signal, uncertainties
Required arguments#
with_processing_keys
averaging_direction
Default configuration#
{
"averaging_direction": "azimuthal",
"output_processing_key": null,
"stats_keys": null,
"uncertainty_weight_key": null,
"use_signal_uncertainty_weights": false,
"use_signal_weights": true,
"with_processing_keys": null
}
Argument specification#
Argument |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
str |
Yes |
azimuthal |
Averaging direction: ‘radial’ or ‘azimuthal’. |
|
str or NoneType |
No |
- |
Optional output key override (currently unused). |
|
list or str or NoneType |
No |
- |
BaseData keys to receive SEM/STD statistics (e.g. [‘signal’, ‘Q’]). If None, statistics are computed for all outputs. |
|
str or NoneType |
No |
- |
Uncertainty key to use as weights if enabled. |
|
bool |
No |
False |
Use signal uncertainty as weights. |
|
bool |
No |
True |
Use BaseData weights when averaging signal. |
|
str or list or NoneType |
Yes |
- |
ProcessingData key or list of keys to average. |
References#
DOI 10.1088/0953-8984/25/38/383201
Notes#
IndexedAverager expects a ‘pixel_index’ map from a previous IndexPixels step and performs per-bin weighted means of signal, Q and Psi, including uncertainty propagation.