Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

A matched filter in milliseconds: how the modeling cycle finds where it is wrong

GeoStack · background · the modeling cycle · example 1 of 3 · L1B → L2

Abstract

The first of three worked examples of the modeling cycle. The job is the one every methane pipeline starts with: turn a cube of radiances into a map of how much extra gas each pixel holds. This page writes the job as a ladder of models. The forward model says what the sensor sees. Optimal estimation inverts it pixel by pixel, slowly, and serves as the referee. The matched filter replaces the forward model by its tangent and solves in closed form. Comparing the two exposes three systematic misfits, and each is derived here from the assumption that causes it, together with the change to the model that removes it.

Keywords:matched filteroptimal estimationmethane retrievalmodeling cycleradtrax

The operators

1 · Forward model

radtrax computes what the sensor would see: the optical depth of each layer, the radiance that reaches the sensor through all of them, and the value in each band. Nothing is fitted.

τl(λ)=σabs(λ;pl,Tl)VMRlACl\tau_l(\lambda) = \rCon{\sigma_\text{abs}}(\lambda; \rExt{p_l}, \rExt{T_l}) \rExt{\mathrm{VMR}_l} \rExt{\mathrm{AC}_l}
L(λ)=cos⁡SZAπρexp⁡(−m∑lτl(λ))L(\lambda) = \frac{\cos \mathrm{SZA}}{\pi} \rIn{\rho} \exp\left(-\rCon{m} \sum_l \tau_l(\lambda)\right)
yb=∑gSRFbgL(λg)\rOut{y_b} = \sum_g \rCon{\mathrm{SRF}_{bg}} L(\lambda_g)
RoleSymbolNameShapeUnitNote
Inputα\rIn{\alpha}methane enhancement()ppm·madded below the plume height
Inputρ\rIn{\rho}surface albedo()—
External inputpl\rExt{p_l}layer pressure(layer,)Pathe background atmosphere
Tl\rExt{T_l}layer temperature(layer,)K
VMRl\rExt{\mathrm{VMR}_l}mixing ratio(layer,)mol mol⁻¹
ACl\rExt{\mathrm{AC}_l}air column of layer ll(layer,)mol m⁻²
Constantσabs\rCon{\sigma_\text{abs}}absorption cross-section(wavelength,)cm² molecule⁻¹
SRFbg\rCon{\mathrm{SRF}_{bg}}band response(band, wavelength)—
m\rCon{m}air mass()—
cos⁡SZA\rCon{\cos \mathrm{SZA}}, cos⁡VZA\rCon{\cos \mathrm{VZA}}cosines of the solar and viewing zenith angles()—
E0\rCon{E_0}solar irradiance(wavelength,)µW cm⁻² nm⁻¹
LLradiance at the top of the atmosphere, an intermediate(wavelength,)[L]eq. 2
Parameternone—nothing is fitted
Outputy\rOut{\vect{y}}band radiances(band,)[L]eq. 3

2 · Optimal estimation

Invert the forward model pixel by pixel, with Gauss–Newton on the full model. It is slow, and it is the referee that the fast method is checked against; the second equation is its posterior covariance.

x^n=argminx12∥yn−h(x)∥Σε−12+12∥x−μx∥Σx−12\rOut{\hat{\vect{x}}_n} = \mathrm{argmin}_{\vect{x}} \frac{1}{2} \Vert \rIn{\vect{y}_n} - \rCon{h}(\vect{x}) \Vert^2_{\rCon{\gmat{\Sigma}_\varepsilon}^{-1}} + \frac{1}{2} \Vert \vect{x} - \rPar{\gvect{\mu}_x} \Vert^2_{\rPar{\gmat{\Sigma}_x}^{-1}}
Σx∣y=(Jh⊤Σε−1Jh+Σx−1)−1\rOut{\gmat{\Sigma}_{x \mid y}} = \left(\mat{J}_h^\top \rCon{\gmat{\Sigma}_\varepsilon}^{-1} \mat{J}_h + \rPar{\gmat{\Sigma}_x}^{-1}\right)^{-1}
RoleSymbolNameShapeUnitNote
Inputyn\rIn{\vect{y}_n}pixel spectrum(band,)[L]one pixel
Constanth\rCon{h}forward model—
Jh\mat{J}_hJacobian of hh(band, 2)[L] per state unit
Σε\rCon{\gmat{\Sigma}_\varepsilon}noise covariance—
Parameterμx\rPar{\gvect{\mu}_x}prior mean(2,)prior on (α,ρ)(\alpha, \rho)
Σx\rPar{\gmat{\Sigma}_x}prior covariance(2, 2)
Outputx^n\rOut{\hat{\vect{x}}_n}estimate(2,)ppm·m, —eq. 1
Σx∣y\rOut{\gmat{\Sigma}_{x \mid y}}posterior covariance(2, 2)eq. 2

