city_id int64 53.7k 13.6M | year int64 1.99k 2.03k | white_christmas int64 0 1 | snow_depth_cm_dec25_0700 float64 0 149 | snowfall_dec25 int64 0 1 | snowfall_cm_dec25 float64 0 39.6 | snow_depth_cm_dec25_max float64 0 150 | precip_mm_dec25 float64 0 397 | temp_mean_c_dec25 float64 -41.47 34.3 | temp_max_c_dec25 float64 -39.22 40.2 | temp_min_c_dec25 float64 -45.77 29.5 | wind_speed_max_ms_dec25 float64 0.65 26.7 |
|---|---|---|---|---|---|---|---|---|---|---|---|
53,654 | 1,985 | 0 | 0 | 0 | 0 | 0 | 0.21 | 25.83 | 29.16 | 23.92 | 6.73 |
53,654 | 1,986 | 0 | 0 | 0 | 0 | 0 | 0.11 | 26.83 | 29.46 | 24.89 | 7.06 |
53,654 | 1,987 | 0 | 0 | 0 | 0 | 0 | 1.63 | 26.58 | 29.35 | 24.91 | 5.53 |
53,654 | 1,988 | 0 | 0 | 0 | 0 | 0 | 5.07 | 26.17 | 28.11 | 24.99 | 7.24 |
53,654 | 1,989 | 0 | 0 | 0 | 0 | 0 | 0.01 | 26.08 | 28.95 | 24.19 | 6.66 |
53,654 | 1,990 | 0 | 0 | 0 | 0 | 0 | 0.02 | 25.83 | 29.29 | 23.82 | 7.18 |
53,654 | 1,991 | 0 | 0 | 0 | 0 | 0 | 0 | 25.73 | 29.45 | 23.79 | 7.13 |
53,654 | 1,992 | 0 | 0 | 0 | 0 | 0 | 1.08 | 26.45 | 29.4 | 24.96 | 5.37 |
53,654 | 1,993 | 0 | 0 | 0 | 0 | 0 | 0.15 | 26.75 | 29.74 | 25.25 | 5.79 |
53,654 | 1,994 | 0 | 0 | 0 | 0 | 0 | 0 | 26.09 | 29.06 | 24.42 | 7.19 |
53,654 | 1,995 | 0 | 0 | 0 | 0 | 0 | 0.76 | 26.59 | 30 | 24.53 | 7.05 |
53,654 | 1,996 | 0 | 0 | 0 | 0 | 0 | 0 | 25.73 | 28.94 | 23.88 | 7.74 |
53,654 | 1,997 | 0 | 0 | 0 | 0 | 0 | 2.95 | 26.07 | 28.44 | 24.77 | 5.56 |
53,654 | 1,998 | 0 | 0 | 0 | 0 | 0 | 0 | 26.56 | 30.2 | 24.76 | 7.58 |
53,654 | 1,999 | 0 | 0 | 0 | 0 | 0 | 0.02 | 25.75 | 28.58 | 24.13 | 7.21 |
53,654 | 2,000 | 0 | 0 | 0 | 0 | 0 | 0.68 | 26.91 | 29.22 | 25.51 | 6.86 |
53,654 | 2,001 | 0 | 0 | 0 | 0 | 0 | 0 | 26.72 | 30.35 | 24.65 | 7.61 |
53,654 | 2,002 | 0 | 0 | 0 | 0 | 0 | 0.12 | 26.83 | 29.75 | 25.28 | 5.75 |
53,654 | 2,003 | 0 | 0 | 0 | 0 | 0 | 0 | 26.13 | 29.94 | 23.76 | 7.36 |
53,654 | 2,004 | 0 | 0 | 0 | 0 | 0 | 0 | 26.06 | 29.72 | 23.73 | 7.14 |
53,654 | 2,005 | 0 | 0 | 0 | 0 | 0 | 0 | 26.16 | 30.59 | 24.09 | 8.61 |
53,654 | 2,006 | 0 | 0 | 0 | 0 | 0 | 0.01 | 27.4 | 30.64 | 25.73 | 7.73 |
53,654 | 2,007 | 0 | 0 | 0 | 0 | 0 | 0.35 | 26.77 | 29.77 | 24.92 | 7.33 |
53,654 | 2,008 | 0 | 0 | 0 | 0 | 0 | 0.03 | 26.73 | 30.3 | 24.91 | 8.21 |
53,654 | 2,009 | 0 | 0 | 0 | 0 | 0 | 0.02 | 27.15 | 30.18 | 25.36 | 7.34 |
53,654 | 2,010 | 0 | 0 | 0 | 0 | 0 | 0.33 | 26.32 | 28.83 | 24.9 | 6.99 |
53,654 | 2,011 | 0 | 0 | 0 | 0 | 0 | 0 | 26.28 | 29.8 | 24.1 | 5.96 |
53,654 | 2,012 | 0 | 0 | 0 | 0 | 0 | 0.67 | 27.39 | 30.88 | 25.11 | 5.19 |
53,654 | 2,013 | 0 | 0 | 0 | 0 | 0 | 0.05 | 26.7 | 30.22 | 24.59 | 8.08 |
53,654 | 2,014 | 0 | 0 | 0 | 0 | 0 | 0.28 | 26.75 | 30.23 | 24.83 | 7.34 |
53,654 | 2,015 | 0 | 0 | 0 | 0 | 0 | 0.44 | 27.16 | 29.91 | 25.38 | 6.17 |
53,654 | 2,016 | 0 | 0 | 0 | 0 | 0 | 0.05 | 27 | 29.82 | 25.43 | 7.42 |
53,654 | 2,017 | 0 | 0 | 0 | 0 | 0 | 0 | 26.29 | 29.18 | 24.43 | 7.92 |
53,654 | 2,018 | 0 | 0 | 0 | 0 | 0 | 0 | 27.08 | 29.82 | 25.27 | 7.55 |
53,654 | 2,019 | 0 | 0 | 0 | 0 | 0 | 0 | 26.69 | 30.02 | 24.57 | 7.45 |
53,654 | 2,020 | 0 | 0 | 0 | 0 | 0 | 0 | 26.37 | 29.83 | 24.52 | 7.7 |
53,654 | 2,021 | 0 | 0 | 0 | 0 | 0 | 0.01 | 26.4 | 28.94 | 24.6 | 6.54 |
53,654 | 2,022 | 0 | 0 | 0 | 0 | 0 | 0.02 | 26.51 | 28.95 | 24.95 | 6.8 |
53,654 | 2,023 | 0 | 0 | 0 | 0 | 0 | 0.08 | 27.33 | 30.01 | 25.67 | 7.4 |
53,654 | 2,024 | 0 | 0 | 0 | 0 | 0 | 0 | 26.37 | 28.52 | 24.71 | 7.36 |
53,654 | 2,025 | 0 | 0 | 0 | 0 | 0 | 0.01 | 26.84 | 29.37 | 25.06 | 8.06 |
57,289 | 1,985 | 0 | 0 | 0 | 0 | 0 | 0 | 17.02 | 24.78 | 10.64 | 6.1 |
57,289 | 1,986 | 0 | 0 | 0 | 0 | 0 | 0 | 16.98 | 24.5 | 11.45 | 5.22 |
57,289 | 1,987 | 0 | 0 | 0 | 0 | 0 | 0.05 | 19.81 | 25.71 | 15.3 | 6.42 |
57,289 | 1,988 | 0 | 0 | 0 | 0 | 0 | 0.01 | 17.02 | 23.52 | 12.46 | 4.67 |
57,289 | 1,989 | 0 | 0 | 0 | 0 | 0 | 0.22 | 19.82 | 25.19 | 16.37 | 4.18 |
57,289 | 1,990 | 0 | 0 | 0 | 0 | 0 | 0 | 15.23 | 22.7 | 9.79 | 6.28 |
57,289 | 1,991 | 0 | 0 | 0 | 0 | 0 | 0 | 17.96 | 26.16 | 11.27 | 4.83 |
57,289 | 1,992 | 0 | 0 | 0 | 0 | 0 | 0.34 | 17.78 | 21.48 | 14.44 | 4.85 |
57,289 | 1,993 | 0 | 0 | 0 | 0 | 0 | 0.05 | 19.99 | 26.44 | 15.94 | 5.3 |
57,289 | 1,994 | 0 | 0 | 0 | 0 | 0 | 0 | 17.24 | 24.51 | 10.92 | 5.74 |
57,289 | 1,995 | 0 | 0 | 0 | 0 | 0 | 0.04 | 19.33 | 27.07 | 14.03 | 5.75 |
57,289 | 1,996 | 0 | 0 | 0 | 0 | 0 | 0.41 | 18.45 | 23.81 | 14.14 | 6.02 |
57,289 | 1,997 | 0 | 0 | 0 | 0 | 0 | 0 | 19.22 | 26.34 | 14.84 | 5.74 |
57,289 | 1,998 | 0 | 0 | 0 | 0 | 0 | 0.01 | 16.75 | 23.62 | 11.03 | 6.12 |
57,289 | 1,999 | 0 | 0 | 0 | 0 | 0 | 0 | 14.43 | 21.38 | 8.55 | 5.47 |
57,289 | 2,000 | 0 | 0 | 0 | 0 | 0 | 0.01 | 18.19 | 26.69 | 12 | 6.15 |
57,289 | 2,001 | 0 | 0 | 0 | 0 | 0 | 0.01 | 16.87 | 24.02 | 11.53 | 6.48 |
57,289 | 2,002 | 0 | 0 | 0 | 0 | 0 | 0.57 | 20.45 | 26.33 | 16.56 | 5.2 |
57,289 | 2,003 | 0 | 0 | 0 | 0 | 0 | 0.01 | 16.57 | 23.36 | 11.88 | 6.1 |
57,289 | 2,004 | 0 | 0 | 0 | 0 | 0 | 0.05 | 20.02 | 25.93 | 15.97 | 5.25 |
57,289 | 2,005 | 0 | 0 | 0 | 0 | 0 | 0.04 | 18.84 | 25.89 | 14.72 | 5.74 |
57,289 | 2,006 | 0 | 0 | 0 | 0 | 0 | 0 | 19.02 | 25.28 | 13.94 | 6.29 |
57,289 | 2,007 | 0 | 0 | 0 | 0 | 0 | 0.01 | 18.41 | 24.24 | 14.65 | 6.21 |
57,289 | 2,008 | 0 | 0 | 0 | 0 | 0 | 0 | 15.99 | 23.38 | 11.24 | 5.7 |
57,289 | 2,009 | 0 | 0 | 0 | 0 | 0 | 0 | 18.48 | 25.81 | 13.93 | 5.71 |
57,289 | 2,010 | 0 | 0 | 0 | 0 | 0 | 0 | 17.3 | 26.37 | 10.36 | 5.13 |
57,289 | 2,011 | 0 | 0 | 0 | 0 | 0 | 0 | 17.02 | 25.99 | 10.07 | 6.79 |
57,289 | 2,012 | 0 | 0 | 0 | 0 | 0 | 1.27 | 18.88 | 24.72 | 14.67 | 5.58 |
57,289 | 2,013 | 0 | 0 | 0 | 0 | 0 | 0.01 | 16.72 | 22.18 | 12.22 | 6.94 |
57,289 | 2,014 | 0 | 0 | 0 | 0 | 0 | 0.01 | 16.62 | 22.93 | 12.28 | 6.65 |
57,289 | 2,015 | 0 | 0 | 0 | 0 | 0 | 0.56 | 20.87 | 26.68 | 17.69 | 6 |
57,289 | 2,016 | 0 | 0 | 0 | 0 | 0 | 0.01 | 18.65 | 25.81 | 13.27 | 6.02 |
57,289 | 2,017 | 0 | 0 | 0 | 0 | 0 | 0 | 17.04 | 23.66 | 11.88 | 5.81 |
57,289 | 2,018 | 0 | 0 | 0 | 0 | 0 | 0 | 15.52 | 21.72 | 10.63 | 6.7 |
57,289 | 2,019 | 0 | 0 | 0 | 0 | 0 | 0 | 17.09 | 23.07 | 12.12 | 5.92 |
57,289 | 2,020 | 0 | 0 | 0 | 0 | 0 | 0 | 17.54 | 24.58 | 12.09 | 6.41 |
57,289 | 2,021 | 0 | 0 | 0 | 0 | 0 | 0 | 19.16 | 26.67 | 14.3 | 5.39 |
57,289 | 2,022 | 0 | 0 | 0 | 0 | 0 | 0 | 20.61 | 27.82 | 15.66 | 5.04 |
57,289 | 2,023 | 0 | 0 | 0 | 0 | 0 | 0 | 19.49 | 26.29 | 14.89 | 6.61 |
57,289 | 2,024 | 0 | 0 | 0 | 0 | 0 | 0 | 18.94 | 26.04 | 14.95 | 6.11 |
57,289 | 2,025 | 0 | 0 | 0 | 0 | 0 | 0.01 | 17.92 | 24.79 | 13.73 | 5.36 |
64,021 | 1,985 | 0 | 0 | 0 | 0 | 0 | 0 | 16.78 | 24.52 | 10.98 | 4.31 |
64,021 | 1,986 | 0 | 0 | 0 | 0 | 0 | 0 | 16.1 | 23.62 | 10.8 | 4.34 |
64,021 | 1,987 | 0 | 0 | 0 | 0 | 0 | 0.04 | 19.45 | 24.96 | 14.44 | 4.48 |
64,021 | 1,988 | 0 | 0 | 0 | 0 | 0 | 0.01 | 15.84 | 23.02 | 9.96 | 4.58 |
64,021 | 1,989 | 0 | 0 | 0 | 0 | 0 | 0.22 | 19.16 | 25.7 | 16.33 | 5.46 |
64,021 | 1,990 | 0 | 0 | 0 | 0 | 0 | 0 | 14.59 | 22.28 | 8.28 | 4.29 |
64,021 | 1,991 | 0 | 0 | 0 | 0 | 0 | 0 | 17.32 | 25.31 | 10.56 | 4.22 |
64,021 | 1,992 | 0 | 0 | 0 | 0 | 0 | 1.23 | 16.9 | 21.66 | 13.04 | 4.57 |
64,021 | 1,993 | 0 | 0 | 0 | 0 | 0 | 0.18 | 19.59 | 25.01 | 15.83 | 4.63 |
64,021 | 1,994 | 0 | 0 | 0 | 0 | 0 | 0 | 16.38 | 23.32 | 10.67 | 4.9 |
64,021 | 1,995 | 0 | 0 | 0 | 0 | 0 | 0.05 | 19.03 | 26.28 | 13.44 | 3.9 |
64,021 | 1,996 | 0 | 0 | 0 | 0 | 0 | 0.31 | 17.44 | 22.8 | 13.29 | 5.39 |
64,021 | 1,997 | 0 | 0 | 0 | 0 | 0 | 0 | 18.51 | 26.06 | 13.85 | 4.87 |
64,021 | 1,998 | 0 | 0 | 0 | 0 | 0 | 0 | 15.92 | 23.18 | 10.19 | 4.29 |
64,021 | 1,999 | 0 | 0 | 0 | 0 | 0 | 0 | 13.98 | 20.66 | 8.37 | 4.37 |
64,021 | 2,000 | 0 | 0 | 0 | 0 | 0 | 0 | 17.23 | 25.74 | 10.97 | 4.25 |
64,021 | 2,001 | 0 | 0 | 0 | 0 | 0 | 0 | 15.64 | 23.07 | 9.6 | 4.98 |
64,021 | 2,002 | 0 | 0 | 0 | 0 | 0 | 3.28 | 19.48 | 24.05 | 16.96 | 4.5 |
White Christmas dataset (ERA5, ~2000 cities, 1985-2025)
Daily weather for Dec 24, 25 and 26 (local calendar days) in every year 1985-2025 (41 years) for the 2000 most populous cities worldwide (one city per 0.25 degree ERA5 grid cell), plus a per-city-year "white Christmas" table. Everything comes from a single reanalysis (ERA5), so there is no change of data source anywhere in the record that could plant an artificial trend.
| file | rows | description |
|---|---|---|
data/cities.csv |
2000 | city metadata (GeoNames) and the ERA5 grid cell used |
data/daily.csv |
2000 x 41 x 3 = 246000 | one row per city per day (Dec 24/25/26) |
data/white_christmas.csv |
2000 x 41 = 82000 | one row per city-year, the Dec 25 flag and key values |
data/white_christmas_trend.png |
example figure from example_analysis.py |
|
White_Christmas_EDA.ipynb |
exploratory analysis notebook (charts, maps, trend, sensitivity) |
Scripts (project root): build_dataset.py (build/update), validate.py (checks + summary),
example_analysis.py (trend plot), build_notebook.py (regenerates White_Christmas_EDA.ipynb). Python environment: .venv (xarray, zarr, gcsfs, numpy, pandas, pyarrow, matplotlib).
Quick start
import pandas as pd
cities = pd.read_csv("data/cities.csv", keep_default_na=False, na_values=[""]) # keeps Namibia's code "NA"
wc = pd.read_csv("data/white_christmas.csv")
df = wc.merge(cities[["city_id", "ascii_name", "country_code", "lat", "lon"]], on="city_id")
print(df.groupby("ascii_name")["white_christmas"].mean().sort_values(ascending=False).head())
Hugging Face: load_dataset("Jemin-023/white-christmas-era5", "white_christmas") (configs: white_christmas, daily, cities; the Parquet files keep
the NA country code intact). Kaggle: the CSV files are the primary files; Parquet copies are included.
Files in this package
| file | description |
|---|---|
data/cities.csv, .parquet |
2000 cities and their ERA5 grid cell |
data/daily.csv, .parquet |
one row per city per day, Dec 24-26 |
data/white_christmas.csv, .parquet |
one row per city-year with the Dec 25 flag |
White_Christmas_EDA.ipynb |
exploratory analysis with charts (outputs included) |
build_dataset.py, validate.py, example_analysis.py, build_notebook.py |
code to rebuild and check the data |
SHA256SUMS.txt |
file checksums |
Cite as: White Christmas: ERA5 weather for 2000 cities, 1985-2025 (derived from ERA5 and GeoNames; see Attribution).
Method
Source store. gs://gcp-public-data-arco-era5/ar/full_37-1h-0p25deg-chunk-1.zarr-v3 (Google ARCO-ERA5,
anonymous access, hourly, 0.25 degree, 1940 to present; updated 2026-11-30 at build time). This is the only
ARCO store that has hourly snow depth, snow density and snowfall; the older 1959-2022-* stores do not.
ERA5 final data (not the preliminary ERA5T extension) cover all of 1985-2025.
Variables read (ERA5 name -> unit in store):
| use | ERA5 variable | unit | type |
|---|---|---|---|
| temperature | 2m_temperature |
K | instantaneous, hourly |
| wind | 10m_u_component_of_wind, 10m_v_component_of_wind |
m/s | instantaneous, hourly |
| precipitation | total_precipitation |
m (per hour, accumulated over the preceding hour) | accumulation |
| snowfall | snowfall |
m of water equivalent per hour | accumulation |
| snow depth | snow_depth |
m of water equivalent (not physical depth) | instantaneous |
| snow density | snow_density |
kg/m3 (density of the snowpack) | instantaneous |
| gust | 10m_wind_gust_since_previous_post_processing |
m/s (max gust in the preceding hour) | max over hour |
Cities. GeoNames cities15000 (places with population > 15000), sorted by population (descending).
Each city is assigned to its nearest ERA5 grid point (lat = 90 - 0.25 i, lon = 0.25 j; grid_lat/grid_lon
are the grid-point coordinates, longitude in -180..180). If two cities map to the same grid cell the more
populous one is kept; the first 2000 distinct cells are used. (Consequence: the sample is population ranked,
not area weighted; China and India alone contribute about 29% of the cities.)
Local days. Each city's UTC offset on Dec 25 noon local is taken from its GeoNames IANA timezone with Python
zoneinfo (so historical rule changes are honoured) and rounded to the nearest whole hour (half-hour offsets such
as India +5:30 are rounded to +6; a <=30 min shift of the day window). A local day is local 00:00 to 23:59.
Instantaneous variables use the 24 hourly values stamped 00:00..23:00 local. ERA5 accumulations (and the gust
maximum) are stamped at the end of their hour, so the day uses the stamps 01:00..24:00 local (= hours
00:00-24:00). Only the UTC days around Dec 23-27 are read for each year.
Physical snow depth (assumption). ERA5 stores snow depth as water equivalent sd (m w.e.). Physical depth is
recovered with ERA5's own snowpack density rsn: depth_cm = sd [m w.e.] * 1000 / rsn [kg/m3] * 100.
(For example 10 mm w.e. at rsn 100 kg/m3 -> 10 cm; at 300 kg/m3 -> 3.3 cm.) ERA5 caps snow depth at 10 m w.e.,
irrelevant for cities.
Snowfall in cm (assumption). ERA5 gives no fresh-snow density, so snowfall_cm uses a fixed 10:1 snow-to-water
ratio, i.e. 1 mm w.e. = 1 cm of snow. The raw value is kept as snowfall_mm_we; rescale it yourself for other
ratios (wet maritime snow is nearer 6:1-8:1, cold continental snow 15:1+).
Headline results (full record, 1985-2025)
White-Christmas rate = share of years with snow depth >= 2.5 cm at 07:00 local on Dec 25.
| city | rate | city | rate |
|---|---|---|---|
| Sapporo | 100% | New York City | 12.2% |
| Moscow | 90.2% | Berlin | 9.8% |
| Montreal | 78.0% | London | 2.4% |
| Minneapolis | 75.6% | Miami, Singapore, Cairo, Sydney, Lagos | 0% |
| Oslo | 73.2% |
Across all cities and years the rate is 10.5%; 1339 of 2000 cities never had one and 33 had one every year. By decade:
12.7% (1980s, 1985-89 only), 11.8%, 10.9%, 9.1%, 8.2% (2020s, 2020-2025 only). Among the 661 cities that had at least one
white Christmas the share falls about 4.5 percentage points per decade. A step test around 2004 (ERA5 observing-system changes) shows no
significant isolated break (p = 0.27), so the decline looks gradual; with 41 yearly points this is a sensitivity check, not proof.
See White_Christmas_EDA.ipynb for the full exploratory analysis.
Column dictionary
cities.csv
| column | description |
|---|---|
city_id |
GeoNames id |
name, ascii_name |
GeoNames name and ASCII name |
country_code |
ISO 3166 alpha-2 |
admin1 |
first-level admin division (ASCII name from GeoNames admin1CodesASCII), may be empty |
population |
GeoNames population |
lat, lon |
GeoNames coordinates (degrees) |
grid_lat, grid_lon |
ERA5 grid point used (nearest 0.25 degree point; lon in -180..180) |
timezone |
IANA timezone from GeoNames |
elevation_m |
GeoNames elevation (often empty) |
dem_m |
GeoNames digital elevation model value (m) |
grid_land_fraction |
ERA5 land-sea mask of the grid cell (0 sea .. 1 land) |
grid_elevation_m |
ERA5 model surface elevation of the grid cell (m); compare with dem_m to spot mountain/coastal mismatch |
grid_iy, grid_ix |
integer ERA5 grid indices (used by the build; stable across updates) |
daily.csv (one row per city and day)
| column | unit | description |
|---|---|---|
city_id, date, year |
key; date is the local calendar date (YYYY-MM-DD) |
|
temp_mean_c, temp_max_c, temp_min_c |
deg C | mean / max / min of the 24 hourly 2 m temperatures |
precip_mm |
mm | total precipitation (rain + snow, water equivalent) in the local day |
snowfall_cm |
cm | snowfall as snow depth, snowfall_mm_we x 1.0 (10:1 assumption) |
snowfall_mm_we |
mm w.e. | ERA5 snowfall, water equivalent, local-day sum |
snow_depth_cm_max |
cm | daily maximum of hourly physical snow depth |
snow_depth_cm_0700 |
cm | physical snow depth at 07:00 local |
snow_depth_mm_we_0700 |
mm w.e. | raw ERA5 snow depth (water equivalent) at 07:00 local |
wind_speed_max_ms, wind_speed_mean_ms |
m/s | max / mean of hourly 10 m wind speed sqrt(u^2+v^2) |
wind_gust_max_ms |
m/s | max hourly 10 m wind gust of the day |
utc_offset_h |
h | whole-hour UTC offset used for the local day (see Method) |
white_christmas.csv (one row per city and year)
| column | description |
|---|---|
city_id, year |
key |
white_christmas |
1 if snow depth >= 2.5 cm (1 inch) at 07:00 local time on Dec 25, else 0 |
snow_depth_cm_dec25_0700 |
the raw depth used for the flag; apply any other threshold you like |
snowfall_dec25 |
1 if snowfall on Dec 25 is > 0 (snowfall_mm_we > 0 after rounding to 0.01 mm), else 0 |
snowfall_cm_dec25, snow_depth_cm_dec25_max, precip_mm_dec25 |
Dec 25 values |
temp_mean_c_dec25, temp_max_c_dec25, temp_min_c_dec25, wind_speed_max_ms_dec25 |
Dec 25 values |
Reading cities.csv with pandas: Namibia's ISO code is the string NA, which pandas treats as missing by default. Use pd.read_csv('data/cities.csv', keep_default_na=False, na_values=['']).
Values are rounded to 2 decimals. Zero values are kept (ERA5 has no missing data over land or ocean here), so
the files have no NaNs; validate.py asserts this.
Rebuild / update
python -m venv .venv && .venv/bin/pip install xarray zarr gcsfs numpy pandas pyarrow matplotlib
.venv/bin/python build_dataset.py --start-year 1985 --end-year 2025 # full build (network bound; ~1 h or more)
.venv/bin/python build_dataset.py --start-year 2026 --end-year 2026 # next December: appends one year
.venv/bin/python validate.py
.venv/bin/python example_analysis.py
Finished years are cached in data/cache/year_YYYY.parquet; reruns skip them (--force recomputes) and the CSVs are
reassembled from all cached years. cities.csv is built once and reused so city set and grid cells stay fixed
across updates (--rebuild-cities regenerates it and requires clearing the cache). Raw GeoNames files live in
data/raw/geonames/.
Limitations
- Reanalysis, not observations. ERA5 snow depth is a model grid-cell value (about 28 km), not a station measurement. It is generally good for high-latitude/continental snow but can differ from what a city actually saw.
- Grid-cell representativeness. The nearest 0.25 degree cell may be partly sea (
grid_land_fraction< 1, 171 cities below 0.5) or include mountains (grid_elevation_mvsdem_m: e.g. the Vancouver cell sits about 150 m above the city; Oslo, Sapporo and Montreal cells also differ). Snow depth is a cell average and tends to be too high for cells with hills and too low for coastal cells. Filter on these columns if it matters. - Snow-depth conversion. Physical depth uses ERA5 snow density, which is a model value (100-450 kg/m3);
thin or freshly fallen snow can be mis-converted. The raw
snow_depth_mm_we_0700is provided so you can redo it. The 2.5 cm threshold on the physical depth means a thin but dense/old snow layer counts less than a light fresh one. - Snowfall in cm relies on the fixed 10:1 ratio (see above).
- Half-hour timezones are rounded to whole hours; times are local clock time without DST adjustment beyond what
zoneinfogives for that date. - Dec 25 07:00 local is a single instant; "white Christmas" definitions vary (depth at any time of day, any snowfall, thresholds of 0 / 1 / 2.5 cm). Use the raw columns for alternatives.
- Selection. The 2000 cities are the most populous after one-per-cell de-duplication; the sample is dominated by Asia and is not area weighted. Counts of "share of cities" mix very different climates: compare within region.
- Tropical and southern-hemisphere cities have essentially zero white Christmases by construction.
- ERA5 has inhomogeneities (observing system changes) that can affect trends over decades; treat small trends with caution.
Attribution and licences
- Weather data: Contains modified Copernicus Climate Change Service information (2026). Hersbach, H. et al., ERA5 hourly data on single levels from 1940 to present, Copernicus Climate Change Service (C3S) Climate Data Store, accessed through the Google ARCO-ERA5 public dataset (CC BY 4.0). Neither the European Commission nor ECMWF is responsible for any use that may be made of the Copernicus information or data it contains.
- Cities: GeoNames (https://www.geonames.org), licensed under Creative Commons Attribution 4.0.
- Downloads last month
- -
