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.

Tier I: the image-fitted plume

Forward model: the closed-form column of a steady Gaussian plume, with a width law and a meandering centreline fitted to the image.

This page fits a plume model directly to one column-enhancement image and reads off the emission rate. The data constrain the mass per metre of downwind travel, q=Q/Uq = Q / U, and the plume’s shape; the wind speed UU enters once, after the fit. The design was settled in #266 and the work is tracked in #265.


Why fit the image

Every image-based rate in plumax needs a wind before it starts. IMEEstimate and CrossSectionalFlux take a wind speed and a mask and report a fixed 50 % uncertainty. solve_coupled fits a 3-D Briggs plume with a fixed stability class, summed over height levels by the trapezoid rule.

An imaging spectrometer sees more than that. At 60 m pixels it resolves how fast the plume widens and where it bends, and the column it sees does not depend on the vertical spread at all. JPL’s SPIIRE (emit-sds/SPIIRE @ ae9a54d, Apache-2.0) fits exactly this model to EMIT and AVIRIS-3 scenes. This page brings the same model into plumax on top of the machinery Tier IV already has, so the fit gets the coupled solver’s whitened control, quality masks, Laplace posterior and per-event payload without new solver code.


Symbols

Table 1:Symbols of the image fit. The pages of Tier III and Tier V use qq for other quantities; on this page it is the line density only.

SymbolMeaningShape, units
sn\vect{s}_n, s0\vect{s}_0centre of pixel nn, source position, in a local metre frameR2\mathbb{R}^2, m
φ\varphiplume direction, counter-clockwise from east, pointing downwindrad
dnd_n, cnc_ndownwind and crosswind distance of pixel nn from the sourcem
QQ, UUemission rate, effective wind speedkg s⁻¹, m s⁻¹
q=Q/Uq = Q / Uline density: the mass per metre of downwind travelkg m⁻¹
w(d)w(d)crosswind standard deviation of the plume at distance ddm
w0w_0, wrefw_\text{ref}, drefd_\text{ref}, bbinitial width, width at the reference distance, reference distance, growth exponentm, m, m, –
m(d)m(d), m\vect{m}centreline offset at distance dd, and its values at the KK knots dk=kΔdd_k = k \Delta_dm, RK\mathbb{R}^K m
ΔΩn\Delta\Omega_nmodelled column-mass enhancement of pixel nnkg m⁻²
yny_n, σn\sigma_n, ωn\omega_nobserved enhancement, its noise standard deviation, its quality maskkg m⁻², kg m⁻², 0 or 1
AnA_nsensitivity of pixel nn: the score recovered per unit of true enhancement–
Ωbg\Omega_\text{bg}background column offsetkg m⁻²
θ\gvect{\theta}the stacked controlRDθ\mathbb{R}^{D_\theta}
μθ\gvect{\mu}_\theta, Σθ\gmat{\Sigma}_\thetaprior mean and covariance of the controlRDθ\mathbb{R}^{D_\theta}, Dθ×DθD_\theta \times D_\theta

The model

Plume frame

The plume frame is a rotation about the source, with unit vectors e∥=(cos⁡φ,sin⁡φ)\vect{e}_\parallel = (\cos\varphi, \sin\varphi) along the plume and e⊥=(−sin⁡φ,cos⁡φ)\vect{e}_\perp = (-\sin\varphi, \cos\varphi) across it:

dn=(sn−s0)⊤e∥d_n = (\vect{s}_n - \vect{s}_0)^\top \vect{e}_\parallel
cn=(sn−s0)⊤e⊥c_n = (\vect{s}_n - \vect{s}_0)^\top \vect{e}_\perp

Column of a reflected plume

The steady Gaussian plume with ground reflection has concentration

C(d,c,z)=Q2πUwσzexp⁡(−c22w2)[exp⁡(−(z−H)22σz2)+exp⁡(−(z+H)22σz2)]C(d, c, z) = \frac{Q}{2\pi U w \sigma_z} \exp\left(-\frac{c^2}{2 w^2}\right) \left[\exp\left(-\frac{(z - H)^2}{2\sigma_z^2}\right) + \exp\left(-\frac{(z + H)^2}{2\sigma_z^2}\right)\right]