3 · Matched filter

Replace the model by its tangent, which is fast; this is the method under test. The target signature is the background spectrum times the unit absorption, and each pixel’s enhancement is its whitened projection onto that target.

t=μy⊙k\rEst{\vect{t}} = \rEst{\gvect{\mu}_y} \odot \rCon{\vect{k}}
α^n=t⊤Σy−1(yn−μy)t⊤Σy−1t\rOut{\hat{\alpha}_n} = \frac{\rEst{\vect{t}}^\top \rEst{\gmat{\Sigma}_y}^{-1} (\rIn{\vect{y}_n} - \rEst{\gvect{\mu}_y})}{\rEst{\vect{t}}^\top \rEst{\gmat{\Sigma}_y}^{-1} \rEst{\vect{t}}}
RoleSymbolNameShapeUnitNote
InputY\rIn{\mat{Y}}pixel spectra(row, col, band)[L]the whole scene, rows are the yn\vect{y}_n
Constantk\rCon{\vect{k}}unit absorption spectrum(band,)(ppm·m)⁻¹from the forward model
Estimatedμy\rEst{\gvect{\mu}_y}background mean spectrum(band,)[L]from the scene itself
Σy\rEst{\gmat{\Sigma}_y}background covariance(band, band)[L]²from the scene itself
Outputα^\rOut{\hat{\gvect{\alpha}}}enhancement map(row, col)ppm·meq. 2

The running example

Notation

nn indexes the NN pixels of a scene, bb the BB bands, ll the atmospheric layers and gg the wavelengths of the fine spectral grid. [L] is the radiance unit. The counts are the sizes of the index sets, N≡NΩyN \equiv N_{\Omega_y} and B≡NSyB \equiv N_{\mathcal{S}_y}.

SymbolRoleShapeUnit
yn\vect{y}_nobservation · radiance of pixel nnRB\mathbb{R}^{B} (band,)[L]
αn\alpha_nstate · column enhancement of pixel nnR\mathbb{R} ()ppm·m
ρn\rho_nstate · surface albedo, a nuisanceR\mathbb{R} ()—
xn\vect{x}_nstate · (αn,ρn)(\alpha_n, \rho_n)R2\mathbb{R}^{2} (2,)ppm·m, —
hhforward model, state to bandsR2→RB\mathbb{R}^2 \to \mathbb{R}^B[L]
k\vect{k}const · unit absorption, ∂ln⁡y/∂α\partial \ln \vect{y} / \partial \alpha at α=0\alpha = 0RB\mathbb{R}^{B} (band,)(ppm·m)⁻¹
μy,Σy\gvect{\mu}_y, \gmat{\Sigma}_yest · background mean and covarianceRB\mathbb{R}^B, RB×B\mathbb{R}^{B \times B}[L], [L]²
t\vect{t}est · target signature, μy⊙k\gvect{\mu}_y \odot \vect{k}RB\mathbb{R}^{B} (band,)[L] (ppm·m)⁻¹
α^n\hat{\alpha}_nout · the filter’s scoreR\mathbb{R} ()ppm·m
An(α)A_n(\alpha)est · sensitivity, score per unit of true enhancementR\mathbb{R} ()—
Σε\gmat{\Sigma}_\varepsilonconst · noise covariance of one spectrumRB×B\mathbb{R}^{B \times B}, diagonal[L]²
J\mathcal{J}out · the objective of optimal estimationR\mathbb{R} ()—
yn,free\vect{y}_{n,\text{free}}const · radiance of pixel nn without the plumeRB\mathbb{R}^{B} (band,)[L]

