The RTM is the observation operator . It connects Tiers II-IV to actual satellite measurements. It is independent of the transport tier, so it can be developed in parallel by a different person without coordination.
If you’re working with Level-2 XCH₄ products (e.g. TROPOMI official retrieval; [s5p_tropomi]), the entire RTM stack collapses to just the averaging-kernel operator, and this whole page becomes “use the published L2.” This page assumes Level-1 (radiance) work, where you build the retrieval yourself.
(1) Simple model: line-by-line via HAPI¶
HAPI (HITRAN Application Programming Interface) ([gordon2022hitran,kochanov2016hapi]) provides absorption cross-sections from the HITRAN database. All operational satellites for methane retrieval work in the SWIR, which means solar reflection, not thermal emission. The two-way path matters, and so does scattering, so a pure clear-sky Beer-Lambert model is biased by 10-30% on aerosol-loaded scenes.
Clear-sky two-way Beer-Lambert (SWIR scope)¶
: top-of-atmosphere solar irradiance.
: surface albedo (Lambertian for v1, BRDF for v2).
: solar zenith, viewing zenith, relative azimuth from L1 metadata.
: the two-way optical depth, as light goes down through the atmosphere, reflects and comes back up. The earlier form was one-way and silently biased at oblique geometries.
Thermal-IR addendum¶
For TIR work (legacy / portability), the surface term is emission, not solar reflection:
Different physics, different priors ( instead of , instead of ). We should not conflate the two surface models in code, so we split them per spectral regime.
Scattering: out-of-scope for v1, planned for v2¶
SWIR aerosol scattering is the leading systematic for methane retrievals over bright/aerosol-loaded scenes. v1 commits to clear-sky direct-beam with explicit AOD-based screening (reject pixels with ); v2 couples to LIDORT / DISORT / 6S for multiple-scattering Jacobians. Validation against operational L2 in Step 4 must stratify by AOD to expose the v1 limit.
Line shape and continuum¶
Voigt profile with explicit wing cutoffs (default: 25 cm⁻¹). HAPI is the source of truth, so we expose the cutoff as a config knob; too tight a cutoff underestimates absorption in the wings and too wide a cutoff adds noise.
CO₂-specific line mixing in the methane window. Required because CO₂ overlaps the 1.65 μm CH₄ band; ignoring line mixing biases retrievals by ~5 ppb.
MT_CKD H₂O continuum. Non-trivial in the methane band; load alongside HAPI cross-sections.
HAPI traceability¶
(2) Model-based inference¶
Joint state vector¶
Operational SWIR retrievals do not retrieve XCH₄ alone, so the state vector is joint:
: CH₄ vertical profile (typically 12-30 layers).
: H₂O profile is coupled (overlapping bands, continuum).
: spectrally-resolved albedo.
: aerosol optical depth (coarse-mode and fine-mode separately for high-fidelity work).
: DEM error proxy; small but matters for column accounting.
Prior ¶
Prior structure for the joint RTM state vector.
| Element | Form | Notes |
|---|---|---|
| climatological covariance + AR(1) in vertical | smoothness prior; covariance from CAMS reanalysis | |
| same structure | from ECMWF or in-situ profile climatology | |
| per-band Gaussian around L1 prior or MODIS climatology | ||
| non-negative, heavy-tail | ||
| tight Gaussian around DEM | sub-pixel terrain uncertainty |
Iterative Gauss-Newton¶
The closed-form formula in the prior version is the first update. The converged retrieval iterates ([rodgers2000]):
Convergence criterion ([rodgers2000] §5.7):
We cap at , and pixels that fail to converge get a quality flag.
Posterior covariance and information content¶
These are standard outputs of optimal estimation and they should appear on every retrieved pixel:
These matter for instrument-design questions (EMIT vs Tanager vs TROPOMI comparisons) and for the cross-tier UQ pipeline that Tier IV assembles. They are currently absent from the doc, and they must appear in the retrieved-product schema.
Quality flags¶
Each retrieval emits a flag bitmask:
excessive (poor fit)
non-convergence ( reached)
cloud / cirrus
sun-glint over water
AOD > screening threshold
snow / ice
DEM error excessive
(3) Model emulator: two levels¶
Level A: factorised LUT RTM¶
A dense LUT over has cells, which is untrainable. In operational practice we factorise.
We decompose the radiance into multiplicative / additive components on lower-dimensional sub-LUTs:
Sub-LUT sizes are tractable (~106 cells each), and we combine them analytically at runtime. This is the only viable path for high-dimensional SWIR retrieval, as LUTs don’t fit without factorisation.
Pros: bit-exact reproducibility, conservative.
Cons: factorisation introduces approximation error at sub-LUT interaction boundaries; needs Step-4-style validation.
Level B: Neural RTM¶
MLP / Fourier-feature network mapping . Train on factorised LUT or directly on HAPI outputs.
Architecture choice. SIREN is mentioned in earlier drafts but is justified for spatial signals; spectra are smooth in with sharp absorption features, which favours a Fourier-feature MLP or a per-band wavelet basis. SIREN works but isn’t the obvious pick, so we should benchmark before committing.
Per-scene-class heads. Land vs. water vs. sun-glint vs. ice have different spectral signatures and different aerosol regimes. Either one network per scene class (dispatched by L1 scene flag) or scene class as a categorical input; we should not train a single net across all scenes.
Spectral resolution. TROPOMI ~1000 channels in the methane window; EMIT ~285. Per-instrument heads at native resolution; don’t pre-convolve to a common grid.
Pros: smooth, differentiable everywhere, compact (~MB vs ~GB for an LUT).
Cons: training is non-trivial, needs validation against HAPI on out-of-distribution states.
Reference implementations: JPL FastMDA, ESA’s neural SCIAMACHY RTM ([sciamachy]).
Neural-Jacobian calibration is mandatory¶
Backprop through a trained neural RTM gives some gradient, and whether it matches HAPI’s is an empirical question on which the entire Step-4 retrieval depends.
(4) Emulator-based inference¶
Replace HAPI with the neural RTM in the optimal-estimation loop. The entire retrieval becomes differentiable end-to-end:
The Gauss-Newton iteration stays the same, but it runs ~1000× faster per step and the gradients are trivially available.
Forward validation: posterior from neural-RTM retrieval ≈ posterior from HAPI retrieval on the same observations.
Adjoint validation: neural-RTM Jacobian ≈ HAPI Jacobian (Step-3 calibration test). If this fails, the inversion is biased even when forward predictions look fine.
(5) Amortized inference (predictor)¶
Output the joint posterior¶
Collapsing to throws away information Tier IV wants, and the joint is the right output. We collapse to XCH₄ on the consumer side, not in the predictor.
Per-instrument heads¶
Different spectral resolutions (TROPOMI ~1000 ch [s5p_tropomi], EMIT ~285 ch [emit], GHGSat hyperspectral [ghgsat], Tanager hyperspectral [carbon_mapper]) call for per-instrument predictor heads dispatched by instrument_id, the same pattern as Tiers II/III.
Context conditioning¶
from the met field and from L1 metadata. We wire these in via FiLM / hypernet primitives in pyrox.nn, the same pattern as Tiers I/II/III.
Posterior over the spatial profile¶
Conditional flow over the vertical profile (1D, so gauss_flows handles this natively with no 2D extension needed) for and joint Gaussian for is the simplest split. Validate via SBC against HAPI-based optimal-estimation posteriors on synthetic data, stratified by SNR / SZA / AOD.
Uncertainty calibration¶
SBC is necessary but not sufficient, as the specific requirement is that the predictor’s standard deviation matches the empirical RMSE on a held-out set, stratified by SNR / SZA / AOD. Without stratification, calibration on the easy regime hides miscalibration on the hard regime.
(6) Improve¶
Multi-window retrieval. Joint CH₄ + CO + H₂O across multiple SWIR bands tightens the posterior and resolves degeneracies.
Multiple scattering. Couple to LIDORT / DISORT / 6S for scenes (the v1 screening threshold).
Surface BRDF. Cox-Munk for sun-glint over water; RPV / Ross-Li for vegetated surfaces; per-band Lambertian for snow. Replace the single-Lambertian assumption with a BRDF registry.
Heteroscedastic retrieval uncertainty. Output retrieval-error covariance per observation, not a fixed .
Polarisation. For polarisation-capable instruments (Sentinel-3 SLSTR [sentinel3], future missions), add Stokes-vector RTM. It is out of scope for
plumaxv1 (a deferred-decision note).Hierarchical Matérn length-scale on profile prior. Promote the AR(1) decorrelation length to a hyperparameter, the same pattern as Tiers II/III.
Module layout¶
RTM stack module layout: step, concern, target module, status.
The RTM stack moved to radtrax in plumax#133. The links below point at radtrax, and the planned plumax.radtran.* modules are radtrax’s to build.
| Step | Concern | Module | Status |
|---|---|---|---|
| 1 | HAPI Beer-Lambert (clear-sky, two-way) | hapi_lut/beers.py | ✓, two-way path consistency test tracked in #99 |
| 1 | LUT generator | hapi_lut/generator.py | ✓ |
| 1 | LUT config | hapi_lut/config.py | ✓ |
| 1 | Multi-gas LUT | hapi_lut/multi.py | ✓ |
| 1 | Factorised LUT (gas × surf × scatt) | plumax.hapi_lut.factorised | ☐ #99 |
| 1 | Forward RTM | radtran/forward.py | 🚧 |
| 1 | Spectral response (SRF) | radtran/srf.py | ✓ |
| 1 | Instrument model | radtran/instrument.py | ✓ |
| 1 | Background atmosphere | matched_filter/background.py | ✓ |
| 1 | Target gas spec | matched_filter/target.py | ✓ |
| 1 | Surface model: SWIR (albedo / BRDF) | plumax.radtran.surface_swir | ☐ #98 |
| 1 | Surface model: TIR (emissivity) | plumax.radtran.surface_tir | ☐ #98 |
| 1 | Aerosol / scattering coupling (v2) | plumax.radtran.scattering | ☐ |
| - | Matched filter (detection) | matched_filter/ | ✓ |
| - | gaussx-based linear solve | matched_filter/core.py | ✓ |
| 2 | Optimal-estimation iterative loop | plumax.radtran.retrieval (matched_filter/core.py stays the one-shot linear matched-filter path) | ☐ #96 |
| 2 | Quality flags + screening | plumax.radtran.quality | ☐ #97 |
| 2 | Information-content diagnostics | plumax.radtran.diagnostics | ☐ #97 |
| 2 | Posterior export → Tier IV | OEResult consumed by the coupled inversion | ☐ #102 |
| 3 | Neural RTM (per scene class) | plumax.radtran.neural_rtm | ☐ #100 |
| 3 | Neural-Jacobian calibration harness | plumax.radtran.neural_jacobian_test | ☐ #100 |
| 5 | Direct retrieval predictor (per instrument) | plumax.radtran.predictor | ☐ |
Validation strategy¶
HAPI Beer-Lambert: unit optical depth. For a known column and a known cross-section, must match the analytical product .
Two-way path consistency. At nadir (), ; at oblique geometries, the airmass factor must match . This catches one-way / two-way bugs.
LUT vs. HAPI, in-distribution. Interpolation error on the radiance for any state inside the LUT bounding box.
LUT vs. HAPI, OOD. Random states outside the box should fail loudly via boundary checks, not silently extrapolate.
Neural RTM forward. Held-out set spans all training-distribution corners; report worst-case relative error per channel, stratified by scene class.
Neural-RTM Jacobian. Calibration vs. HAPI Jacobian, operator-norm error. This is a hard test, and failure means the Step 4 retrieval is biased.
Optimal estimation against synthetic truth. Generate radiances for a known profile via HAPI, retrieve, compare retrieved profile to truth. Should sit inside the reported posterior covariance with ~68% frequency over many trials.
Information-content recovery. Generate synthetic radiances at varying SNR / SZA, report retrieved DOFs vs. theoretical maximum from instrument SRF. This catches retrieval-side regressions invisible to mean-error tests.
Real-data benchmark. Compare HAPI-based retrieval to TROPOMI / EMIT / GHGSat official L2 product on overlap pixels ([s5p_tropomi,emit,ghgsat]). Median bias < 5 ppb, RMSE within instrument noise floor. Stratify by AOD to expose the v1 clear-sky-only limit. Without this the retrieval is a synthetic exercise.
Predictor calibration. SBC stratified by SNR / SZA / AOD; standard-deviation calibration vs. empirical RMSE on held-out set.