Docs: linear and log10 Q binning of azimuthal integration
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HVeDQsU5a8AJUdJPgWevAK
This commit is contained in:
1 parent
93d81d7aa9
commit
05daa46553
3 files changed
+7
-2
No files matched your search
@@ -490,6 +490,8 @@ states no limit at all, the reader holds the values to their integer type's rang
|
||||
|
||||
Azimuthal integration produces a radial profile $I(q)$ or $I(d)$ by histogramming pixels into radial bins. Pixels are **not split** across bins; each pixel contributes wholly to a single bin. By default the profile is purely radial (a single azimuthal bin), but the azimuth can optionally be split into up to 512 $\phi$ sectors (`azim_bins`, `--azim-phi-bins`), giving a **2D $q\times\phi$ profile** that exposes azimuthal anisotropy such as detector shadowing or sample texture.
|
||||
|
||||
The $q$ bins run from the low to the high $q$ limit and are laid out in one of two ways. **Linear** (the default) gives bins of equal width in $q$, set either by the spacing (`q_spacing`, `--azim-q-spacing`) or by the number of bins (`q_bins`, `--azim-q-bins`); with a spacing that does not divide the range the last bin is cut at the high limit. **Logarithmic** (`q_binning` = `log10`, `--azim-q-binning log10`) gives $B_q$ bins equally spaced in $\log_{10} q$, with edges $q_i = q_\mathrm{low}\,(q_\mathrm{high}/q_\mathrm{low})^{i/B_q}$, so a bin's width grows in proportion to its $q$ — dense sampling where the features of small-angle scattering are, coarse sampling at high $q$; it needs the number of bins. The $q$ reported for a bin (`bin_to_q`) is its centre on the binning scale: the arithmetic mean of its edges for linear bins, the geometric mean for logarithmic ones. The adaptive spot finder and the ice-ring score read their per-ring background off these same bins, so coarse logarithmic bins at high $q$ coarsen them as well.
|
||||
|
||||
### 2.1 Histogram estimator
|
||||
|
||||
Let bin index $b(x,y)$ be precomputed from $q(x,y)$ (or equivalently from $d(x,y)$) and, when $\phi$ sectors are enabled, the azimuth $\phi(x,y)$ — so $b = b_q + b_\phi B_q$. For each bin $b$:
|
||||
|
||||
+1
-1
@@ -506,7 +506,7 @@ In the master file these per-image groups are exposed through `/entry/reflection
|
||||
|
||||
| Dataset | Shape | Units | Meaning |
|
||||
|---------|-------|-------|---------|
|
||||
| `bin_to_q` | `[φ_bins, q_bins]` | Å⁻¹ | q value of each bin |
|
||||
| `bin_to_q` | `[φ_bins, q_bins]` | Å⁻¹ | q value of each bin (its centre: arithmetic mean of the edges for linear bins, geometric mean for log10 bins) |
|
||||
| `bin_to_two_theta` | `[φ_bins, q_bins]` | deg | 2θ of each bin |
|
||||
| `bin_to_phi` | `[φ_bins, q_bins]` | deg | azimuthal angle of each bin |
|
||||
| `image` | `[n_images, φ_bins, q_bins]` | | per-image integrated profile (NaN for empty bins) |
|
||||
|
||||
@@ -175,7 +175,10 @@ module grid. For an EIGER `hostname` lists two entries per module (one per half-
|
||||
`calibration_file` is either a directory of trim files or one trim file per half-module, with the energies
|
||||
they were trimmed at in `trim_energies_eV`; for a JUNGFRAU both are one entry per module, the
|
||||
calibration being the gain maps. The polarization factor of the azimuthal integration is a dataset
|
||||
setting (`/config/dataset`, `polarization_factor`), not part of `azim_int`.
|
||||
setting (`/config/dataset`, `polarization_factor`), not part of `azim_int`. The Q bins of `azim_int`
|
||||
are linear by default, set by `q_spacing` (0.01 Å⁻¹ when nothing is given) or by their number,
|
||||
`q_bins` - one or the other, not both. `"q_binning": "log10"` lays them out in equal steps of
|
||||
log10 Q instead (fine at low Q, coarse at high Q); it takes `q_bins` and refuses `q_spacing`.
|
||||
|
||||
## Following a collection
|
||||
|
||||
|
||||
Reference in new issue
Block a user