with vertical spread σz\sigma_z and release height HH. The bracket is a normal density and its mirror image about the ground, so it integrates to 2πσz\sqrt{2\pi} \sigma_z over z≥0z \ge 0 for every HH and σz\sigma_z. The full column is therefore

ΔΩ(d,c)=∫0∞Cdz=q2πw(d)exp⁡(−(c−m(d))22w(d)2) for d>0\Delta\Omega(d, c) = \int_0^\infty C \mathrm{d}z = \frac{q}{\sqrt{2\pi} w(d)} \exp\left(-\frac{(c - m(d))^2}{2 w(d)^2}\right) \text{ for } d > 0

and zero for d≤0d \le 0, where the centreline offset m(d)m(d) shifts the ridge sideways. The column needs no stability class, no release height and no vertical grid.

Width law

The width grows as a power law above an initial width:

w(d)2=w02+wref2(ddref)2bw(d)^2 = w_0^2 + w_\text{ref}^2 \left(\frac{d}{d_\text{ref}}\right)^{2b}

With w0=0w_0 = 0 this is SPIIRE’s σy=a(d/1000)b\sigma_y = a (d / 1000)^b with a=wrefa = w_\text{ref}. The initial width removes the singularity at the source, and w0=g/12w_0 = g / \sqrt{12} stands in for the average over a pixel of side gg, whose variance is g2/12g^2 / 12. Point evaluation is still a sample, not an average: a Gaussian of width ww sampled every gg sums to 1/g1 / g only up to an aliasing error of about 2exp⁡(−2π2w2/g2)2 \exp(-2\pi^2 w^2 / g^2), which is 0.4 at w=g/12w = g / \sqrt{12} and below 10-8 once w≥gw \ge g. Near the source, where the plume is narrower than a pixel, the exact crosswind pixel average is the option to use.

Centreline

The centreline is linear between knots, starting at zero at the source. With m0=0m_0 = 0 at d0=0d_0 = 0 and k=⌊d/Δd⌋k = \lfloor d / \Delta_d \rfloor:

m(d)=mk+(mk+1−mk)d−dkΔd for 0≤d<dKm(d) = m_k + (m_{k+1} - m_k) \frac{d - d_k}{\Delta_d} \text{ for } 0 \le d < d_K

and m(d)=mKm(d) = m_K beyond the last knot. Shifting a Gaussian does not change its integral, so for every d>0d > 0 the crosswind integral of the column is the line density, whatever the width and the bends:

∫−∞∞ΔΩ(d,c)dc=q\int_{-\infty}^{\infty} \Delta\Omega(d, c) \mathrm{d}c = q

Observation

The matched filter recovers a share AnA_n of the true enhancement, so the model is multiplied by it before it meets the data:

yn=AnΔΩn(θ)+Ωbg+εny_n = A_n \Delta\Omega_n(\gvect{\theta}) + \Omega_\text{bg} + \varepsilon_n

