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, , and the plume’s shape; the wind speed 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 for other quantities; on this page it is the line density only.
| Symbol | Meaning | Shape, units |
|---|---|---|
| , | centre of pixel , source position, in a local metre frame | , m |
| plume direction, counter-clockwise from east, pointing downwind | rad | |
| , | downwind and crosswind distance of pixel from the source | m |
| , | emission rate, effective wind speed | kg s⁻¹, m s⁻¹ |
| line density: the mass per metre of downwind travel | kg m⁻¹ | |
| crosswind standard deviation of the plume at distance | m | |
| , , , | initial width, width at the reference distance, reference distance, growth exponent | m, m, m, – |
| , | centreline offset at distance , and its values at the knots | m, m |
| modelled column-mass enhancement of pixel | kg m⁻² | |
| , , | observed enhancement, its noise standard deviation, its quality mask | kg m⁻², kg m⁻², 0 or 1 |
| sensitivity of pixel : the score recovered per unit of true enhancement | – | |
| background column offset | kg m⁻² | |
| the stacked control | ||
| , | prior mean and covariance of the control | , |
The model¶
Plume frame¶
The plume frame is a rotation about the source, with unit vectors along the plume and across it:
Column of a reflected plume¶
The steady Gaussian plume with ground reflection has concentration
with vertical spread and release height . The bracket is a normal density and its mirror image about the ground, so it integrates to over for every and . The full column is therefore
and zero for , where the centreline offset 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:
With this is SPIIRE’s with . The initial width removes the singularity at the source, and stands in for the average over a pixel of side , whose variance is . Point evaluation is still a sample, not an average: a Gaussian of width sampled every sums to only up to an aliasing error of about , which is 0.4 at and below 10-8 once . 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 at and :
and beyond the last knot. Shifting a Gaussian does not change its integral, so for every the crosswind integral of the column is the line density, whatever the width and the bends:
Observation¶
The matched filter recovers a share of the true enhancement, so the model is multiplied by it before it meets the data:
with . 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:
Why the wind is not a control¶
and enter the column only as . Write the prediction in terms of : the two columns of the Jacobian are and , with the response per unit line density. The Fisher information of the pair is
which has rank one: only 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 and standard deviation :
where and are the Laplace mean and variance of . For and a wind of 3.5 ± 1.0 m s⁻¹, and the standard deviation of is 0.32, so the wind carries about three quarters of the variance. A catalogue event that stores needs no wind rescaling at all (#111).
Inference¶
Cost and posterior¶
The cost is the one solve_coupled minimises today:
It is minimised by L-BFGS in the whitened control , with , so every block has unit prior scale whatever its units. With the Jacobian of the predictions and , the Fisher information and the Laplace posterior are
What the data determined¶
The prior-free bound on one parameter , with all others also unknown, is the inverse of a Schur complement of , which is what SPIIRE reports:
The share of each parameter set by the data compares the posterior with the prior:
A knot beyond the visible plume has no data: its row of 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 moves the ridge by at distance , which is the centreline , 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:
Straight. Fit 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.
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 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 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 , length scale and amplitude :
and with . For = 1 km and = 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, , stays available as the alternative.
Numerics¶
The upwind cut at makes the cost discontinuous in and . The default replaces it by a logistic ramp with ; the hard cut stays for the oracle tests. The ramp removes mass near the source: the crosswind integral is , so the mass-flux invariant holds to 1e-3 only beyond about , 120 m for EMIT.
and are fitted in logs; is fitted directly, with its prior keeping it near the observed range of 0.5 to 1.
is set to half the plume length, which decorrelates from ; 1000 m is the default until a plume length is known.
The exponent is evaluated as , never with a separate in the denominator; both it and the amplitude are safe in float32 once .
The power is computed as on clipped at 1 mm, so the gradient in is finite at the source.
Distances come from a metre-based local frame, never from a Web Mercator warp. SPIIRE takes its pixel size after warping to EPSG:3857, which inflates distances by , 1.31 at 40° N, and inherits the factor.
SPIIRE intends to drop the source pixel from its cost, but the line that does so (
cost.at[pnt].set(0.)) discards its result. With there is no singular pixel to drop.The knot spacing is at least two pixels, so each knot has data on both sides; SPIIRE uses three.
The Laplace covariance costs one forward-mode product per control, 40 for a 33-knot plume, and each forward is one exponential per pixel.
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.
| File | Symbols | Issue |
|---|---|---|
gauss_plume/_src/column.py | PlumeGeometry, ColumnPlume, ColumnPlumeSource, plume_frame, power_law_width, unit_column, centreline_offset | #267, #270 |
gauss_plume/_src/centreline_prior.py | CentrelinePrior | #270 |
coupled/_src/backends.py | AbstractControlledSource | #268 |
coupled/_src/inversion.py | CoupledPrior.from_blocks, CoupledResult.with_wind, solve_coupled(initial=...) | #268, #270, #271 |
coupled/_src/multistart.py, coupled/_src/diagnostics.py | solve_coupled_multistart, FitDiagnostics, fit_diagnostics | #271 |
geo/_src/transects.py, geo/_src/starts.py | CrossPlumeProfile and its array functions, plume_direction, source_offset_grid | #269, #271 |
obs/_src/plume_scene.py | PlumeScene, 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¶
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.
radtrax owns the matched-filter sensitivity and noise maps that become and . It never imports plumax.
vardax and argminax own the minimiser and the Laplace covariance. They never import plumax or radtrax.
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.
| Gate | Passes when | Issue |
|---|---|---|
| G1 column identity | the 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 flux | with the hard upwind cut, the crosswind sum of times the pixel side equals , 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 , which is within 1e-3 of 1 only beyond | #267, #270 |
| G3 recovery | on 200 synthetic scenes, the truth of lies inside the 1σ Laplace interval in a fraction consistent with 68.3 % at 3 binomial standard errors | #268 |
| G4 wind degeneracy | the Fisher matrix of has a second singular value below 1e-10 of the first | #268 |
| G5 linear limit | with only a linear line_density block and one bias free, the solve equals fuse_observations to 1e-8 | #268 |
| G6 controlled release | the metered rate lies inside the 2σ interval of for at least 80 % of the catalogue’s airborne controlled-release scenes | #273 |
Risks¶
Several minima in the source position and the direction. Fallback: the multistart grid of stage 1, widened if the costs of neighbouring starts disagree.
The width law and the meander trade off. A wide straight plume and a narrow bending one can fit equally well. Fallback: the two stages, with the width blocks tightened around stage 1 when the centreline is released.
The Laplace posterior is a poor description of a short plume. Fallback: the NumPyro path with the same forward, for scenes whose data fraction of is below 0.5.
Opening the block table changes
CoupledPrior’s validation, andPlumeSourcebecomes aneqx.Module. Fallback:PlumeSourcedeclares today’slocationandwindblocks and keeps its fields, so every existing call site is unchanged.
References¶
SPIIRE: emit-sds/SPIIRE @
ae9a54d(Apache-2.0). The forward model is inplume_models.py, the cost inobjective_functions_for_2d_inversion.py, the staged fit and the Hessian bound inemission_estimate_2d.py, and the transects incompute_cross_plume_slices.py.Varon et al. (2018), Quantifying methane point sources from fine-scale satellite observations of atmospheric methane plumes, AMT, doi:10.5194/amt-11-5673-2018, for the integrated mass enhancement and cross-sectional flux this fit is compared with.
Rasmussen and Williams (2006), Gaussian Processes for Machine Learning, ch. 4, for the Matérn kernel.