Network Pulse

← All notes

Weather, disruptions and how the buses ran

Status: built 2026-10-05. Weather is recorded hourly for every stop we observe, backfilled to the first day of punctuality history. Disruptions (BODS SIRI-SX) are recorded GB-wide every 15 minutes. In the South Yorkshire store the two are laid against every scored journey. The first comparisons are pending the first run there.

The question this answers is "was it the weather, the roadworks, or the operator?" The answer comes from comparing each journey with its own line's normal running, not from comparing wet days with dry ones. Most of this note explains why.

What is recorded

Weather

Source Met Office UKV model at 2 km, archived hour by hour, via the Open-Meteo historical-forecast API
Fields rain (and how much fell as snow), temperature, wind, gusts, visibility, cloud, weather type
Grid one point per grid cell that holds a stop we observe: 10 km GB-wide (1,497 points); 3 km in South Yorkshire (156 points), plus the first stop of every cross-boundary journey reported on
Time hourly, stored in UTC, reported in local time
History GB from 3 Aug 2026 (the first day of punctuality history); South Yorkshire from 6 Sept

Every stop is assigned to the point for its cell. The 4,100 observed stops that NaPTAN holds without coordinates are placed using the timetable's own positions.

It is modelled weather, not a rain gauge. We checked it against three Environment Agency rain gauges around Sheffield over the same 27 days:

Gauge Days the model got wet or dry right (1 mm or more) Daily correlation Model total vs gauge
082732 (west Sheffield) 22 of 27 0.84 26.0 mm vs 34.7 mm
000008 (north) 26 of 27 0.74 8.8 mm vs 11.8 mm
084532 (east) 21 of 27 0.86 8.3 mm vs ~13.8 mm*

*This station publishes two rainfall measures, so its raw sum (27.6 mm) is counted twice. Half of it is shown.

So the model is reliable for telling a wet hour from a dry one. It under-reads totals by roughly a quarter to a third. Don't quote its millimetres as measured rain.

Disruptions

The full national SIRI-SX feed (about 420 situations from about a dozen publishers) is fetched every 15 minutes. For each situation we keep: - its validity periods; - the lines it names (operator + line), and the stops it names; - when we first and last saw it.

A situation that leaves the feed is kept and marked, never deleted. That is the only way to say later how long it was in force. Whenever the set of situation versions changes, the raw XML is archived too, so a parser fix can be replayed over history.

Recording cannot be backfilled. The feed only serves what is published now. GB history starts 5 Oct 2026; South Yorkshire's starts 24 Sept 2026.

The feed never names journeys, and its severity is "unknown" throughout. So the journeys a disruption touched are inferred from the named line, the named stop, the validity period and the timetable's trips calling there (see the earlier note on matching disruptions to services).

Why "wet days against dry days" gives the wrong answer

Disruptions sit on particular lines. Some lines are late every day. Rain falls more on some weekdays than others in any month. So comparing all disrupted journeys with all undisrupted ones mostly measures which lines were disrupted, not what the disruption did.

Instead each journey is compared with its own cell: the same operator, the same line, the same time band (morning peak, daytime and so on), and the same day type (weekday, Saturday, Sunday). The cell's normal is taken from hours that were dry and undisrupted.

  • Expected is what that cell normally achieves.
  • Actual is what the journeys did.
  • The gap is the effect, in percentage points.

A cell with too little normal running to judge (fewer than 30 timing-point observations, or fewer than 10 measurable journeys) is left out of both sides. It is never compared against nothing.

The comparison is made three ways:

  • By rain at the journey's first stop, in the hour it left. Disrupted journeys are left out, so rain isn't blamed for a road closure.
  • Disrupted against undisrupted, only on days disruptions were recorded.
  • Per disruption: the journeys each situation touched while it was in force. For each one: punctuality against normal, journeys lost against normal, excess lost miles, and how many of its named stops were actually served.

The rules every figure keeps

  • Punctuality is measured at timing points, termini excluded, departure basis. On time means from 1 minute early to 5 minutes 59 seconds late (the Traffic Commissioner standard, used for every figure since 9 October 2026). These are the same rules as the punctuality report.
  • Lost means scheduled, watched, and no bus matched. Unreported is not the same as did not run, so this is the ceiling. Journeys we were not watching are in neither half of the ratio.
  • Disruptions are known only from the first whole day of recording. Before that a journey is "not known", never "undisrupted". The comparisons use recorded days only, because that is where the baseline comes from. Mixing in earlier weeks would compare September with October, not wet with dry.
  • A journey is matched to a disruption from its timetabled calls, not from where buses were seen. A journey the disruption caused to be lost has no sightings, so matching on sightings alone would show disrupted services as never losing a journey. The first version did exactly that, and it was fixed before any figure was used.
  • "Disrupted" is broad. A journey counts as disrupted if any situation in force names its line and a stop it calls at. Town-centre notices and football-day diversions name hundreds of stops, so close to half of all journeys qualify. The per-disruption comparison is the one to read; the overall disrupted-against-undisrupted figure is mostly about those blanket notices.
  • Miles in the South Yorkshire store are stop to stop in straight lines, about 13% short of road distance. Both halves of every ratio use the same basis, so percentages hold, but absolute miles are an under-count.
  • A gap is an association, not proof. Wet days are also darker days and heavier-traffic days, and two weeks of data contains only a handful of wet peaks. Quote a weather effect only alongside its count of journeys compared.

Where it lives

Network-wide store South Yorkshire store (DataHub)
Weather points weather_points, weather_stops bods.weather_point, bods.weather_stop
Hourly weather weather_hours; weather_area_hours per admin area (weighted by stops) bods.weather_hour; views v_weather_hour, v_weather_daily, v_weather_network_daily
Disruptions sx_situations, sx_periods, sx_lines, sx_stops, sx_pulls bods.sx_* (from 24 Sept), matched to journeys in bods.sx_call
Journeys with conditions — bods.journey_condition; view v_condition_journey
Comparisons — v_effect_weather, v_effect_disruption, v_effect_situation, v_condition_daily
Each reading with its weather weather_area_hours joins punctuality_daily on date, area and hour v_punctuality_weather

The joined analysis is in the South Yorkshire store first, because that is where the disruption history and journey-level scoring already exist. The network-wide store records both feeds now so the same analysis has history to run on when it is built there.