curriculum · intro to forecasting · course 2 of 7 · ~18 min

Inside a Weather Model

What a forecast actually is: physics on a grid, a speed limit, and a butterfly.

A forecast is a calculation, not an opinion

Here is the entire idea of numerical weather prediction in one sentence: the atmosphere obeys physics, so if you know its state now, you can compute its state a few seconds from now, and then do that a few hundred thousand more times until you reach Saturday. The equations involved (Newton’s laws applied to air, plus thermodynamics and moisture) have been known since the 1800s. They are called the primitive equations, and no computer on Earth can solve them exactly. Every weather model ever built is a scheme for solving them approximately, and every difference between models comes down to which approximations they chose.

The first person to try, Lewis Fry Richardson in 1922, did it by hand and got a spectacularly wrong answer: a pressure change of 145 hPa in six hours, when reality does maybe 10 in a bad storm. He also imagined a “forecast factory” of 64,000 human calculators working in parallel. He was wrong about the details and right about everything else. Today’s forecast factories are just faster.

The world, chopped into cells

A computer cannot store a continuous atmosphere, so a model divides the world into a 3D grid of boxes and stores a single value of each quantity (wind, temperature, pressure, moisture) per box. That one decision, the grid spacing, is the most important number in any model’s spec sheet, because it draws a hard line between what the model simulates and what it cannot even perceive.

The dashed line is the real coastline; the cells are what the model believes. A grid can only represent features a few cells wide. Anything smaller is rounded to “all water” or “all land”, and the winds it would have caused are gone with it.

The rule of thumb is harsher than it sounds: a feature needs to span roughly four to seven grid cells before a model can simulate it doing anything, not just one. On a 13 km grid, that means nothing much smaller than ~60 km exists: no Bellingham Bay, no San Juan Islands, no gap winds, no sea breeze front. The model isn’t bad at these things; they are simply not in its universe.

The third dimension

The grid is a stack, not a sheet. Under each map cell sits a column of layers, and how a model arranges them is a craft of its own. Layers hug the terrain near the ground and flatten out with altitude, with a deliberate bias: many thin layers near the surface, where friction, stability, and everything from course 1 lives, and thick cheap ones in the stratosphere, where not much varies.

model top (flat) — ~20 km uplowest layers follow the terrain
operational models run 40–90 levels; adding levels costs like adding cells
The grid is 3D: under every map cell sits a column of layers on a terrain-following coordinate (WRF calls it eta). Layers crowd near the ground, where a surface-wind forecast is won or lost (the lowest few sit within tens of meters of the surface), and flatten out with height.

The speed limit that rules everything

The model advances in timesteps: compute all the forces, nudge every cell forward a few seconds, repeat. How big can a step be? There is a real physical answer, and it has teeth. In one step, nothing (not a gust, not a pressure wave) may travel farther than one grid cell. If it does, information skips over cells without touching them, and the arithmetic doesn’t just get inaccurate, it detonates.

stable, but numerical diffusion smears the peak every step
The dashed curve is the true answer: the blob should glide right, unchanged. The solid curve is what the grid computes. Nothing may travel more than one cell per timestep (C ≤ 1, the CFL condition), so halving the grid spacing forces halving the timestep too, and a 3× finer nest costs roughly 27× more compute, not 9×.

This is the CFL condition (Courant–Friedrichs–Lewy, 1928, older than the computer), and it is why resolution is so brutally expensive. Halve the grid spacing and you pay 4× for the extra columns, then 2× again because each step may only cover half the distance: roughly 8× the compute for one halving. It is also a real operational failure mode. Push a model too hard over steep terrain and a run can blow up mid-forecast, which is why every operational setup, frothy included, leaves a safety margin on its timesteps.

Notice what the stable settings do, though: the blob survives but smears. Numerical schemes trade a little artificial smoothing for stability, which is one more reason small sharp features (a gust front, a convergence line) come out of models softer than they arrive in real life.

What happens between the cells

Plenty of weather is smaller than any affordable grid cell: individual clouds, thermals, raindrops, the turbulence around a headland. A model cannot simulate them, but it cannot ignore them either. Clouds decide how much sunlight reaches the ground, and turbulence decides how much fast air gets mixed down to your kite. So models carry a set of stand-ins called parameterizations: formulas that estimate the net effect of the unresolved stuff from what the grid can see. “Given this humidity and this temperature profile, assume this much cloud.”

Parameterizations are where models earn their personalities. Two models with identical grids will disagree because one’s boundary-layer scheme mixes more aggressively than the other’s, and that one will systematically bring more wind down to the surface. When you hear that a model “overcalls wind in stable conditions,” you are almost always hearing about a parameterization. They are educated guesses, endlessly tuned, never perfect, and they are the main reason forecasting is still partly a craft.

The butterfly has a seat at the table

Suppose we did everything right: perfect equations, tiny cells, flawless physics. There is still a wall, and it is built into the atmosphere itself.

drag to rotateTwo atmospheres launched one part in a million apart. The blue and orange trajectories overlap perfectly, until the error compounds and they end up on opposite wings. No better measurement fixes this; it only delays it. This is why forecasts have an expiry date.

In 1961 Edward Lorenz re-ran a weather simulation from what he thought were the same starting numbers (he had retyped them rounded to three decimal places) and watched the new run diverge from the old one completely. The atmosphere is chaotic: tiny differences in the starting state grow exponentially, doubling every couple of days, until they swamp the signal. Since we can never measure the whole atmosphere perfectly (course 4 is about how hard we try), every forecast starts microscopically wrong and is doomed to drift. Useful skill for day-to-day weather runs out somewhere past a week, not because meteorologists are timid but because the universe declines to cooperate.

The honest response to chaos is to stop pretending one answer exists: run the model many times and read the spread. That idea, the ensemble, gets its own section in the next course.

What to keep

  • A model = known physics + a grid + a timestep + parameterizations for what falls between cells.
  • Features smaller than ~4–7 grid cells effectively don’t exist to a model. Check the grid before trusting a forecast for a small place.
  • CFL: finer grids force smaller timesteps; halving the spacing costs ~8× the compute. Resolution is bought, not chosen.
  • Model “personality” (biases) mostly lives in parameterizations.
  • Chaos caps all forecasts regardless of compute; error doubles every few days no matter whose model it is.