Dataset Viewer
Auto-converted to Parquet Duplicate
station_name
string
city
string
latitude
float64
longitude
float64
elevation
float64
first_obs
timestamp[ns, tz=UTC]
last_obs
timestamp[ns, tz=UTC]
n_obs
int64
pct_missing
float64
station_id
string
Stockholm-Observatoriekullen A
Stockholm
59.3417
18.0549
43.133
2016-06-02T08:00:00
2026-03-01T06:00:00
85,377
2.59
98230
Göteborg A
Göteborg
57.7156
11.9924
3.038
2016-06-02T08:00:00
2026-03-01T06:00:00
84,514
3.58
71420
Malmö A
Malmö
55.5715
13.0708
19.757
2016-06-02T08:00:00
2026-03-01T06:00:00
84,315
3.8
52350
Uppsala Aut
Uppsala
59.8471
17.632
23.535
2016-06-02T08:00:00
2026-03-01T06:00:00
84,465
3.63
97510
Norrköping-SMHI
Norrköping
58.5828
16.147
40.334
2016-06-02T08:00:00
2026-03-01T06:00:00
85,307
2.67
86340
Linköping-Malmslätt
Linköping
58.398
15.523
94
2016-06-02T08:00:00
2026-03-01T06:00:00
84,895
3.14
85240
Örebro Flygplats
Örebro
59.2289
15.0455
53
2016-06-02T08:00:00
2026-03-01T06:00:00
84,560
3.52
95130
Karlstad Flygplats
Karlstad
59.4446
13.3374
107
2016-06-02T08:00:00
2026-03-01T06:00:00
84,293
3.83
93220
Sundsvall-Timrå Flygplats
Sundsvall
62.5246
17.441
4
2016-06-02T08:00:00
2026-03-01T06:00:00
85,066
2.95
127310
Östersund-Frösön Flygplats
Östersund
63.1981
14.4869
375.8
2016-06-02T08:00:00
2026-03-01T06:00:00
84,665
3.4
134110
Umeå Flygplats
Umeå
63.7931
20.28
7.31
2016-06-02T08:00:00
2026-03-01T06:00:00
83,982
4.18
140480
Luleå-Kallax Flygplats
Luleå
65.543
22.124
19.9
2016-06-02T08:00:00
2026-03-01T06:00:00
85,072
2.94
162860
Kiruna Flygplats
Kiruna
67.827
20.3387
459
2016-06-02T08:00:00
2026-03-01T06:00:00
84,920
3.11
180940
Visby Flygplats
Visby
57.6678
18.3516
41.05
2016-06-02T08:00:00
2026-03-01T06:00:00
84,425
3.68
78400
Jönköping-Axamos Flygplats
Jönköping
57.7514
14.0733
226
2016-06-02T08:00:00
2026-03-01T06:00:00
85,091
2.92
74460

SMHI Swedish Temperature Stations (Hourly)

Hourly air-temperature observations from 15 weather stations across Sweden, covering the last 10 years at 1-hour resolution. Built as a benchmark/evaluation dataset for autoregressive time-series forecasting.

  • Source: SMHI Open Data — Meteorological Observations (metobs) API, parameter 1 (air temperature, momentanvärde, 1 gång/tim), corrected-archive (quality-controlled) period.
  • Resolution: 1 hour (the finest available for SMHI temperature).
  • Time zone: UTC.
  • Unit: degrees Celsius (°C).
  • Quality: only quality-controlled observations (codes G and Y) are kept.

Files

File Description
swedish-temperatures.parquet Main dataset. Wide layout: a regular hourly DatetimeIndex (UTC, named timestamp) × a 2-level MultiIndex of columns (station_id, station_name); values are temperature in °C. Gaps in the regular hourly grid are explicit NaN.
swedish-temperatures-stations.parquet Station metadata: station_id, station_name, city, latitude, longitude, elevation (m), first_obs, last_obs, n_obs, pct_missing.

Stations

Stockholm, Göteborg, Malmö, Uppsala, Norrköping, Linköping, Örebro, Karlstad, Sundsvall, Östersund, Umeå, Luleå, Kiruna, Visby, Jönköping — geographically diverse, currently-active stations, each with < 5 % missing over the window.

Loading

The main file uses a pandas MultiIndex column layout, so load it with pandas:

import pandas as pd
from huggingface_hub import hf_hub_download

path = hf_hub_download(
    repo_id="rebase-energy/smhi-stations",
    filename="swedish-temperatures.parquet",
    repo_type="dataset",
)
df = pd.read_parquet(path)                  # restores MultiIndex columns + UTC index
# df.columns.names == ['station_id', 'station_name']; df.index.name == 'timestamp'

# one station's series:
stockholm = df.xs("98230", level="station_id", axis=1)

Station metadata:

meta = pd.read_parquet(hf_hub_download(
    repo_id="rebase-energy/smhi-stations",
    filename="swedish-temperatures-stations.parquet",
    repo_type="dataset",
))

Suggested benchmark task

Autoregressive forecasting of hourly temperature per station. A simple persistence baseline (ŷ_{t+1} = y_t) yields a mean absolute error of ~0.66 °C across stations — a reasonable lower bar to beat. The regular hourly grid with explicit NaN gaps makes it straightforward to construct fixed-horizon train/eval splits.

License & attribution

The underlying observations are produced by SMHI (Swedish Meteorological and Hydrological Institute) and distributed as open data under Creative Commons Attribution 4.0 (CC BY 4.0). Please attribute SMHI when using this dataset. See https://opendata.smhi.se/ for the source and terms.

Reproducing

This dataset is built by scripts/build_swedish_temperatures.py in the emflow repository.

Downloads last month
29