What the stack is for
Five questions about a changing planet, and why none of them is easy
Abstract¶
One faint plume on one satellite image raises four questions that the image cannot answer. This page follows that plume, then four more problems the stack exists for, without naming a method. It ends with the six difficulties the problems share and the part of the stack that answers each, which is the order the rest of the docs are read in. The overview says why the software has to exist; this page says what it is for.
One plume, four questions¶
The imaging spectrometer EMIT passes over a gas facility. Its pixels are 60 m across, and in a patch of about a hundred of them the light at 2.3 µm is slightly dimmer than its neighbours, as if something were absorbing it. Methane absorbs there. So might a dark roof, the edge of a cloud, or noise.
1Is it a plume?→ alert or ignore
or a bright roof, a cloud edge, noise
2How much is coming out?→ how urgent
a rate, in , with an error bar
3Whose is it?→ who gets notified
which facility, which operator
4Will it come back?→ revisit, report a total
one smudge says nothing about tomorrow
One overpass gives a faint smudge. Each of the four questions it raises feeds a decision, and none is answered by the image itself.
Someone responsible for methane emissions needs four answers, and each one feeds a decision:
Is it a plume? If yes, it is worth an alert; if not, it is a false alarm that costs an operator’s trust.
How much is coming out? A rate, in tonnes per hour, with an error bar. It decides how urgent the alert is.
Whose is it? Which facility, which operator. It decides who gets notified.
Will it come back? One overpass is one moment. Whether this source leaks for an hour a year or for hours every day decides whether to revisit it and what goes into a national total.
None of these is in the image. The image holds radiance: light, per channel, per pixel. Between it and a rate in tonnes per hour sit a radiative-transfer model, a guess at the background, a plume model and a wind that nobody measured at that spot.
The numbers in the worked examples make this concrete. The plume holds about 440 kg of excess methane, which with a wind of 3 m s⁻¹ gives a rate of 2 kg s⁻¹, or 7.2 t h⁻¹ (quantification). Almost all of the error bar on that rate comes from the wind, not from the image: with the wind known to ±1 m s⁻¹, the rate is somewhere between about 5 and 10 t h⁻¹. And a source that emits twice a day for three hours is caught by a sensitive instrument on about one overpass in five; a coarser one misses most of its smaller events, and with them about two fifths of the methane (persistency).
So the hard part is not seeing the plume. It is every step from the light to a number someone can act on, and knowing how far to trust that number.
Five problems with the same outline¶
Methane is one case of a pattern. The stack is built for five problems, each with its own application page. Each starts from measurements that do not directly contain the answer.
Sources: is something leaking, how much, and how often?¶
The plume above is the running example, but the chain is the same for anything that puts a trace into a moving fluid from a place: NO₂ from a stack, SO₂ from a volcano, heat from an outfall. Retrieve the trace, find the plume, quantify the source, attribute it, ask how often it comes back. What stands in the way: we see radiance, not gas; the wind is uncertain; overpasses are rare and irregular. (Sources)
Ocean surface: what is the ocean doing between the satellite tracks?¶
Satellite altimeters measure sea-surface height along narrow tracks, tens to hundreds of kilometres apart, and the ocean’s eddies are a few tens of kilometres across and move between passes. A wide-swath mission such as SWOT sees more at once, but rarely. Tide gauges see one point each. The question is the whole field, every day, and what it will do next. What stands in the way: the observations are thin lines in space and gaps in time, and the model that would fill them is itself approximate. (Ocean surface)
Sensor fusion: can one picture be sharp in space, time and colour at once?¶
No sensor is fine in all three. One satellite sees at 30 m but returns every two weeks; another sees every day but at hundreds of metres; a hyperspectral instrument sees hundreds of colours but in narrow strips. The question is whether one underlying field can be recovered at the finest sampling of all its inputs. What stands in the way: the sensors disagree in footprint, timing and calibration, and nothing observes the fused field directly. (Sensor fusion)
Land extremes: how hot can it get here, and did warming make this heatwave likelier?¶
The running example is daily maximum temperature at Spanish weather stations, from 1896 to today. The questions are the hottest day to expect once in a hundred years at any place (not just at a station), how that level moves as the climate warms, and how much warming made one particular event more likely. What stands in the way: extremes are rare by definition, so each station has few of them; stations are sparse and their records have gaps; and attribution compares the world with a world that did not happen. (Land extremes)
Calibration: how would we know any answer is right?¶
Real data never comes with the truth. There is no meter on the plume, no second ocean to compare with, no record of the heatwave in a cooler world. So the fifth problem is about the other four: three small systems whose answers are known exactly (a linear-Gaussian state space and the Lorenz-63 and Lorenz-96 models) on which any method can be checked before it is trusted on real data. What stands in the way: nothing, which is the point. When a method fails here, the method is wrong, not the data. (Calibration)
Four kinds of question¶
Under the domain words, every one of these problems asks for one of four things:
Fill in. A value where nobody measured: the sea height between tracks, the temperature between stations, the sharp picture between overpasses.
Uncover. Something hidden behind the data: the methane column behind the radiance, the emission rate behind the plume, the ocean state behind the heights, the parameters of an extreme-value law.
Predict. What comes after the data ends: the ocean next week, the next time a source leaks.
Learn a map. A fast stand-in for something slow (an emulator of a radiative-transfer model), a law learned from observations, or a compact description of a field.
| Problem | Fill in | Uncover | Predict | Learn a map |
|---|---|---|---|---|
| Sources | ● | ● | ● | ● |
| Ocean surface | ● | ● | ● | ● |
| Sensor fusion | ● | ○ | ||
| Land extremes | ● | ● | ||
| Calibration | ● | ● |
● the benchmark already has a test for it · ○ the problem asks it but nothing tests it yet. The application stack gives the same grid with the formal names: interpolation, state estimation, forecasting, and emulation, identification or representation.
The same four kinds recur because the problems share their shape, not their physics. A method that fills in sea height between tracks and one that fills in temperature between stations solve the same kind of problem on different data. That is why one stack can serve all five.
Why it is hard¶
Six difficulties recur across all five problems. None is specific to one domain.
The data is indirect. We measure radiance, not methane; sea-surface height, not currents; station temperatures, not the field between them. Every answer is at least one model away from the measurement.
The data is sparse and mismatched. Tracks, swaths, strips and stations, each with its own footprint, timing and errors. Combining them means putting them on a common footing first.
The models are wrong. Some of the misfit between a model and the data is noise, which more data averages away. Some of it is systematic, and no amount of data fixes it: only a better model does. Telling the two apart is half the work.
Uncertainty has to survive the chain. An error in the retrieval reaches the rate, the rate reaches the persistency, the persistency reaches the yearly total. A number that arrives without its error bar cannot be used for a decision. And the accurate models are often too slow to run as often as the chain needs.
The archives are big. Terabytes of scenes on object storage, growing every day. Finding the right few, reading only the part you need and keeping the result where someone else can find it is a problem of its own.
Nobody can check the answer. For a real plume there is no ground truth. A method can only be trusted on evidence: tests where the truth is known, protocols fixed before the results are seen, and comparisons anyone can rerun.
Where the stack answers each¶
Each difficulty is answered by one part of the stack, and the docs are read in that order.
Six difficulties, and the lens that answers each. The numbers are the stops on the reading path; the last row is the stack’s thinnest part today.
| Difficulty | Answered by | How |
|---|---|---|
| The data is indirect | Data levels | every dataset sits on a level from L0 (raw telemetry) to L5 (derived products), and every arrow between levels is a named operator |
| Sparse and mismatched | Numerical methods | fields, grids and the operators on them, run forward and backward |
| The models are wrong | Mathematical modelling | the modelling cycle: a random misfit re-fits the model, a systematic one changes it |
| Uncertainty through the chain | Scientific ML | probabilistic models, emulators for the slow parts, and how to evaluate them |
| The archives are big | Data engineering | find, read, compute and keep, on cloud-native formats with versions |
| Nobody can check | Applications and GeoBench | a reference standing in for the truth, a protocol frozen before anything runs |
How we would know¶
The last row deserves a word, because it is the promise the rest has to keep. A claim such as “method A estimates the emission rate better than method B” is an experiment whose subjects are methods. To be believed it needs four things:
A question, stated before any method is chosen: which quantity, from which data, for which decision.
A reference that stands in for the truth: a simulation where the answer is known, an independent measurement, or a controlled release.
A protocol frozen before anything runs, so that nobody tunes the test to the answer.
One change at a time, so that a difference in the score has a cause.
GeoBench is built on these. It is also, honestly, where the stack is thinnest today: it names things well and reasons about them well, but showing others the result is where most of the open work sits (five lenses).
Where to go next¶
Follow the difficulties in order. The five lenses page gives the full reading path, with the pages to read at each stop.
Data levels: what the data is.
Numerical methods: how to compute on it.
Mathematical modelling: how a model is built and improved, with the plume above as three worked examples (retrieval, quantification, persistency).
Scientific ML: how to learn parts of a model.
Data engineering: how all of it runs at scale.
Then the applications and GeoBench, where the five lenses meet in one problem each.
Sources and status
The plume numbers are the running example of the three modeling-cycle explainers, where the illustrative values are marked: an integrated mass of 439 kg over 120 pixels, an effective wind of 3.0 ± 1.0 m s⁻¹, a rate of 2.0 kg s⁻¹ (68 % interval 1.44 to 2.78 kg s⁻¹), and for persistency two events a day of three hours each, seen by a hyperspectral sensor on 18 % of overpasses and by a coarser one on 5 %, which misses 43 % of the mass. The five problems and the grid of question kinds follow the application stack and the GeoBench design; the four parts of a believable benchmark follow GeoBench. The software-side motivation is in the overview.