Model 1 · A model you can run forwards

Sunlight goes down through the atmosphere, reflects off the ground and comes back up to the sensor. On the way, each layer absorbs a little at the wavelengths where methane has lines; more methane means deeper lines. With no scattering, the radiance at the top of the atmosphere is Beer–Lambert along the two-way path:

L(λ)=cos⁡SZAE0(λ)πρexp⁡(−m∑lσabs(λ;pl,Tl)VMRlACl)L(\lambda) = \frac{\cos \mathrm{SZA} E_0(\lambda)}{\pi} \rho \exp\left(-m \sum_l \sigma_\text{abs}(\lambda; p_l, T_l) \mathrm{VMR}_l \mathrm{AC}_l\right)

where SZA\mathrm{SZA} and VZA\mathrm{VZA} are the solar and viewing zenith angles, m=1/cos⁡SZA+1/cos⁡VZAm = 1 / \cos \mathrm{SZA} + 1 / \cos \mathrm{VZA} the two-way air mass, E0E_0 the solar irradiance, σabs\sigma_\text{abs} the absorption cross-section, VMRl\mathrm{VMR}_l the mixing ratio and ACl\mathrm{AC}_l the air column of layer ll. The instrument averages the fine spectrum into bands, yb=∑gSRFbgL(λg)y_b = \sum_g \mathrm{SRF}_{bg} L(\lambda_g), with the band response SRF\mathrm{SRF}.

A plume adds a column α\alpha near the surface. Because the exponent is linear in the column, the radiance responds multiplicatively:

y(α)=y(0)⊙exp⁡(αk) and kb=∂ln⁡yb∂α∣α=0\vect{y}(\alpha) = \vect{y}(0) \odot \exp(\alpha \vect{k}) \text{ and } k_b = \left. \frac{\partial \ln y_b}{\partial \alpha} \right|_{\alpha = 0}

The second equality is exact for monochromatic bands and a good approximation for real ones; k\vect{k} is negative where methane absorbs. In radtrax, k\vect{k} is one automatic-differentiation call through the forward model, so it carries the instrument’s band responses and the scene’s geometry.

import radtrax
import radtrax.retrieval.matched_filter as mf

# Shapes: B = 285 bands; G fine wavelengths; N_layer layers
# Units: [L] = µW cm⁻² sr⁻¹ nm⁻¹; [α] = ppm·m

# today (radtrax)
# y = I(S(O(x))): opacity, Beer–Lambert solver, band instrument
model = radtrax.ForwardModel(opacity, radtrax.solvers.BeerLambert(), instrument)

# today (radtrax)
# k = ∂ ln y / ∂α at α = 0
unit_absorption = radtrax.unit_absorption_target(              # → (B,) [α]⁻¹
    model, atmosphere, surface, geometry
)

Model 2 · The referee: optimal estimation

The slow method inverts eq. (8) for each pixel. It is written once, probabilistically, before any approximation.

Under Assumption 1 the objective is a weighted least-squares problem. Gauss–Newton linearises hh at the current iterate x(j)\vect{x}^{(j)}, where jj counts the inner solver iterations, with Jacobian Jh(j)=∂h/∂x\mat{J}_h^{(j)} = \partial h / \partial \vect{x}, and solves the quadratic exactly:

