Ocean surface: SSH, SST, SSS and colour
GeoStack · application · 3 December 2026
Abstract¶
A shallow-water or QG model of the ocean, corrected by altimetry, tide gauges, the SWOT swath and the radiometers, and the four surface variables they see, from L1 radiance to L5 features. The same five transitions run for every variable, so the suite is a grid.
One window, six inputs¶
A shallow-water or QG model of the ocean, corrected by altimetry, tide gauges and the SWOT swath. The running example is one ten-day window over the North Atlantic, 25–55°N, 70–30°W, from the carrier arrays page: six inputs in five geometries, and only the state on the model grid.
DA adaptersdynamics, , windowsesmax_core.da
Model and observations meet in sesmax’s DA adapters, the only place the two tracks touch code.
| Step | Libraries | Shelf |
|---|---|---|
| Grid, physics | gridax C-grid operators, geophysix rotation and sea water | physics |
| Products | xrproducts: CMEMS (GLORYS and others), CDS, in-situ archives | data |
| Ocean model | sesmax-ocean: barotropic and baroclinic QG, shallow water, on sesmax-core | assemble |
| Corrections | radiomax altimetry corrections | physics |
| DA adapters | sesmax_core.da: FilteraxDynamics, VardaxForwardModel, SubsampleObs, WindowOperator | assemble |
| Assimilate | filterax (ensemble filters), vardax (OI, 3D-Var, 4D-Var) | fit |
| The cycle | pipekit-cycle DACycle, EnsembleDACycle, BFNCycle; pipekit-jax ScanCycle | orchestrate |
| Evaluate | sesmax_ocean.eval, diagnostix (spectra, EOFs, kinematics), pipekit-evaluate | orchestrate |
| Learned parts | geonnax networks, trained with sesmax_core.train and pipekit-train | describe |
The window’s inputs and their carriers¶
| Input | Geometry | Carrier |
|---|---|---|
| model state , , | spherical C-grid, ¼°, 120 × 160 | CField ×3 |
| GLORYS12 background | lat–lon grid, 1/12° | DataArray → GeoArray |
| GEBCO depth | lat–lon grid, 15″ | GeoArray |
| nadir altimetry | moving points: lon, lat, time each | GeoPoints (obs) |
| tide gauges | fixed stations, hourly | GeoPoints (time, obs) |
| SWOT KaRIn | swath: lat, lon per pixel | GeoSwath |
| innovation statistics | no geometry left | DimArray |
Four variables, five arrows¶
SSH , SST, SSS and ocean colour share one grid and the same five transitions, so one card template covers all four and one estimator can be scored on several variables. Each cell is a card, named ocn.<variable>.<task>.
| Transition | SSH | SST | SSS | Ocean colour |
|---|---|---|---|---|
| L1 → L2 retrieve | waveform retracking to range and SLA | infrared split window, or optimal estimation | L-band brightness temperature to salinity | atmospheric correction, then reflectance to chlorophyll |
| L2 → L3 grid | along-track and SWOT swath to a daily grid | L2P to L3S | orbits to a multi-day L3 | a daily binned L3 |
| L3 → L4 map | ocn.ssh.map | ocn.sst.map | ocn.sss.map | ocn.oc.map |
| L4 → L4 forecast | ocn.ssh.forecast | ocn.sst.forecast | none | none |
| L4 → L5 derive | eddies, currents, eddy kinetic energy | marine heatwaves, fronts | river plumes | phenology; 3-D chlorophyll (SOCA) |
Chlorophyll is benchmarked as , because its errors are multiplicative. A twentieth card, ocn.qg.emulate, scores the emulator column on its own.
The model ladder¶
LinearBalancedFull
· which equations
· one layer, plane
Linear SWtesting
QGqg
SWswm
· layers
Linear SWnot built
QGqg
SWswm
· one layer, sphere
Linear SWnot built
QGspherical
SWspherical
Bridge
Reparameterized QG-layer shallow water projected onto QG balanceqg
· process forms
Drag, dampinglinear, quadraticsesmax_coregridax diffuse
Sub-grid eddiesGM, Leith, backscatterno home
Columns change the equations (linear, balanced, full shallow water), rows the structure. The two dashed cells are combinations nobody needs yet; the dashed closure is a gap. Modules: testing is sesmax_core.testing, the others sesmax_ocean.qg, .swm and .spherical.
| Model | Relaxes | Rung | In sesmax |
|---|---|---|---|
| Linear SW | small amplitude: no advection of momentum | LinearShallowWater2D (sesmax_core.testing) | |
| QG, one layer | small Rossby number: balance, gravity waves filtered out | BarotropicQG | |
| Nonlinear SW | the full shallow-water equations, gravity waves back | NonlinearShallowWater2D | |
| QG, layers | vertical structure: baroclinic instability | BaroclinicQG, StratificationProfile, ModalTransform | |
| SW, layers | the same structure, unbalanced | MultilayerShallowWater2D | |
| On the sphere | the -plane becomes the sphere | SphericalQG, SphericalSWM | |
| Reparameterized QG | -layer shallow water projected onto QG balance | , a bridge | ReparameterizedQG |
| Drag, damping | linear or quadratic drag, Rayleigh damping | LinearDrag2D, QuadraticDrag2D, RayleighDamping2D | |
| Sub-grid eddies | Gent–McWilliams, Leith, backscatter | no home ① |
Reading the ladder¶
Sweep a row, or a column. Linear against QG against nonlinear SW at one layer isolates the equations; one layer against isolates the vertical structure. Each sweep is Gupta’s step 4 with one hypothesis free.
Balance has a diagnostic already.
sesmax_ocean.evalhasgeostrophic_imbalance, the ageostrophic fraction, andqg_balance_residual: the evidence for or against the QG column, from a shallow-water run.The process rung is thin. With drag and damping only, a coarse -layer model’s eddy misfit cannot be put on the process forms, so it lands on the architecture as resolution. That is the confounding Gupta warns about.
The cycle on every tier¶
| Tier | Forward model | 1 · Model | 2 · Inference | 3 · Emulator | 4 · Emulator inference | 5 · Amortized |
|---|---|---|---|---|---|---|
| I · Static prior | a Gaussian-process prior, no dynamics | kernellib kernels | OI (vardax), an exact GP (gaussx, pyrox-gp) | random features | a GP on features | 4DVarNet (FourDVarNet2D) |
| II · Barotropic QG | BarotropicQG | exists | 4D-Var (IncrementalFourDVar) through sesmax_core.da | FNO, SFNO untrained | open | AmortizedPosterior, tested on Lorenz only |
| III · Baroclinic QG | BaroclinicQG, ReparameterizedQG | exists | the same | open | open | open |
| IV · Shallow water | MultilayerShallowWater2D | exists | the same | open | open | open |
The map and forecast rows climb this ladder. Status from the GeoBench catalogue, with today’s names.
The suite: nineteen cards¶
| Card | Synthetic truth → oracle | Real-data tracks | Headline scores | Status |
|---|---|---|---|---|
ocn.ssh.map | a high-resolution run (NATL60) or a sesmax truth → an exact GP (Tier I) or 4D-Var (Tier II) | DUACS L4, GLORYS12, withheld along-track | resolved scale, geostrophic imbalance, coverage | 4b |
ocn.ssh.derive | eddies detected on the truth | an eddy atlas, drifters | eddy POD and FAR; EKE bias | card |
ocn.sst.map | model SST under real cloud masks → OI | OSTIA, drifters, Argo | RMSE, spectrum, front sharpness | card |
ocn.sst.derive | heatwaves on the model truth | heatwaves on OSTIA | event POD and FAR; onset error | card |
ocn.oc.derive | none: real data only | BGC-Argo, one float held out at a time | RMSE per depth, CRPS | card |
ocn.qg.emulate | sesmax QG runs → FNO and SFNO at 64² and 128² | none | resolution invariance; kinetic-energy spectrum | card |
| the other cells | per transition, as in the grid above | as above | as above | card |
The first card: ocn.ssh.map¶
Stack the observed L3 cells into , with selecting them and their error covariance, and put a prior on the field with a space-time kernel. Optimal interpolation gives the analysis
Here over the grid cells, , , and .
Strong-constraint 4D-Var replaces the static with dynamics: it finds the initial state whose QG trajectory fits every observation in the window, and is the oracle for the faster rungs. The floor is climatology; the bar is the operational map, DUACS. Most published ocean benchmarks stop at RMSE and resolved scale against one reference; this card adds the posterior, scored for coverage against the truth and for distance to the 4D-Var oracle.
Derive from draws, not from the mean. A posterior mean is smoother than any realisation, so eddies computed on it are too few and too weak. Applying the detector to each of draws gives a probability per cell, which can be scored for calibration.
Forecasts are scored against persistence. RMSE as a function of lead time, with skill relative to persistence; SSS and chlorophyll have no forecast card, because nothing in the stack forecasts them.
Sketch¶
A code sketch of the first card, ocn.ssh.map: the names marked today exist; the arguments are sketched. Nothing here runs yet.
import kernellib as kl
from sesmax_core.da import VardaxForwardModel
from sesmax_ocean.eval import geostrophic_imbalance
from sesmax_ocean.qg import BarotropicQG
from vardax import IncrementalFourDVar, OptimalInterpolation
# Shapes: D_x = 40,000 cells (200 × 200); D_y along-track points in the window
# today* (kernellib)
# Σ_x = [k(sᵢ, sⱼ)]ᵢⱼ, a space-time Matérn
prior_cov = kl.to_operator(kl.Matern(nu=1.5), cell_coords) # (D_x, 3) → (D_x, D_x) PSD op
# today* (vardax)
# μ_{x∣y} = μ_x + Σ_x Hᵀ (H Σ_x Hᵀ + Σ_ε)⁻¹ (y − H μ_x): Tier I, rung 2
oi = OptimalInterpolation(prior_cov, obs_operator, obs_cov)
analysis = oi(background, ssh_obs) # (D_y,) → (D_x,)
# today* (sesmax_ocean.qg, sesmax_core.da, vardax)
# argmin 𝒥(x₀) with QG dynamics over the window: Tier II, rung 2, the oracle
model = VardaxForwardModel(BarotropicQG(params))
oracle = IncrementalFourDVar(model, obs_operator, obs_cov)(background, ssh_obs) # → (D_x,)
# today* (sesmax_ocean.eval)
# the ageostrophic fraction of the analysis
imbalance = geostrophic_imbalance(analysis) # (D_x,) → ()Gaps¶
Where it doesn’t fit¶
[1] No sub-grid eddy closures. sesmax’s own design (sesmax-param) says there is no Smagorinsky, Leith, Gent–McWilliams or backscatter scheme in sesmax, somax or gridax, so the ocean’s process rung holds only forcing, drag and damping. Proposed: The closures as terms in sesmax-param, on gridax’s diffusion operators, with a learned closure from geonnax as one more candidate.
[2] No ocean radiative transfer. Nothing in the stack forward-models SST, SSS or ocean-colour radiances, so the four retrieve cards can run on real matchups only (HPLC for chlorophyll, drifters for SST). Proposed: The empirical baselines first (split window, OC4), as operators in geoops; a physical forward model only when a card needs a synthetic truth
[3] Gridding without a per-cell variance. The catalogue found that binning returned no per-cell variance;
functax.interpBinningis the binning today. Every grid card scores whether the cell’s uncertainty covers the sampling error, so it needs one. Proposed: CheckBinningand add an inverse-variance weight and a variance output where it lacks them[4] Events have detectors in part. The Okubo–Weiss parameter is
gridaxokubo_weiss, but eddy tracking and a marine-heatwave detector are not in the indexes, and no event score (POD, FAR, CSI) is. Proposed: Eddy tracking and the Hobday heatwave definition in diagnostix; event scores in pipekit-evaluate
Sources and status
Cards, transitions, tiers and the worked chains from the GeoBench catalogue (7 October 2026), with library names moved to today’s and checked against geostack’s capability indexes on 2 December 2026. How a card is run and scored is GeoBench; what the applications share is the Application stack. The North Atlantic window from carrier arrays.