Five lenses on the stack
GeoStack · design note · 1 December 2026
Abstract¶
Five lenses read the same stack: the data levels say what a dataset is, numerical methods how to compute on it, mathematical modelling how a model is built and improved, scientific ML how to learn parts of it, and data engineering how all of it runs at scale. Each lens has its own page; this one maps them and gives the order to read them in. The five applications the stack exists for have pages of their own. In every lens each step is coloured by the shelf it lands on, the colours fall in the same order, and that order is the seam the layers follow.
Reading path¶
The lenses are not independent: each one leans on the ones before it. Read in this order, every page uses ideas an earlier page has already set up, with three exceptions marked below.
Read top to bottom. Each stop is coloured by the shelf its lens lands on, as on the cards above; the tags mark the three places a page looks ahead, listed below the table.
| Stop | Question it answers | Start with | Then | You can now |
|---|---|---|---|---|
| 0 · Why | What problems is this for, and why are they hard? | What the stack is for | the application stack | say what a methane plume, an ocean state or a heat extreme asks of the data, without any method |
| 1 · Data levels | How far has a dataset come from the instrument? | Data levels | Processing levels | place any dataset on L0–L5 and name the operator on each arrow |
| 2 · Numerical methods | How do we compute on a field? | Numerical methods | read a forward model as primitives, then run it backwards | |
| 3 · Mathematical modelling | How does a model improve? | Mathematical modelling | The modeling cycle, then its three examples: retrieval, quantification, persistency | tell a random misfit from a systematic one, and say which loop it sends you round |
| 4 · Scientific ML | Which parts of a model can be learned, and how do we check them? | Scientific ML | place an emulator, an amortised estimator or a learned closure in the six-step cycle | |
| 5 · Data engineering | How does any of this run on real archives? | Data engineering | data structures (carrier arrays, carrier trees, to come); code organisation (role ladder, rung by rung and roles to come); storage (object storage, formats, databases and catalogs, versions); compute (pipeline, parallelism, backends) | take a method from a notebook to a versioned product someone else can find |
| Then | Where do the lenses meet? | Application stack and its five applications | GeoBench | read an application, or a benchmark card, as a path through all five lenses |
Why this order:
Why comes before anything. The lenses are answers; stop 0 states the questions. It shows the applications and what a benchmark would have to test, without methods, so every later page has a reason to exist.
Data levels come first among the lenses because every other lens acts on a level: a method takes data at one level and returns it at the next.
Numerical methods before modelling. The modelling cycle runs forward models and solves inverse problems; numerical methods is where both are built.
Modelling before scientific ML. The cycle says why you need an emulator or an amortised estimator (steps 3 to 5); scientific ML says how to build one.
Data engineering last. It is the floor the others stand on, but most readers arrive for the science; by stop 5 they know what has to be stored, versioned and scaled.
Three places look ahead, and that is deliberate:
Part 2 of Processing levels shows the engineering under every level. Read it as a preview; stop 5 covers each piece.
The modeling cycle’s emulator steps name tools that scientific ML builds.
Numerical methods names the carriers (DimArray, CField, GeoArray) that stop 5 defines.
Shortcuts: an engineer can read stop 0, then 1, then 5. A scientist can stop after 4 and come back to 5 when the method has to scale.
Trivium: what the lenses ask¶
The medieval arts of language as a map of the lenses, not a set of new names: grammar names things, logic reasons from them, rhetoric convinces someone else. The cards above carry the art each lens serves. Its other half, the quadrivium, maps the numerical-methods chapters and lives on that page.
Read top to bottom, as the curriculum was taught. Rhetoric is dashed because it is mostly gaps.
| Art | Asks | Here | State |
|---|---|---|---|
| Grammar | What is this, and where? | data levels, carriers, data engineering; the notation standard | strong every value carries its level, grid and stagger |
| Logic | What follows from it? | numerical methods, scientific ML, mathematical modelling | strong forward models, inference, the six-step cycle |
| Rhetoric | Why should anyone believe it? | evaluation and benchmarks, decisions, publishing; the applications | thin evaluation is split (scientific-ML note 3), decisions have no home (scientific-ML note 5), commit and publish are proposals (data engineering, steps 9 and 10) |
Grammar comes first because information is relational. “3.14” is not information until it is streamflow in m³/s; data says something only about a named quantity in a context (H. V. Gupta, 2017 Horton Lecture). Carriers, units and data levels are that context.
Rhetoric is the stack’s weakest third. It names things well and reasons about them well; showing others the result is where the open notes cluster.
Across the lenses¶
The colours fall in the same order in every method lens: describe, fit, physics, assemble, orchestrate, with data entering from GeoStack. Under the three method lenses, nothing in GeoNumerics, GeoStack or GeoModels sits on the wrong shelf. Each page numbers its own notes. Numerical methods has two, both gaps (finite elements, probabilistic numerics), and marks smaller gaps on its rows. Scientific ML has seven: four on how the Core repos split, and three gaps (decisions, probabilistic solvers, and SMC and simulation-based inference). The modelling cycle’s one note is the evaluation split, scientific-ML note 3 seen from the loop. The data levels place every dataset and every step on one scientific axis from L0 to L5, and data engineering is the floor the others stand on: the steps marked D are its steps, and only commit and publish are still proposals. The applications, with their own notes, are on the application pages.
Sources and status
Shelves as on the Layer Map (geostack PR #331). “Inherited” marks libraries the stack uses but does not contribute to. meshax is a placeholder with no code yet. The numerical-methods curriculum takes X.-S. Yang, Mathematical Modelling for Earth Sciences (Dunedin Academic Press, 2008), as its starting point, with P. Hennig, M. A. Osborne and H. P. Kersting, Probabilistic Numerics (Cambridge University Press, 2022) for its probabilistic counterparts. The scientific-ML curriculum follows the arc of J.-A. Goulet, Probabilistic Machine Learning for Civil Engineers (MIT Press, 2020), the six-step cycle and the data levels from geostack’s six-step-cycle and data-levels skills, and part III after O. Simeone, Machine Learning for Engineers (Cambridge University Press, 2022).