Weather · Public data

Weather forecast

Sixteen-day weather forecast and recent 7-day history for every world capital.

Open-Meteo Weather Forecast API (ECMWF, NOAA GFS, DWD ICON, Météo-France, UKMO) · CC BY 4.0 · commons_pubdata.weather.forecast

Read Markdown

Registered, not loaded yet: the table is not in the catalog. This page fills in after its first refresh.

Query it with DuckDB.

Bash
lhbox duckdb --catalog commons/pubdata
SQL · 7-day forecast for Madrid, London and Tokyo
SELECT capital_city, day, tmax_c, tmin_c, precipitation_mm, precipitation_prob_pct, wind_max_kmh
FROM commons_pubdata.weather.forecast
WHERE country_code IN ('ES', 'GB', 'JP') AND day BETWEEN current_date AND current_date + 7
ORDER BY capital_city, day;

Read it where you work.

Public, read-only data. With an account, lhbox duckdb attaches the catalog as commons_pubdata; an agent with the LakehouseBox connector opens it with open_public_catalog("commons/pubdata"). Without one, DuckDB reads the public files directly.

More example queries

  • European capitals with heavy rain (> 10 mm) or freezing temperatures in the next week
    SQL
    SELECT f.country_code, f.capital_city, f.day, f.tmin_c, f.tmax_c, f.precipitation_mm
    FROM commons_pubdata.weather.forecast AS f
    JOIN commons_pubdata.reference.countries AS c USING (country_code)
    WHERE c.region = 'Europe & Central Asia'
      AND f.day BETWEEN current_date AND current_date + 7
      AND (f.precipitation_mm >= 10 OR f.tmin_c < 0)
    ORDER BY f.precipitation_mm DESC, f.day;

Know your columns.

ColumnTypeMeaning
country_codestringISO 3166-1 alpha-2 of the capital's country (joins reference.countries)
iso3stringISO 3166-1 alpha-3 of the country
capital_citystringname of the capital city
latitudedoubleWGS84 latitude of the forecast grid point
longitudedoubleWGS84 longitude of the forecast grid point
daydatecalendar day (UTC) of the forecast or analysis
View all 17 columns
is_forecastbooleantrue for today and future days, false for the 7-day recent model analysis
weather_codeintWMO weather interpretation code (0 clear, 1-3 cloudy, 51-67 rain, 71-77 snow, 95-99 thunderstorm)
tmax_cdoublemaximum daily air temperature at 2 m, °C
tmin_cdoubleminimum daily air temperature at 2 m, °C
tmean_cdoublemean daily air temperature at 2 m, °C
apparent_tmax_cdoublemaximum apparent (feels-like) temperature, °C
apparent_tmin_cdoubleminimum apparent (feels-like) temperature, °C
precipitation_mmdoubletotal daily precipitation (rain, showers, snow water equivalent), mm
precipitation_prob_pctintmaximum daily probability of precipitation, 0-100%
wind_max_kmhdoublemaximum daily wind speed at 10 m, km/h
shortwave_radiation_mj_m2doubledaily sum of solar shortwave radiation, MJ/m²

Join keys: country_code, iso3, day.

Before you query.

  1. One row per (country_code, day).
  2. is_forecast is true from the refresh date onwards and false for the preceding 7 days of seamless model analysis (useful to fill the 3-7 day GHCN reporting lag in weather.daily).
  3. Join with weather.daily via weather.stations on (country_code, day) or with calendars.public_holidays on f.country_code = h.country_code AND f.day = h.date.

Source & licence.

Source
Open-Meteo Weather Forecast API (ECMWF, NOAA GFS, DWD ICON, Météo-France, UKMO)
Licence
CC BY 4.0
Attribution
Weather data by Open-Meteo.com (CC BY 4.0), from ECMWF, NOAA, DWD, Météo-France and UK Met Office numerical weather prediction models.
Coverage
~208 world capitals (every capital with coordinates in reference.countries); rolling 23-day window (past 7 days through 15 days ahead), updated daily
Refresh
daily, the whole table replaced; source version n/a
Table
commons/pubdata · weather.forecast · Iceberg v? · browse the catalog
Recipe
pubdata/recipes/weather_forecast.py, registry entry pubdata/registry/weather_forecast.yaml

Source: Open-Meteo Weather Forecast API (ECMWF, NOAA GFS, DWD ICON, Météo-France, UKMO) · CC BY 4.0 · Snapshot shown: not loadedHTML for people. Markdown for agents.