x(j+1)=x(j)+(Jh(j)⊤Σε−1Jh(j)+Σx−1)−1[Jh(j)⊤Σε−1(yn−h(x(j)))−Σx−1(x(j)−μx)]\vect{x}^{(j+1)} = \vect{x}^{(j)} + \left(\mat{J}_h^{(j)\top} \gmat{\Sigma}_\varepsilon^{-1} \mat{J}_h^{(j)} + \gmat{\Sigma}_x^{-1}\right)^{-1} \left[\mat{J}_h^{(j)\top} \gmat{\Sigma}_\varepsilon^{-1} (\vect{y}_n - h(\vect{x}^{(j)})) - \gmat{\Sigma}_x^{-1} (\vect{x}^{(j)} - \gvect{\mu}_x)\right]

At convergence the curvature gives the Laplace posterior covariance Σx∣y\gmat{\Sigma}_{x \mid y} of card 2, and the averaging kernel Jx^=Σx∣yJh⊤Σε−1Jh∈R2×2\mat{J}_{\hat{x}} = \gmat{\Sigma}_{x \mid y} \mat{J}_h^\top \gmat{\Sigma}_\varepsilon^{-1} \mat{J}_h \in \mathbb{R}^{2 \times 2} says how much of each retrieved number came from the data rather than the prior: its trace is the degrees of freedom for signal.

import einx
import jax
import jax.numpy as jnp
import lineax as lx
import optimistix as optx

# Shapes: B bands; D = 2 states (α, ρ)

# user
# r(x) = Σ_ε^(-1/2) (y − h(x))
def whitened_residual(theta, spectrum):
    predicted = band_radiance(model, atmosphere, geometry, theta[0], theta[1])   # (B,)
    return (spectrum - predicted) / noise_std                                    # (B,)

# today (optimistix)
# x̂ = argmin ½ ‖r(x)‖²
solution = optx.least_squares(
    whitened_residual, optx.GaussNewton(rtol=1e-8, atol=1e-10), first_guess, args=spectrum
)
# J_r = ∂r/∂x at x̂
jacobian = jax.jacfwd(whitened_residual)(solution.value, spectrum)               # (B, D)
# Σ_x|y = (J_rᵀ J_r)⁻¹
precision = einx.dot("b i, b j -> i j", jacobian, jacobian)                      # (D, D)
posterior_cov = lx.linear_solve(lx.MatrixLinearOperator(precision), jnp.eye(2)).value

The packaged version, with priors, quality flags and the slab-model variant, is radtrax’s retrieval.var3d; the per-pixel optimal estimation with flags is radtrax#110.

Model 3 · The fast method: the matched filter

The matched filter makes three assumptions and gets a formula.

Under A1 to A3 the likelihood of pixel nn is Gaussian in αn\alpha_n, and maximising it is a weighted projection:

α^n=argminα(yn−μy−αt)⊤Σy−1(yn−μy−αt)=t⊤Σy−1(yn−μy)t⊤Σy−1t\hat{\alpha}_n = \mathrm{argmin}_{\alpha} (\vect{y}_n - \gvect{\mu}_y - \alpha \vect{t})^\top \gmat{\Sigma}_y^{-1} (\vect{y}_n - \gvect{\mu}_y - \alpha \vect{t}) = \frac{\vect{t}^\top \gmat{\Sigma}_y^{-1} (\vect{y}_n - \gvect{\mu}_y)}{\vect{t}^\top \gmat{\Sigma}_y^{-1} \vect{t}}

with variance σα^2=1/(t⊤Σy−1t)\sigma^2_{\hat\alpha} = 1 / (\vect{t}^\top \gmat{\Sigma}_y^{-1} \vect{t}). The direction w∈RB\vect{w} \in \mathbb{R}^{B}, w=Σy−1t\vect{w} = \gmat{\Sigma}_y^{-1} \vect{t} is computed once per scene and applied to every pixel, which is why the filter is fast: it is already amortized. It is also the flat-prior limit of the dual form of 3D-Var with the linear observation operator t\vect{t}, which is how the radtrax theory notes connect it to model 2.

import radtrax.retrieval.matched_filter as mf

# Shapes: row × col pixels; B bands
# Units: [L] = µW cm⁻² sr⁻¹ nm⁻¹; [α] = ppm·m

