Weather data

Historical, station and forecast weather in Python: Open-Meteo, Meteostat, NOAA GHCN and ERA5, climate normals and anomalies, heat index, rainfall totals and weather maps, with the unit, time-zone and rate-limit traps.

Left, annual temperature anomalies from the 1991-2020 normal at Washington Reagan National Airport for 83 complete years from 1937 to 2024 as coloured stripes, blue for colder and red for warmer years, red concentrated in recent decades; right, days at or above 35 °C per year by decade, from 5.0 in the 1940s to 15.4 in the 2010s. weather data is a record of a place: read its units, its gaps and its baseline194019802020annual anomaly vs 1991-2020, 83 years'40s'50s'60s'70s'80s'90s'00s'10s'20sdays at 35 °C or more per year, by decade

Weather data looks simple, a temperature and a date, but the same day at the same place comes out differently from different sources, units and time zones. The guides here get historical weather from the Open-Meteo archive, station records from Meteostat and NOAA GHCN, ERA5 reanalysis straight from the cloud, and past forecasts to score their accuracy. They compute normals, anomalies, heat index and rainfall totals, draw weather maps, and fix the unit, time-zone, gap and rate-limit traps.

Every number comes from a run for Washington Reagan National Airport, mostly for 2024. The station record shows 2024 as the warmest year since 1937, 1.60 °C above the 1991-2020 normal; the one-day temperature forecast was off by 1.84 °C on average; Meteostat reported 314 mm of rain where the official record has 955 mm; and ERA5 ran 0.70 °C cooler than the station, with temperature correlating at 0.996 but daily rain only at 0.75.

🧭 Start with the concepts

The ideas the how-to guides below assume you already have.

⚙️ Then do the task

Step-by-step walkthroughs with code you can copy and adapt.

Show every how-to guide in this topic

🔧 When it breaks

The errors this topic produces, with the cause explained rather than just the command.

Related topics

Subjects that keep coming up alongside this one, most overlap first.

Keep browsing

Weather data sits in Imagery & point clouds. Every topic on the site is listed on the topics index.