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.

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.

describemathax
fitinferax, pyrox
physicsGeoNumerics
dataGeoStack (geotoolz)
assembleGeoModels
orchestratepipekit
dashed, numbered: off the shelf the lens expects, or no library yet
Dhanded to the data-engineering lens
Phas a probabilistic-numerics counterpart

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.

The ocean, now and next
modelobservations
Grid, physicsgridaxgeophysix
ProductsDSSH, SST, in situxrproducts
Ocean modelQG, shallow watersesmax-ocean
Correctionsaltimetryradiomax

DA adaptersdynamics, H\mat{H}, windowsesmax_core.da

Sequentialensemble filtersfilterax
VariationalOI, 3D-Var, 4D-Varvardax
The cycleDA, ensemble DA, BFNpipekit-cycle · pipekit-jax
Evaluatesesmax_ocean.eval · diagnostixpipekit-evaluate
Learned closures, emulatorsgeonnax · sesmax_core.train

Model and observations meet in sesmax’s DA adapters, the only place the two tracks touch code.

StepLibrariesShelf
Grid, physicsgridax C-grid operators, geophysix rotation and sea waterphysics
Productsxrproducts: CMEMS (GLORYS and others), CDS, in-situ archivesdata
Ocean modelsesmax-ocean: barotropic and baroclinic QG, shallow water, on sesmax-coreassemble
Correctionsradiomax altimetry correctionsphysics
DA adapterssesmax_core.da: FilteraxDynamics, VardaxForwardModel, SubsampleObs, WindowOperatorassemble
Assimilatefilterax (ensemble filters), vardax (OI, 3D-Var, 4D-Var)fit
The cyclepipekit-cycle DACycle, EnsembleDACycle, BFNCycle; pipekit-jax ScanCycleorchestrate
Evaluatesesmax_ocean.eval, diagnostix (spectra, EOFs, kinematics), pipekit-evaluateorchestrate
Learned partsgeonnax networks, trained with sesmax_core.train and pipekit-traindescribe

The window’s inputs and their carriers

InputGeometryCarrier
model state η\eta, uu, vvspherical C-grid, ¼°, 120 × 160CField ×3
GLORYS12 backgroundlat–lon grid, 1/12°DataArray → GeoArray
GEBCO depthlat–lon grid, 15″GeoArray
nadir altimetrymoving points: lon, lat, time eachGeoPoints (obs)
tide gaugesfixed stations, hourlyGeoPoints (time, obs)
SWOT KaRInswath: lat, lon per pixelGeoSwath
innovation statisticsno geometry leftDimArray

Four variables, five arrows

SSH η\eta, 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>.

TransitionSSHSSTSSSOcean colour
L1 → L2 retrievewaveform retracking to range and SLAinfrared split window, or optimal estimationL-band brightness temperature to salinityatmospheric correction, then reflectance to chlorophyll
L2 → L3 gridalong-track and SWOT swath to a daily gridL2P to L3Sorbits to a multi-day L3a daily binned L3
L3 → L4 mapocn.ssh.mapocn.sst.mapocn.sss.mapocn.oc.map
L4 → L4 forecastocn.ssh.forecastocn.sst.forecastnonenone
L4 → L5 deriveeddies, currents, eddy kinetic energymarine heatwaves, frontsriver plumesphenology; 3-D chlorophyll (SOCA)

Chlorophyll is benchmarked as log⁡10C\log_{10} C, because its errors are multiplicative. A twentieth card, ocn.qg.emulate, scores the emulator column on its own.

The model ladder

LinearBalancedFull

HCLH_\text{CL} · which equations

HSAH_\text{SA} · one layer, plane

Linear SWtesting

QGqg

SWswm

HSAH_\text{SA} · NN layers

Linear SWnot built

QGqg

SWswm

HSAH_\text{SA} · one layer, sphere

Linear SWnot built

QGspherical

SWspherical

Bridge

Reparameterized QGNN-layer shallow water projected onto QG balanceqg

HPPH_\text{PP} · process forms

Drag, dampinglinear, quadraticsesmax_coregridax diffuse

Sub-grid eddies1GM, 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.