# today (radtrax)
# μ_y = mean_n y_n
mean = mf.estimate_mean(cube)                                    # (row, col, band) → (band,)
# today (radtrax)
# Σ_y: Ledoit–Wolf shrinkage of the sample covariance
covariance = mf.estimate_cov_shrunk(cube, mean)                  # (B, B) PSD operator
# t = μ_y ⊙ k
target = mean * unit_absorption                                  # (B,) [L][α]⁻¹
# today (radtrax)
# α̂_n = tᵀ Σ_y⁻¹ (y_n − μ_y) / (tᵀ Σ_y⁻¹ t)
score = mf.apply_image(cube, mean, covariance, target)           # (row, col) [α]
# today (radtrax)
# σ_α̂ = (tᵀ Σ_y⁻¹ t)^(−1/2)
score_std = mf.score_std(covariance, target)                     # () [α]

Compare: the filter against the referee

Run both on the same pixels and regress the filter’s enhancement on the referee’s. Agreement is a slope of 1 everywhere and an intercept of 0. Noise scatters the points about that line. A misfit with a pattern, a slope that depends on where you look, is systematic, and the modeling cycle says what to do with it: do not tune the filter, find the assumption that broke and change the model.

The outer loop on retrieval: each misfit names an assumption

Model 3 · Matched filterA1 linear · A2 one background · A3 Gaussian

offset −fαˉplume-f \bar{\alpha}_\text{plume} off the plumegain ρn/ρˉ\rho_n / \bar{\rho} on it

compare: an offset where there is no plumethe plume is inside its own background (A2)

Model 3a · Plume masked outbackground from plume-free pixels

offset 0gain ρn/ρˉ\rho_n / \bar{\rho}

compare: the slope follows the surface brightnessone target cannot fit every surface (A2)

Model 3b · Divided by the sensitivityeach pixel’s own response AnA_n

gain 1 on every surfacestrong pixels read low

compare: strong pixels read lowabsorption is not linear in the gas (A1)

Model 3c · With saturationsolve α^n=αnAn(αn)\hat{\alpha}_n = \alpha_n A_n(\alpha_n) by fixed point

slope 1 against the refereenoise unchanged

The outer loop on retrieval. Each rung is a model; each arrow is the systematic misfit that comparison with the referee exposed, and the assumption it traces to.

Three patterns appear, and each can be derived before it is seen.

Misfit 1 · The plume is inside its own background (A2)

The background is estimated from every pixel, plume included. If a fraction f=Nplume/N∈(0,1)f = N_\text{plume} / N \in (0, 1) of the pixels hold the plume with mean enhancement αˉplume\bar{\alpha}_\text{plume}, the estimated mean is pulled towards the plume:

μ^y≈μy+fαˉplumet\hat{\gvect{\mu}}_y \approx \gvect{\mu}_y + f \bar{\alpha}_\text{plume} \vect{t}

Inserting this into eq. (13) subtracts the same amount from every score:

E[α^n]≈αn−fαˉplume\mathbb{E}[\hat{\alpha}_n] \approx \alpha_n - f \bar{\alpha}_\text{plume}

The covariance is contaminated too, by a rank-one term along the target: Σ^y≈Σy+ctt⊤\hat{\gmat{\Sigma}}_y \approx \gmat{\Sigma}_y + c \vect{t} \vect{t}^\top with c=f(1−f)Vplume[α]∈R≥0c = f (1 - f) \mathbb{V}_\text{plume}[\alpha] \in \mathbb{R}_{\ge 0}. By the Sherman–Morrison identity, t⊤Σ^y−1=t⊤Σy−1/(1+cσα^−2)\vect{t}^\top \hat{\gmat{\Sigma}}_y^{-1} = \vect{t}^\top \gmat{\Sigma}_y^{-1} / (1 + c \sigma_{\hat\alpha}^{-2}) since σα^−2=t⊤Σy−1t\sigma_{\hat\alpha}^{-2} = \vect{t}^\top \gmat{\Sigma}_y^{-1} \vect{t}, so the factor cancels between numerator and denominator of eq. (13). The score keeps its mean; its reported noise σα^\sigma_{\hat\alpha} grows by 1+cσα^−2\sqrt{1 + c \sigma_{\hat\alpha}^{-2}}, and every detection looks less significant than it is.

