November 2026 · Politecnico di Milano
Atmosphere and Ocean Dynamics — Lecture 10
Prof. Dr. Pedro da Silva Peixoto
Applied Mathematics
Instituto de Matemática e Estatística
Universidade de São Paulo
Visiting Professor at MOX Lab
Politecnico di Milano
Previous knowledge
The initial state comes from an inverse problem; the newest models learn the step from it
(Bauer et al. 2015; Hersbach et al. 2020; Lam et al. 2023)
But: where does the initial state come from?
Bjerknes’ programme, industrialized: observe, assimilate, integrate the laws, many times over
(Bauer et al. 2015; Kalnay 2003)
But: irregular, mostly indirect, and short of winds. How do they become a state on the grid?
Satellites give the numbers, in situ observations the anchor; neither is a model state
(Modigliani et al. 2026) · Figure: after wmo.int: Global Observing System
But: how is the best fit found, with about \(10^9\) unknowns?
The initial state is the solution of an inverse problem, with the model inside
(Kalnay 2003, Sect. 5.6)
\[ J[x(t_0)] = \underbrace{\tfrac12\,[x(t_0)-x^b]^{\mathsf T}\mathbf B_0^{-1}[x(t_0)-x^b]}_{J_b\text{: misfit to the background}} + \underbrace{\tfrac12\sum_{i=0}^{N}[H(x_i)-y^o_i]^{\mathsf T}\mathbf R_i^{-1}[H(x_i)-y^o_i]}_{J_o\text{: misfit to the observations}}, \qquad x_i = M(t_0, t_i)[x(t_0)] \] \(t_0,\dots,t_N\): observation times in the window; \(x(t_0)\): initial state (the unknown); \(x_i = x(t_i)\); \(x^b\): background (last forecast); \(y^o_i\): all observations at \(t_i\); \(H\): observation operator (state → measured, e.g. radiances); \(M(t_0, t_i)\): the model run from \(t_0\) to \(t_i\); \(\mathbf B_0\), \(\mathbf R_i\): error covariances
But: a reanalysis needs decades of such analyses. With which model?
4D-Var: the model trajectory that best fits the last forecast and the observations
(Kalnay 2003, Sect. 5.6.3, eqs. 5.6.14–5.6.20, Fig. 5.6.2)
Download it: free (CC BY 4.0) from the Copernicus Climate Data Store, cds.climate.copernicus.eu: ERA5 on single levels · ERA5 on pressure levels; from Python with cdsapi
The best estimate of the past atmosphere: one model and all the observations, together
(Hersbach et al. 2020; Bauer et al. 2015) · Data: (Copernicus Climate Change Service 2018b, 2018a)
A learned model is only as good as the reanalysis it learns from, and that reanalysis is physics
(Hersbach et al. 2020; Lam et al. 2023)
For a century, since Richardson, every forecast discretized the equations of motion. Since 2022 (first preprints on the timeline), models learned from data rival the best physics-based forecasts; on 25 February 2025 ECMWF made its AI model, AIFS, operational.
But: what exactly do they learn?
In three years, learned models went from a preprint to an operational forecast
(Lam et al. 2023; Bi et al. 2023; Lang et al. 2024)
| Year | Model | Who | What was new |
|---|---|---|---|
| 2022 | Keisler GNN | Keisler (arXiv) | a graph neural network on a spherical mesh, encoder–processor–decoder; IFS-like skill at 1° |
| 2022 | FourCastNet | NVIDIA, LBNL, Caltech | Fourier neural operator; the first at the IFS’s own 0.25° |
| 2022 | Pangu-Weather | Huawei | 3D transformer; the first to claim to beat the IFS deterministic forecast |
| 2022 | GraphCast | Google DeepMind | a graph network on an icosahedral multi-mesh; better than the IFS on 90% of 1380 targets |
| 2023 | GenCast | Google DeepMind | diffusion: samples possible futures; better than the ECMWF ensemble on 97% of 1320 targets |
| 2023 | NeuralGCM | Google, ECMWF, MIT | hybrid: a differentiable spectral core and learned physics |
| 2025 | AIFS | ECMWF | graph transformer; the first operational data-driven model at a major centre (open) |
Each year a new kind of network: graph, Fourier operator, transformer, diffusion, hybrid
(Keisler 2022; Pathak et al. 2022; Bi et al. 2023; Lam et al. 2023; Price et al. 2025; Kochkov et al. 2024; Lang et al. 2024)
\[x^{n+1} = \Phi_\theta\!\left(x^{n}, x^{n-1}\right), \qquad \theta = \arg\min_\theta \sum_n \bigl\|\Phi_\theta(x^n, x^{n-1}) - x^{n+1}\bigr\|^2\]
\(x^n\): the whole state at time \(n\) (all variables, all points); \(\Phi_\theta\): the network, with parameters \(\theta\)
But: what does \(\Phi_\theta\) look like inside?
One box of the chain replaced: the model is learned, the initial state still comes from physics
(Hersbach et al. 2020; Lam et al. 2023)
Different networks, one task: a map from the state now to the state 6 hours later
(Pathak et al. 2022; Lam et al. 2023; Bi et al. 2023; Chen et al. 2023; Lang et al. 2024; Price et al. 2025; Kochkov et al. 2024)

