Index Pixels#
Summary#
Compute per-pixel bin indices (radial or azimuthal) for later 1D averaging.
Metadata#
Module ID: IndexPixels
Module path: /home/runner/work/MoDaCor/MoDaCor/src/modacor/modules/technique_modules/scattering/index_pixels.py
Module version: 20251130.1
Keywords: radial, azimuthal, pixel indexing, binning, scattering
Required data keys#
signal
Q
Psi
Modifies#
None
Required arguments#
with_processing_keys
averaging_direction
Default configuration#
{
"averaging_direction": "radial",
"bin_type": "log",
"n_bins": 100,
"psi_limits_unit": null,
"psi_max": null,
"psi_min": null,
"q_limits_unit": null,
"q_max": null,
"q_min": null,
"with_processing_keys": null
}
Argument specification#
Argument |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
str |
Yes |
radial |
Averaging direction: ‘radial’ or ‘azimuthal’. |
|
str |
No |
log |
Binning type: ‘linear’ or ‘log’. |
|
int |
No |
100 |
Number of bins. |
|
str or NoneType |
No |
- |
Units for psi_min/psi_max if provided. |
|
float or int or NoneType |
No |
- |
Maximum Psi value for binning. |
|
float or int or NoneType |
No |
- |
Minimum Psi value for binning. |
|
str or NoneType |
No |
- |
Units for q_min/q_max if provided. |
|
float or int or NoneType |
No |
- |
Maximum Q value for binning. |
|
float or int or NoneType |
No |
- |
Minimum Q value for binning. |
|
str or list or NoneType |
Yes |
- |
ProcessingData key or list of keys to index. |
References#
DOI 10.1088/0953-8984/25/38/383201
Notes#
IndexPixels computes bin indices purely from geometry (Q, Psi) and user-defined limits; Mask is not used here so it can be applied per frame in downstream steps.