Repair. Estimate the background from plume-free pixels. That needs the plume’s location, which needs the filter, so iterate: filter, mask what stands out (smoothed, at a robust threshold, dilated), re-estimate, repeat.

# user
# mask⁽ⁱ⁺¹⁾ = dilate(smooth(α̂⁽ⁱ⁾) > median + thr · 1.4826 MAD)
plume_mask = jnp.zeros((rows, cols), bool)                       # (row, col)
for _ in range(iterations):
    # today (radtrax)
    mean = mf.estimate_mean(cube[~plume_mask][:, None, :])       # (B,)
    # today (radtrax)
    covariance = mf.estimate_cov_shrunk(cube[~plume_mask][:, None, :], mean)
    # today (radtrax)
    score = mf.apply_image(cube, mean, covariance, mean * unit_absorption)   # (row, col)
    plume_mask = robust_mask(score)                              # user

Misfit 2 · One target cannot fit every surface (A2 again)

Methane removes a fixed fraction of the light, so it removes more radiance from a bright pixel than from a dark one. Write the plume-free radiance of pixel nn as yn,free\vect{y}_{n,\text{free}} and keep A1. Then yn−μy=(yn,free−μy)+αn(yn,free⊙k)\vect{y}_n - \gvect{\mu}_y = (\vect{y}_{n,\text{free}} - \gvect{\mu}_y) + \alpha_n (\vect{y}_{n,\text{free}} \odot \vect{k}), and eq. (13) gives

E[α^n]=Anαn and An=t⊤Σy−1(yn,free⊙k)t⊤Σy−1t\mathbb{E}[\hat{\alpha}_n] = A_n \alpha_n \text{ and } A_n = \frac{\vect{t}^\top \gmat{\Sigma}_y^{-1} (\vect{y}_{n,\text{free}} \odot \vect{k})}{\vect{t}^\top \gmat{\Sigma}_y^{-1} \vect{t}}

For a grey surface, yn,free=(ρn/ρˉ)μy\vect{y}_{n,\text{free}} = (\rho_n / \bar{\rho}) \gvect{\mu}_y and the sensitivity is simply An=ρn/ρˉA_n = \rho_n / \bar{\rho}: the filter over-reads bright ground and under-reads dark ground in proportion to the albedo. The comparison shows this as a slope that changes with the surface.

Repair. Divide by the sensitivity. radtrax computes AnA_n from the observed spectrum, which needs no albedo map.

# today (radtrax)
# A_n = tᵀ Σ_y⁻¹ (y_n ⊙ k) / (tᵀ Σ_y⁻¹ t)
gain = mf.score_sensitivity(cube, covariance, target, unit_absorption)      # (row, col)
# α̂_{n,corr} = α̂_n / A_n
enhancement = score / gain                                                  # (row, col) [α]

Dividing by AnA_n does not cost precision when the noise is proportional to the signal: a dark pixel’s score is smaller and quieter by the same factor, so its signal-to-noise ratio is unchanged.

Misfit 3 · Absorption saturates (A1)

The second unit of methane absorbs slightly less than the first, because the first already removed some of the light at the line centres. Keep the exact response of eq. (9) instead of its tangent. The sensitivity then depends on the enhancement itself:

An(α)=t⊤Σy−1(yn,free⊙(exp⁡(αk)−1))αt⊤Σy−1t≈An(0)(1+12αkˉ)A_n(\alpha) = \frac{\vect{t}^\top \gmat{\Sigma}_y^{-1} \left(\vect{y}_{n,\text{free}} \odot (\exp(\alpha \vect{k}) - \vect{1})\right)}{\alpha \vect{t}^\top \gmat{\Sigma}_y^{-1} \vect{t}} \approx A_n(0) \left(1 + \frac{1}{2} \alpha \bar{k}\right)

