curriculum · deep dive into wrf · course 3 of 6 · ~14 min

Feeding the Model

Initial conditions, lateral boundaries, and the parent model's grip on everything you forecast.

A regional model owns the middle, rents the edges

WRF over the Pacific Northwest simulates a box a thousand kilometers wide. The atmosphere does not stop at the box. Tomorrow’s weather is, in large part, air that is outside the box today, so a limited-area model has two dependencies it can never shake: someone must tell it how the atmosphere looks at hour zero (initial conditions), and someone must keep telling it what is arriving at the walls (lateral boundary conditions). Both come from the parent model — GFS in frothy’s stock configuration — and both are manufactured by the ungrib → metgrid → real leg of the toolchain.

Hour zero: a borrowed atmosphere

Here is a humbling fact about every RASP-style local model: it does no data assimilation of its own. The intro arc’s course 4 described the global observing system funneling into the national centers’ analyses; a local WRF simply borrows the result. real.exe takes the parent’s analysis, interpolated onto your grid and levels, and calls it hour zero. Your model starts knowing exactly what its parent knew — no more, no less, minus interpolation.

Borrowed atmospheres come slightly wrinkled. The parent’s fields were balanced on its grid, against its smooth terrain; dropped onto sharper mountains and a crisper coastline, they are subtly inconsistent, and the model spends its first hours shaking that out — spurious waves radiating away, the boundary layer discovering the new terrain. This is spin-up, and the operational rule is simple: don’t let anyone act on the model’s first few hours. frothy honors it two ways. The overnight runs begin at local midnight, so they are fully limbered before the morning. The mid-day refresh runs do cold-start in daylight — but their forcing data takes hours to arrive and the integration takes more, so by the time a refresh’s frames reach the map, its spin-up hours are already describing the past. The youngest forecast hour anyone can plan a session on sits five-plus hours into the run, past the worst of the wobble — and the bench’s paired comparisons confirm the refreshes match or beat the older run’s mature hours for the same clock times.

The parent also hands over fields you might not think of as “weather”: soil temperature and moisture at four depths (the land’s memory of the last month, and the fuel gauge for tomorrow’s thermals) and the temperature of the water. That last one deserves respect around here — the ~11 °C Salish Sea is the anchor of the whole stable-marine-layer story from the intro arc, and the model can only know it as well as its parent (helped by a time-averaged surface field WPS prepares, the TAVGSFC constant, precisely because coarse skin-temperature snapshots are noisy around complex coastlines).

The walls: where the future leaks in

free interior: the actual forecast■ specified zone (1 cell): parent’s values, verbatim■ relaxation zone (4 cells): nudged toward the parent
The parent model holds the outer domain by its edges. The outermost ring of cells (the specified zone) is overwritten with the parent’s answer every timestep, interpolated between its 3-hourly updates. The next four rings (the relaxation zone) are nudged toward it, weaker with depth, so the hand-off doesn’t leave a seam. Everything inside is WRF’s to forecast — which is why domain edges belong far from the water you care about.
namelist.input — &bdy_control (frothy, PNW region)
 nested                              = .false., .true., .true.
The total grip: five cells of boundary treatment, split into the two zones below. Wider buys a smoother hand-off at the cost of more of your domain being the parent’s opinion rather than WRF’s.
tap a highlighted lineExcerpt from the file as it runs today; lines with a marker have a story.

The boundary file real.exe writes (wrfbdy_d01) contains the parent’s forecast at 3-hour intervals — interval_seconds = 10800 elsewhere in the namelist. Between updates, WRF interpolates linearly in time. Three hours is an eternity for a front; a system crossing the wall mid-interval arrives slightly smeared, which is one honest reason to keep walls far from the water you sell forecasts for, and one real advantage of frothy’s HRRR-fed variant, whose parent updates hourly.

Two truths follow from the walls, and they echo the intro arc’s advice about checking the parents on big days. First, garbage in, garbage out is enforceable physics here: if GFS misplaces the low offshore, frothy inherits the error through every wall, three hours at a time, and no amount of inner-domain brilliance can manufacture information the boundaries withheld. Second, the domain must be big enough that the weather you care about is made inside it: a sea breeze needs room for the land–sea thermal contrast to build, a convergence zone needs the terrain that splits the flow. d01’s thousand-kilometer reach is not generosity, it is the minimum lease on atmosphere required to grow PNW weather from imported ingredients.

Nests feed nests

Inside d01 the same contract repeats at better terms: d02’s walls are fed by d01 every d01 timestep (~a minute of model time, not three hours), and d03’s by d02. And with feedback = 1 — two-way nesting, from the intro arc — the children repay their parents: where a nest overlaps its parent, the nest’s finer answer replaces the parent’s each step, so resolving the strait improves the very flow that feeds the strait’s own boundaries. The whole ladder is a supply chain of atmospheres, global analysis at the top, 667-meter cells at the bottom, each level living inside the last one’s picture of the world.

What to keep

  • A local WRF borrows its starting atmosphere from the parent’s analysis — it assimilates nothing itself.
  • The first hours are spin-up. Start runs before the hours that matter — or publish late enough that spin-up only ever describes the past, which is how the mid-day refreshes stay honest.
  • Boundaries are a 1-cell dictatorship plus a 4-cell negotiation; inside that, the forecast is WRF’s own.
  • d01’s walls update every 3 h from GFS (hourly from HRRR); nests feed nests every parent timestep.
  • Parent errors enter through every wall. Size the domain so your weather is grown inside, not imported.