Lam et al. (2023), Fig. 1, CC BY 4.0
36.7 million parameters; trained on ERA5 1979–2017, rollouts of 1 to 12 steps; about 4 weeks on 32 TPUs. A 10-day forecast in under a minute on one TPU (the IFS: about an hour on a supercomputer)
But: CFL forbids explicit steps of 6 hours on a 28 km grid. How can it?
Grids are back: a learned operator on an icosahedral mesh, as in finite volumes
(Lam et al. 2023; Keisler 2022) · Figure: arxiv.org/abs/2212.12794
The learned step replaces the model; observations, assimilation and reanalysis remain
(Lang et al. 2024; Hersbach et al. 2020; Bauer et al. 2015)
(Lam et al. 2023; Courant et al. 1928)
A learned step is a stencil: it must reach as far as the fastest signal travels in one step
(Lam et al. 2023; Courant et al. 1928)

GraphCast (blue) and ECMWF’s HRES (black), 500 hPa geopotential, forecasts of 2018: error (RMSE, m²/s²) and anomaly correlation (ACC) against lead time; shading: 95% intervals. Lam et al. (2023), Fig. 2a, c, CC BY 4.0
What works
What does not, yet
Excellent average forecasts; extremes, conservation and the physics they rest on remain open
(Lam et al. 2023; Price et al. 2025; Rasp et al. 2024; Ben Bouallègue et al. 2024; Moldovan et al. 2026) · AIFS: ecmwf.int · Figure: arxiv.org/abs/2212.12794
Blurring in the tiny AI model: a forecast trained on the mean-square error, 5 days ahead, loses the amplitude of the waves
Excellent on average; the rare, the extreme and the conserved still need physics models
(Zhang et al. 2026; Price et al. 2025; Kochkov et al. 2024)
4D-Var: the analysis is the model trajectory that best fits the background and the observations
But: without a physics model anywhere, who checks the learned atmosphere?
The last box of the chain is being learned: from observations straight to the forecast
(Allen et al. 2025; Sun et al. 2025)
The likely future: physics and learning together, not one replacing the other
(Kochkov et al. 2024; Bodnar et al. 2025; Price et al. 2025; Zhong et al. 2025)
Notebook 10a (open in Colab · download): train and run an AI weather model on a laptop, in numpy.
Lorenz-96: an “atmosphere” of 40 numbers around a latitude circle
Predict, run, explain: which forecasts better, the linear model or the small network?
Train and run an AI weather model on a laptop, in numpy
(Lorenz 1996; Lam et al. 2023)
A learned step is a numerical method whose coefficients were fitted instead of derived
(Lorenz 1996)
Notebook 10a (open in Colab · download): an AI emulator to train and test.
AI replaces one box of the chain: the observations and the physics around it remain
Reading: (Bauer et al. 2015; Hersbach et al. 2020; Lam et al. 2023; Rasp et al. 2024; Zhang et al. 2026)
| Topic | What you can now do |
|---|---|
| History | tell the story from Halley to the 1950 forecast, and why rotation matters |
| Laws | derive the equations, reduce them to shallow water, find their waves and balances |
| Vertical | treat the vertical: buoyancy, internal waves, convection, mountain waves |
| Grids | discretize them with finite differences and volumes; stability, CFL, conservation |
| Spectral, FE | spectral methods and finite elements: the cores of IFS and LFRic |
| Models | follow the models from 1950 to today: grids, the vertical, the tests |
| AI | read the chain of a modern forecast and what learned models change in it |
Thank you! The problem is old; the tools are yours now
(Bjerknes 1904; Bauer et al. 2015)
Slides kept for reference, not shown in class.
China
Russia
India
Brazil, South Africa
Good models need good reanalyses and benchmarks: built by those who own the observations
(Chen et al. 2023; Zhong et al. 2025; Nguyen et al. 2025; Rowell and Kupssinskü 2026) · Marchuk: habr.com: AIRI