ModelRelaxesRungIn sesmax
Linear SWsmall amplitude: no advection of momentumHCLH_\text{CL}LinearShallowWater2D (sesmax_core.testing)
QG, one layersmall Rossby number: balance, gravity waves filtered outHCLH_\text{CL}BarotropicQG
Nonlinear SWthe full shallow-water equations, gravity waves backHCLH_\text{CL}NonlinearShallowWater2D
QG, NN layersvertical structure: baroclinic instabilityHSAH_\text{SA}BaroclinicQG, StratificationProfile, ModalTransform
SW, NN layersthe same structure, unbalancedHSAH_\text{SA}MultilayerShallowWater2D
On the spherethe β\beta-plane becomes the sphereHSAH_\text{SA}SphericalQG, SphericalSWM
Reparameterized QGNN-layer shallow water projected onto QG balanceHCLH_\text{CL}, a bridgeReparameterizedQG
Drag, dampinglinear or quadratic drag, Rayleigh dampingHPPH_\text{PP}LinearDrag2D, QuadraticDrag2D, RayleighDamping2D
Sub-grid eddiesGent–McWilliams, Leith, backscatterHPPH_\text{PP}no home ①

Reading the ladder

The cycle on every tier

TierForward model1 · Model2 · Inference3 · Emulator4 · Emulator inference5 · Amortized
I · Static priora Gaussian-process prior, no dynamicskernellib kernelsOI (vardax), an exact GP (gaussx, pyrox-gp)random featuresa GP on features4DVarNet (FourDVarNet2D)
II · Barotropic QGBarotropicQGexists4D-Var (IncrementalFourDVar) through sesmax_core.daFNO, SFNO untrainedopenAmortizedPosterior, tested on Lorenz only
III · Baroclinic QGBaroclinicQG, ReparameterizedQGexiststhe sameopenopenopen
IV · Shallow waterMultilayerShallowWater2Dexiststhe sameopenopenopen

The map and forecast rows climb this ladder. Status from the GeoBench catalogue, with today’s names.

The suite: nineteen cards

CardSynthetic truth → oracleReal-data tracksHeadline scoresStatus
ocn.ssh.mapa high-resolution run (NATL60) or a sesmax truth → an exact GP (Tier I) or 4D-Var (Tier II)DUACS L4, GLORYS12, withheld along-trackresolved scale, geostrophic imbalance, coverage4b
ocn.ssh.deriveeddies detected on the truthan eddy atlas, drifterseddy POD and FAR; EKE biascard
ocn.sst.mapmodel SST under real cloud masks → OIOSTIA, drifters, ArgoRMSE, spectrum, front sharpnesscard
ocn.sst.deriveheatwaves on the model truthheatwaves on OSTIAevent POD and FAR; onset errorcard
ocn.oc.derivenone: real data onlyBGC-Argo, one float held out at a timeRMSE per depth, CRPScard
ocn.qg.emulatesesmax QG runs → FNO and SFNO at 64² and 128²noneresolution invariance; kinetic-energy spectrumcard
the other cellsper transition, as in the grid aboveas aboveas abovecard

The first card: ocn.ssh.map

Stack the observed L3 cells into y\vect{y}, with H\mat{H} selecting them and Σε\gmat{\Sigma}_\varepsilon their error covariance, and put a prior x∼N(μx,Σx)\vect{x} \sim \mathcal{N}(\gvect{\mu}_x, \gmat{\Sigma}_x) on the field with a space-time kernel. Optimal interpolation gives the analysis

μx∣y=μx+ΣxH⊤(HΣxH⊤+Σε)−1(y−Hμx)\gvect{\mu}_{x \mid y} = \gvect{\mu}_x + \gmat{\Sigma}_x \mat{H}^\top \left( \mat{H} \gmat{\Sigma}_x \mat{H}^\top + \gmat{\Sigma}_\varepsilon \right)^{-1} (\vect{y} - \mat{H} \gvect{\mu}_x)

Here x,μx,μx∣y∈RDx\vect{x}, \gvect{\mu}_x, \gvect{\mu}_{x \mid y} \in \mathbb{R}^{D_x} over the DxD_x grid cells, y∈RDy\vect{y} \in \mathbb{R}^{D_y}, H∈RDy×Dx\mat{H} \in \mathbb{R}^{D_y \times D_x}, Σx∈RDx×Dx\gmat{\Sigma}_x \in \mathbb{R}^{D_x \times D_x} and Σε∈RDy×Dy\gmat{\Sigma}_\varepsilon \in \mathbb{R}^{D_y \times D_y}.

Strong-constraint 4D-Var replaces the static Σx\gmat{\Sigma}_x 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.

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