Configuration#
CalibrationConfig#
Pipeline-level configuration controlling mode, PWV fitting strategy, and feature flags.
Source: cal-core/src/config.rs
Field |
Type |
Default |
Description |
|---|---|---|---|
|
ObsMode |
Auto |
Observation mode (auto-detected if Auto) |
|
PwvSource |
FitGridRefine |
PWV retrieval strategy |
|
f64 |
1.0 |
Initial PWV guess for fitting (mm) |
|
f64 |
0.001 |
Minimum PWV in grid search (mm) |
|
f64 |
10.0 |
Maximum PWV in grid search (mm) |
|
usize |
100 |
Number of grid search points |
|
bool |
false |
Fit PWV independently per pixel |
|
f64 |
200.0 |
Bad channel T_rec threshold multiplier (K) |
|
f64 |
0.01 |
Minimum hot-cold count ratio |
|
f64 |
1.0 |
Forward scattering efficiency |
|
f64 |
1.0 |
Main beam efficiency |
|
f64 |
1.0 |
Elevation-dependent gain correction |
|
Option |
auto |
Rayon thread pool size |
|
PhysicsConstants |
KalibrateCompat |
Physics constants precision |
|
bool |
false |
Enable DBS adhesive beam coupling for OtfChopped mode |
|
u8 |
0 |
Gain drift correction level (0=off, 2=correct ON, 3=correct ON+OFF) |
|
u32 |
0 |
SKY-DIFF diagnostic depth (0=off, N=diff against N most recent OFFs) |
|
bool |
false |
SKYCHOPDIFF diagnostic: chop-phase diffs of the sky in chopped scans |
CalibrationParams#
Instrument-level calibration parameters that travel with every scan.
Groups per-instrument values with per-load thresholds and physics mode,
eliminating loose f64 parameters from pipeline function signatures.
Constructed via CalibrationParams::from_config(config, foeff, gain_image).
Source: cal-core/src/config.rs
Field |
Type |
Default |
Description |
|---|---|---|---|
|
f64 |
0.97 |
Forward efficiency (eta_fss) |
|
f64 |
0.5 |
Image sideband gain ratio (0.0–1.0); signal gain = 1 - gain_image |
|
f64 |
200.0 |
T_sys clipping threshold for bad channel detection (K) |
|
f64 |
0.01 |
Minimum hot-cold count ratio for bad channel detection |
|
PhysicsConstants |
KalibrateCompat |
Physical constants mode |
CalibrationLoad constructors (new, new_with_load_temps) accept
&CalibrationParams rather than separate foeff/gain_image/physics
arguments.
ObsMode#
Variant |
CLI value |
Description |
|---|---|---|
|
|
Auto-detect from data |
|
|
Position-switched ON/OFF |
|
|
On-the-fly scanning |
|
|
OTF with dual beam switch (OTFSWA/OTFSWB) |
|
– |
Stubbed: frequency-switched reference |
|
– |
Stubbed: standalone beam-switched reference |
PwvSource#
Variant |
Description |
|---|---|
|
Grid search (100 points) + Newton refinement (5 iterations) |
|
Levenberg-Marquardt least-squares (fallback) |
|
Fixed PWV value in mm (no fitting) |
PhysicsConstants#
Variant |
\(h/k_B\) |
Notes |
|---|---|---|
|
SI 2019, f64 |
Full precision |
|
0.047995 K/GHz, f32 truncation |
Default – legacy parity mode |