Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.Solving the atmosphere forward in time
A weather model divides the atmosphere into grid boxes and steps the equations of fluid motion, heat and moisture forward a few minutes at a time. The step must be short enough that air does not jump over a grid box in one step, or the calculation explodes. Even with perfect numerics, tiny errors in today’s state grow day by day, so forecasters run many slightly different forecasts, an ensemble, and read the spread as uncertainty.
L. F. Richardson attempted a forecast by hand in 1922; the first computer forecast ran on ENIAC in 1950. Today’s global models have grid spacings near 9 km and ensembles of about 50 members.
- 1. A weather model steps forward…
- 2. If the time step is too long…
- 3. Ensembles express…
Level 1: Beginner
★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.By hand
- Primitive equations: momentum with Coriolis force, hydrostatic balance, continuity, thermodynamics and moisture; unresolved processes (convection, radiation, turbulence) are parameterised.
- Discretisation: finite differences, finite volumes, spectral transforms on the sphere (ECMWF IFS), semi-Lagrangian advection with semi-implicit time stepping.
- CFL condition (Courant, Friedrichs and Lewy, 1928): an explicit scheme for advection at speed c needs Courant number C = cΔt/Δx at most about 1.
- Numerical errors: first-order schemes damp waves (numerical diffusion); second-order schemes shift their phase (dispersion).
- Predictability: errors grow roughly exponentially until they saturate at the difference between two random states; the ensemble mean saturates at the climatological standard deviation, a single forecast at √2 times it.
- Verification: RMSE and anomaly correlation for deterministic forecasts; CRPS, spread–skill and reliability for ensembles.
- 1. The CFL condition bounds…
- 2. A single forecast's error saturates at…
- 3. A proper score for ensembles is…
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 25 minUndergraduate students and practising engineers.Advection schemes and stability
Exercise 1.
- Linear advection u_t + u_x = 0 of a Gaussian bump on a periodic domain with 100 points, run once around.
- First-order upwind, second-order Lax–Wendroff, and a Fourier spectral derivative with RK4 time stepping.
- Courant numbers 0.5, 1 and 1.25.
Practice.
- Respect stability limits and leave a margin; semi-implicit and semi-Lagrangian schemes allow longer steps.
- Check conservation and spectra, not only point errors.
- Use ensembles for anything beyond a few days, and calibrate them.
- Verify against a baseline (persistence, climatology, a reference model) with area weighting on the sphere.
- Tools: the ECMWF IFS and open OpenIFS, WRF and MPAS for regional and global modelling, Dedalus and xarray for experiments and analysis.
import numpy as np
def lax_wendroff(u, C):
up, um = np.roll(u, -1), np.roll(u, 1)
return u - 0.5 * C * (up - um) + 0.5 * C**2 * (up - 2 * u + um)
u = np.exp(-((np.arange(100) / 100 - 0.5) / 0.05) ** 2)
for _ in range(200): # Courant number 0.5: one revolution
u = lax_wendroff(u, 0.5)- 1. Semi-Lagrangian schemes allow…
- 2. Errors on the sphere should be…
- 3. A widely used regional weather model:
Level 3: Advanced
★★★★☆ Advanced⏱ 25 minGraduate level, with full derivations and proofs.Theory
Stability from Fourier analysis. For a mode e^(ikx) the upwind scheme multiplies the amplitude by 1 − C(1 − e^(−ikΔx)) each step. Its modulus is at most 1 exactly when 0 ≤ C ≤ 1. Lax–Wendroff has the same limit. A spectral derivative is exact for each mode, so stability is set by the time stepper: RK4 is stable on the imaginary axis up to about 2.8, and the largest wavenumber π/Δx gives C ≤ 2.8/π ≈ 0.9.
Accuracy. At C = 0.5 after one revolution, upwind kept only 0.447 of the bump’s height, Lax–Wendroff 0.889 with trailing ripples, and the spectral scheme was within 5e-4 of exact. At C = 1 both finite-difference schemes shift the grid exactly; beyond the limit every scheme exploded.
Predictability. In Lorenz’s scaling one time unit of Lorenz-96 is about five days. An initial error of 0.2, a few percent of the climatological standard deviation 3.6, grew to 1.2 after one unit and 3.4 after two. The ensemble mean averages out unpredictable details and so drifts towards climatology, which lowers its RMSE below that of a single forecast at long leads.
- 1. Upwind is stable for Courant numbers…
- 2. The spectral RK4 limit is about…
- 3. At C = 0.5 upwind kept…
Level 4: Expert
★★★★★ Expert⏱ 30 minResearchers: original papers and open problems.How fast do forecast errors grow in a chaotic model, and what do ensemble forecasts add over a single control forecast?
History.
- L. F. Richardson (1922) attempted the first numerical forecast; J. Charney, R. Fjørtoft and J. von Neumann (1950) ran the first computer forecast.
- E. Lorenz (1963, 1969) discovered chaos and the limits of predictability.
- ECMWF and NCEP began operational ensemble forecasts in 1992.
- J. Matheson and R. Winkler (1976) and T. Gneiting and A. Raftery (2007) established the CRPS and proper scoring rules.
Exercise 2. Lorenz-96 with a perfect model; 40 start dates 2 time units apart; analyses with error 0.2; 20 members perturbed by 0.2 around the analysis. Seed 0 (climatological standard deviation 3.6):
| lead (time units) | control RMSE | ensemble-mean RMSE | spread | CRPS |
|---|---|---|---|---|
| 0.5 | 0.48 | 0.49 | 0.55 | 0.25 |
| 1 | 1.2 | 1.2 | 1.2 | 0.58 |
| 2 | 3.4 | 2.8 | 2.6 | 1.5 |
| 3 | 4.4 | 3.3 | 3.2 | 1.9 |
| 5 | 4.8 | 3.7 | 3.6 | 2.2 |
- Error growth: from 0.2 to 3.4 within 2 time units (about 10 days); by lead 3 the control forecast (4.4) is worse than a climatological forecast (3.6).
- Saturation: at lead 5 the ensemble mean is at the climatological sd (3.7 against 3.6) and the control near √2 times it (4.8 against 5.1).
- Spread matched the ensemble-mean error within 15% at every lead, as it should with a perfect model.
- Seeds 1 and 2 at lead 3: control 4.4 and 4.3, ensemble mean 3.4 and 3.2.
Numerical weather prediction in practice
- Global centres: ECMWF, NCEP, the UK Met Office, DWD, JMA and others run global models several times a day with 4D-Var or hybrid analyses.
- Ensembles: around 50 members at ECMWF, with stochastic physics to represent model uncertainty.
- Verification: WMO scorecards of RMSE, anomaly correlation and CRPS against analyses and observations.
- Machine learning: learned models now compete with physics-based ones in medium-range skill (next topic).
References
- L. F. Richardson (1922). Weather Prediction by Numerical Process. Cambridge University Press.
- J. G. Charney, R. Fjørtoft and J. von Neumann (1950). “Numerical integration of the barotropic vorticity equation.” Tellus.
- E. N. Lorenz (1996). “Predictability: a problem partly solved.” ECMWF Seminar on Predictability.
- P. Bauer, A. Thorpe and G. Brunet (2015). “The quiet revolution of numerical weather prediction.” Nature.
- T. Gneiting and A. E. Raftery (2007). “Strictly proper scoring rules, prediction, and estimation.” Journal of the American Statistical Association.