where the second form keeps the second-order term of exp⁡(αk)−1=αk+12α2k2+…\exp(\alpha k) - 1 = \alpha k + \frac{1}{2} \alpha^2 k^2 + \dots with kˉ\bar{k} a band-weighted mean. Since kˉ<0\bar{k} < 0, the gain falls as the plume strengthens: strong pixels read low, and the plume’s core and its mass are underestimated.

Enhancement α\alpha (ppm·m)αkˉ\alpha \bar{k}A(α)/A(0)A(\alpha) / A(0), exactfirst order, 1+12αkˉ1 + \frac{1}{2} \alpha \bar{k}
750−0.0150.99250.9925
1 500−0.0300.98510.9850
3 000−0.0600.97060.9700
6 000−0.1200.94230.9400

Repair. Since AnA_n now depends on the answer, solve α^n=αnAn(αn)\hat{\alpha}_n = \alpha_n A_n(\alpha_n) for αn\alpha_n by fixed-point iteration. It converges in a few steps because AnA_n changes slowly with α\alpha.

# user
# α⁰ = α̂ / A(0)
enhancement = score / mf.score_sensitivity(cube, covariance, target, unit_absorption)
for _ in range(4):
    # today (radtrax)
    # α^{j+1} = α̂ / A(α^j)
    gain = mf.score_sensitivity(
        cube, covariance, target, unit_absorption, enhancement=jnp.clip(enhancement, 0)
    )                                                                         # (row, col)
    enhancement = score / gain                                                # (row, col) [α]

Worked numbers

ModelWhat it assumesBias it leavesCost per scene
1 · Forward modelBeer–Lambert, no scattering—one evaluation per state
2 · Optimal estimationGaussian noise and priornone beyond the model’sa few full-model iterations per pixel
3 · Matched filterA1, A2, A3offset −fαˉplume-f \bar{\alpha}_\text{plume}; gain ρn/ρˉ\rho_n / \bar{\rho}; saturation 12αkˉ\frac{1}{2} \alpha \bar{k}one solve, one dot product per pixel
3a · plume maskedA1, A3, plume-free backgroundgain and saturationa few filter passes
3b · with sensitivityA1, A3saturationone more dot product per pixel
3c · with saturationA3none of the threethree or four more passes

The 439 kg is what example 2 starts from. If the saturation correction were skipped, the core pixels would read 1 to 6 % low and the mass about 1.5 % low; if the gain were skipped, the mass would be off by the plume-weighted mean of ρn/ρˉ\rho_n / \bar{\rho}, which can be tens of percent over mixed ground.

The six steps, for this problem

The modeling cycle found and fixed the errors. The six steps explain why there was a fast method to fix in the first place.

StepIn this exampleStatus
1 · Simple modelradtrax.ForwardModel: table opacity, Beer–Lambert, band instrumenttoday
2 · Model-based inferenceOptimal estimation per pixel; retrieval.var3d for fieldstoday* · radtrax#110
3 · EmulatorThe tangent-linear model y≈μy+αt\vect{y} \approx \gvect{\mu}_y + \alpha \vect{t}, with k\vect{k} by autodiff; a learned emulator is radtrax#259today · radtrax#259
4 · Emulator-based inferenceThe matched filter: the closed-form inversion of the tangent modeltoday
5 · Amortized inferenceAlready amortized for the linear model: one direction Σy−1t\gmat{\Sigma}_y^{-1} \vect{t} per scene—
6 · ImproveThis page’s three repairs (score_sensitivity); the EMIT gate against the operational product, radtrax#117today · radtrax#117

What example 2 receives

Handed onValueUsed in example 2 as
Enhancement map, saturation-corrected(row, col) in ppm·mthe observation of the plume fit
Its standard deviationσα^\sigma_{\hat\alpha}, per pixelthe observation error Σε\gmat{\Sigma}_\varepsilon
The plume’s mass439 kgthe integrated mass enhancement