The Dataset Viewer has been disabled on this dataset.

CAMS Europe daily air quality, cell by cell

Daily air quality over the whole CAMS Europe domain (30 to 72° N, 25° W to 45° E, 0.1° cells) from 2013, summed up from the hourly CAMS European air quality reanalyses. It is built for Panache, a tool that explains pollution episodes at a place: was a day unusual, and why?

This dataset is a mirror of every GitHub release of AdrienJKTH/panache-archive, where the assets are built on GitHub Actions and checked. Its files are the very same, one folder per release:

  • cams-europe-v1/: air quality, described below;

  • era5-europe-v1/: the daily weather of ERA5 over the same domain at 0.25° (169 by 281 points), one file per year such as era5-2021.cells, nine statistics in this order: temperature_2m_mean (°C, the grid's, not corrected for altitude), relative_humidity_2m_mean (%), wind_speed_10m_mean (m/s), wind_direction_10m_dominant (°), pressure_msl_mean (hPa), precipitation_sum (mm, the 24 hours ending in the day), shortwave_radiation_sum (MJ/m²), cloud_cover_mean (%) and boundary_layer_height (m). One point a frame. Built from Open-Meteo's public copy of ERA5 (DOI 10.24381/cds.adbb2d47); weather data by Open-Meteo.com (CC-BY 4.0).

  • merra2-europe-v1/: NASA's MERRA-2 aerosols over the same domain at 0.5° by 0.625° (85 by 113 cells, version 2 of the format: the header's two steps are float32 at bytes 32 and 36), one file per year such as merra2-2021.cells (the year under way as merra2-2026-01-09.cells), three statistics in this order: DUSMASS, OCSMASS and BCSMASS, UTC daily means in μg/m³. One cell a frame. Source: GMAO (2015), MERRA-2 tavg1_2d_aer_Nx V5.12.4, GES DISC, DOI 10.5067/KLICLTZ8EM9D.

  • maps-europe-v1/: Panache's map colourings over the same domain on CAMS's grid since 2020, one file per colouring and year such as map-causes-2021.days: each cell's EAQI band (eaqi, 1 to 6), how unusual it is for the season (unusual, 1 for p5 or less to 7 for p99 or more) and the mechanism Panache's verdict finds (causes, 3 to 12; 1 not in an episode, 2 none standing out), 0 for no class. A 64-byte header (PANDAYS1; south and west edges, cells per degree, rows, columns, first day, days, step), an offset table of one uint64 per day plus one, then one zstd frame a day of uint16 classes with their bytes split by weight, then JSON with each day's cells per class. The CAMS reanalysis has no cell north of 70° N before 2018.

  • France's own releases, one folder each: cams-v1/ and era5-v1/ (France's box, 41-51.5° N, 5.5° W-10° E, as Parquet: one row per cell and day), downscaling-v1/ (the 1 km downscaling's stations and fixed layers) and downscaled-v1/ (daily PM2.5 and NO₂ at 1 km over France's land, one .days file per pollutant and year, and the LightGBM models), described in the repository's README.

What it holds

One file per variable and year, such as cams-europe-v1/cams-pm10-2021-validated.cells:

  • Variables (Open-Meteo's names), in μg/m³:
    • pm10, pm2_5, nitrogen_dioxide and ozone, from 2013;
    • carbon_monoxide and sulphur_dioxide, from 2016;
    • ammonia, dust and secondary_inorganic_aerosol, from 2018;
    • pm10_wildfires, from 2019.
  • Statistics: the UTC daily mean, null with fewer than 18 hours. Ozone also has its daily maximum 8-hour mean (EU Directive 2008/50/EC).
  • Source: the ensemble median at the surface. The validated reanalysis where it exists; the interim one after it (-interim in the name), replaced once the validated stream covers the year.
  • Values: rounded to 0.01 μg/m³.
  • Grids: 420 by 700 cells centred on x.x5° since 2020; 421 by 701 centred on x.x0° in 2018 and 2019, and 401 by 701 (30 to 70° N) until 2017. Each file holds its year's own grid.

The .cells format

The files are laid out to give one cell's year in two small HTTP range requests, so that a place is read without downloading the files (~150 MB each). Little-endian throughout:

Part Bytes
Header 64 PANCELLS, version (1), statistics, cells per frame (8), reserved; centre of the south-west cell (lat, lon), step (0.1°), rows, columns; first day (days since 1970-01-01), days, scale (100), length of the metadata (<8sHHHHdddIIiIII)
Offset table 8 per frame, plus 8 Where each frame starts, then where the last one ends. The frame of row r and column c is r × ceil(columns / 8) + c // 8: its two offsets lie at byte 64 + 8 × frame
Frames ~4 KB 16 bytes: row, first column, cells, days (<IIII); then zstd over int32 hundredths (−2³¹ where missing), shaped (statistic, cell, day), byte-stream split: every value's first byte, then every second byte, and so on
Metadata JSON: variable, unit, statistics, stream, box, licence, attribution

Reading Warsaw's PM10 of 2021, with numpy and pyarrow:

import struct
import urllib.request

import numpy as np
import pyarrow as pa

URL = (
    "https://huggingface.co/datasets/adrien4916/air_qual_indicators/resolve/main/"
    "cams-europe-v1/cams-pm10-2021-validated.cells"
)


def get(start: int, length: int) -> bytes:
    request = urllib.request.Request(URL, headers={"Range": f"bytes={start}-{start + length - 1}"})
    with urllib.request.urlopen(request) as answer:
        return answer.read()


header = struct.unpack("<8sHHHHdddIIiIII", get(0, 64))
statistics, per_frame = header[2], header[3]
first_lat, first_lon, step, rows, columns, days = (*header[5:10], header[11])
lat, lon = 52.23, 21.01
row, column = round((lat - first_lat) / step), round((lon - first_lon) / step)
frame = row * -(-columns // per_frame) + column // per_frame
start, end = struct.unpack("<QQ", get(64 + 8 * frame, 16))
data = get(start, end - start)
_, first, cells, _ = struct.unpack("<IIII", data[:16])
raw = pa.Codec("zstd").decompress(data[16:], decompressed_size=statistics * cells * days * 4)
values = np.frombuffer(raw, np.uint8).reshape(4, -1).T.copy().view("<i4")
values = values.reshape(statistics, cells, days)[0, column - first]
pm10 = np.where(values == -(2**31), np.nan, values / 100)  # μg/m³, 1 January first

How it is built

Each variable-year is built from the ADS (the Copernicus Atmosphere Data Store), one month at a time. The steps are the same as Panache's: UTC days, 75 % of the hours, and the 8-hour means carried across months.

Each asset is checked two ways before it is published:

  • against Open-Meteo at Lyon, Madrid, Warsaw, Athens and Helsinki (Open-Meteo serves the same reanalysis until 2021);
  • against the archive's France assets, whose numbers it must hold exactly.

Licence and attribution

CC-BY 4.0, as the sources. Contains modified Copernicus Atmosphere Monitoring Service and Copernicus Climate Change Service information [2026]. Neither the European Commission nor ECMWF is responsible for any use that may be made of the Copernicus information or data it contains. Source: CAMS European air quality reanalyses, DOI 10.24381/7cc0465a.

Downloads last month
978