with εn∼N(0,σn2)\varepsilon_n \sim \mathcal{N}(0, \sigma_n^2). The sensitivity and the noise come from radtrax’s matched filter (radtrax#311, radtrax#312) or from the product’s own rasters. They enter coupled.Instrument as its averaging kernel and retrieval variance, which are the slots that exist today.

Control

The control stacks the blocks the prior names:

θ=(log⁡q,log⁡wref,b,φ,s0,Ωbg,m)∈R7+K\gvect{\theta} = (\log q, \log w_\text{ref}, b, \varphi, \vect{s}_0, \Omega_\text{bg}, \vect{m}) \in \mathbb{R}^{7 + K}

Why the wind is not a control

QQ and UU enter the column only as q=Q/Uq = Q / U. Write the prediction in terms of (log⁡Q,log⁡U)(\log Q, \log U): the two columns of the Jacobian are +qr+q \vect{r} and −qr-q \vect{r}, with r\vect{r} the response per unit line density. The Fisher information of the pair is

FQU=q2r⊤Σε−1r(1−1−11)\mat{F}_{QU} = q^2 \vect{r}^\top \gmat{\Sigma}_\varepsilon^{-1} \vect{r} \begin{pmatrix} 1 & -1 \\ -1 & 1 \end{pmatrix}

which has rank one: only log⁡Q−log⁡U=log⁡q\log Q - \log U = \log q is constrained, and with both blocks present their split is the prior’s alone. The column plume therefore declares a log_line_density block and no wind block. The wind is applied after the solve, independent of the fit, as a lognormal speed of mean UU and standard deviation sUs_U:

σU2=log⁡(1+sU2/U2)\sigma_U^2 = \log(1 + s_U^2 / U^2)
μU=log⁡U−σU2/2\mu_U = \log U - \sigma_U^2 / 2
log⁡Q∼N(μq+μU,σq2+σU2)\log Q \sim \mathcal{N}(\mu_q + \mu_U, \sigma_q^2 + \sigma_U^2)

where μq\mu_q and σq2\sigma_q^2 are the Laplace mean and variance of log⁡q\log q. For σq=0.15\sigma_q = 0.15 and a wind of 3.5 ± 1.0 m s⁻¹, σU=0.28\sigma_U = 0.28 and the standard deviation of log⁡Q\log Q is 0.32, so the wind carries about three quarters of the variance. A catalogue event that stores qq needs no wind rescaling at all (#111).


Inference

Cost and posterior

The cost is the one solve_coupled minimises today:

J(θ)=12∥θ−μθ∥Σθ−12+12∑nωn(yn−AnΔΩn(θ)−Ωbg)2σn2\mathcal{J}(\gvect{\theta}) = \frac{1}{2} \Vert \gvect{\theta} - \gvect{\mu}_\theta \Vert^2_{\gmat{\Sigma}_\theta^{-1}} + \frac{1}{2} \sum_n \omega_n \frac{(y_n - A_n \Delta\Omega_n(\gvect{\theta}) - \Omega_\text{bg})^2}{\sigma_n^2}

It is minimised by L-BFGS in the whitened control θ=μθ+Lχ\gvect{\theta} = \gvect{\mu}_\theta + \mat{L} \gvect{\chi}, with Σθ=LL⊤\gmat{\Sigma}_\theta = \mat{L} \mat{L}^\top, so every block has unit prior scale whatever its units. With Jh\mat{J}_h the Jacobian of the predictions and Σε=diag(σn2/ωn)\gmat{\Sigma}_\varepsilon = \op{diag}(\sigma_n^2 / \omega_n), the Fisher information and the Laplace posterior are

F=Jh⊤Σε−1Jh\mat{F} = \mat{J}_h^\top \gmat{\Sigma}_\varepsilon^{-1} \mat{J}_h
Σθ∣y=(Σθ−1+F)−1\gmat{\Sigma}_{\theta \mid y} = (\gmat{\Sigma}_\theta^{-1} + \mat{F})^{-1}

What the data determined

The prior-free bound on one parameter aa, with all others also unknown, is the inverse of a Schur complement of F\mat{F}, which is what SPIIRE reports:

V[a]≥[F−1]aa\mathbb{V}[a] \ge [\mat{F}^{-1}]_{aa}

The share of each parameter set by the data compares the posterior with the prior:

data fractiona=1−[Σθ∣y]aa[Σθ]aa\text{data fraction}_a = 1 - \frac{[\gmat{\Sigma}_{\theta \mid y}]_{aa}}{[\gmat{\Sigma}_\theta]_{aa}}

A knot beyond the visible plume has no data: its row of F\mat{F} is zero and its posterior is its conditional prior. SPIIRE, which has no prior on the knots, inverts only a leading block of its Hessian instead; the prior below makes the full posterior well defined.

Two stages and a multistart

A small rotation δφ\delta\varphi moves the ridge by dδφd \delta\varphi at distance dd, which is the centreline m(d)=dδφm(d) = d \delta\varphi, so the direction and a linear trend in the knots are nearly the same parameter. The fit runs in two stages, as SPIIRE’s does:

  1. Straight. Fit (log⁡q,log⁡wref,b,φ,s0,Ωbg)(\log q, \log w_\text{ref}, b, \varphi, \vect{s}_0, \Omega_\text{bg}) from a 3 × 3 grid of source positions one pixel apart, and keep the lowest cost. The starting direction points from the catalogue’s pseudo-origin to the plume’s centroid.

  2. Bent. Hold the direction, start the knots from the smoothed transect centreline, and refit with the centreline block released.

The cost has several minima in the source position, which is why stage 1 starts from a grid rather than one point.

On a synthetic 3 km plume whose centreline is a sine of 200 m amplitude and 3 km wavelength, the straight stage turns the direction by 0.27 rad towards the brighter first bend and underestimates qq by 9 %. Starting its knots from zero, the bent stage recovers them to 4 m without noise. At a peak signal-to-noise ratio of 10 the knot error is 32 m, which is what the knots’ own posterior standard deviations predict (31 m), and qq is within 1 % of the truth. The error grows downwind as the plume widens and fades, so the posterior standard deviation of each knot, not a fixed tolerance, says how well the bend is known.

Centreline prior

The knots have a Matérn-3/2 Gaussian-process prior pinned to zero at the source. With r=∣d−d′∣r = \vert d - d' \vert, length scale ℓ\ell and amplitude σm\sigma_m:

k(d,d′)=σm2(1+3rℓ)exp⁡(−3rℓ)k(d, d') = \sigma_m^2 \left(1 + \frac{\sqrt{3} r}{\ell}\right) \exp\left(-\frac{\sqrt{3} r}{\ell}\right)
k0(d,d′)=k(d,d′)−k(d,0)k(0,d′)k(0,0)k_0(d, d') = k(d, d') - \frac{k(d, 0) k(0, d')}{k(0, 0)}

and m∼N(0,KDD)\vect{m} \sim \mathcal{N}(\vect{0}, \mat{K}_{DD}) with [KDD]jk=k0(dj,dk)[\mat{K}_{DD}]_{jk} = k_0(d_j, d_k). For ℓ\ell = 1 km and σm\sigma_m = 300 m the prior standard deviation is 84 m at 180 m and 148 m at 360 m, rising to 300 m far downwind. SPIIRE’s box bounds at the same two distances are 60 m and 120 m, so the defaults allow a similar freedom near the source. Both defaults are starting values to be tuned on the validation scenes. A random walk from the source, k(d,d′)=κ2min⁡(d,d′)k(d, d') = \kappa^2 \min(d, d'), stays available as the alternative.


Numerics


API

Modules

The fixed choices of the model are fields of a callable module, and the fitted variables travel together in their own module, which goes into __call__.

Table 2:Where each piece lives, and the issue that adds it.

FileSymbolsIssue
gauss_plume/_src/column.pyPlumeGeometry, ColumnPlume, ColumnPlumeSource, plume_frame, power_law_width, unit_column, centreline_offset#267, #270
gauss_plume/_src/centreline_prior.pyCentrelinePrior#270
coupled/_src/backends.pyAbstractControlledSource#268
coupled/_src/inversion.pyCoupledPrior.from_blocks, CoupledResult.with_wind, solve_coupled(initial=...)#268, #270, #271
coupled/_src/multistart.py, coupled/_src/diagnostics.pysolve_coupled_multistart, FitDiagnostics, fit_diagnostics#271
geo/_src/transects.py, geo/_src/starts.pyCrossPlumeProfile and its array functions, plume_direction, source_offset_grid#269, #271
obs/_src/plume_scene.pyPlumeScene, load_emit_plume_complex, matched_filter_scene#272

Call site

One EMIT plume, cropped to a 200 × 200 pixel window at 60 m, with 33 knots 180 m apart. The single solve below shows every block in one place; in practice it runs as the two stages above.

import jax.numpy as jnp
import plumax.coupled as cpl
import plumax.gauss_plume as gp
import plumax.obs as obs

# Shapes: N_Ωy = 40,000 pixels; K = 33 centreline knots; D_θ = 40 controls

# proposed (#272): Aₙ and σₙ come with the scene
scene = obs.load_emit_plume_complex(
    "scene_CH4ENH.nc",
    "plume_complexes.json",
    plume_id="CH4_PlumeComplex-1234",
    frame=frame,
    sensitivity_path="scene_CH4SENS.nc",
    uncertainty_path="scene_CH4UNCERT.nc",
)

# proposed (#267, #270)
# w₀ = g / √12 for a pixel of side g = 60 m
initial_width = 60.0 / 12.0**0.5
# w(d)² = w₀² + w_ref² (d / d_ref)^(2b),  m(d) linear between knots d_k = k Δ_d
plume = gp.ColumnPlume(
    initial_width=initial_width, upwind_scale=initial_width, knot_spacing=180.0
)
centreline_0 = jnp.zeros(33)
geometry = gp.PlumeGeometry(
    location=scene.origin,
    direction=scene.direction,
    reference_width=jnp.asarray(150.0),
    width_exponent=jnp.asarray(0.9),
    centreline=centreline_0,
)
source = gp.ColumnPlumeSource(plume=plume, geometry=geometry)

# today (plumax)
forward = cpl.build_coupled_forward(source, [scene.instrument])

# proposed (#270)
# d_k = k Δ_d
knot_index = jnp.arange(1, 34)
knot_distance = 180.0 * knot_index                        # (K,)
centreline_prior = gp.CentrelinePrior(length_scale=1000.0, amplitude=300.0)
# K_DD = [k₀(d_j, d_k)]_jk
knot_covariance = centreline_prior(knot_distance)         # (K,) → (K, K)

# θ = (log q, log w_ref, b, φ, s₀, Ω_bg, m)
prior_mean = {
    "log_line_density": jnp.log(0.1),
    "log_reference_width": jnp.log(150.0),
    "width_exponent": 0.9,
    "direction": scene.direction,
    "location": scene.origin,
    "background": 0.0,
    "centreline": centreline_0,
}
prior_covariance = {
    "log_line_density": 3.0,
    "log_reference_width": 1.0,
    "width_exponent": 0.3,
    "direction": jnp.deg2rad(15.0),
    "location": 60.0,
    "background": 1e-4,
    "centreline": knot_covariance,
}
# proposed (#270)
# Σ_θ = blockdiag(σ², …, K_DD)
prior = cpl.CoupledPrior.from_blocks(mean=prior_mean, covariance=prior_covariance)

# today (plumax)
observations = {"EMIT": scene.enhancement}
problem = cpl.CoupledProblem(forward=forward, prior=prior, observations=observations)

# today (plumax)
# θ* = argmin 𝒥(θ),  Σ_θ|y = (Σ_θ⁻¹ + J_hᵀ Σ_ε⁻¹ J_h)⁻¹
result = cpl.solve_coupled(problem)

# proposed (#268)
# Q = q U,  𝕍[log Q] = 𝕍[log q] + 𝕍[log U]
rate = result.with_wind(speed=3.5, speed_std=1.0)

Ownership

  1. plumax owns the column plume, its control blocks, the centreline prior, the transect diagnostics and the ingest of a plume scene. It never computes a sensitivity from radiance.

  2. radtrax owns the matched-filter sensitivity and noise maps that become AnA_n and σn\sigma_n. It never imports plumax.

  3. vardax and argminax own the minimiser and the Laplace covariance. They never import plumax or radtrax.

  4. geotoolz (xrproducts, geoops.qa) owns reading the product files and decoding the quality masks (geotoolz#742, geotoolz#743). It never imports plumax or radtrax.


Gates

Table 3:The gates that close the image fit. The thresholds of G3 and G6 are proposals, to be revisited once the first results exist.

GatePasses whenIssue
G1 column identitythe closed form, with the Briggs crosswind width, no meander and a hard cut, equals the trapezoid column of plume_concentration on 2,000 levels from 0 to 5 km to 1e-4 relative#267
G2 mass fluxwith the hard upwind cut, the crosswind sum of ΔΩ\Delta\Omega times the pixel side equals qq, with and without meander: to 1e-10 relative at every distance with the pixel average, and to 1e-3 relative with point evaluation wherever the width is at least one pixel. The logistic ramp scales the sum by 1/(1+e−d/ℓu)1 / (1 + e^{-d / \ell_u}), which is within 1e-3 of 1 only beyond ℓulog⁡999≈6.9ℓu\ell_u \log 999 \approx 6.9 \ell_u#267, #270
G3 recoveryon 200 synthetic scenes, the truth of log⁡q\log q lies inside the 1σ Laplace interval in a fraction consistent with 68.3 % at 3 binomial standard errors#268
G4 wind degeneracythe Fisher matrix of (log⁡Q,log⁡U)(\log Q, \log U) has a second singular value below 1e-10 of the first#268
G5 linear limitwith only a linear line_density block and one bias free, the solve equals fuse_observations to 1e-8#268
G6 controlled releasethe metered rate lies inside the 2σ interval of Q=qUQ = q U for at least 80 % of the catalogue’s airborne controlled-release scenes#273

Risks


References