Skip to main content

cafein.sampledata

Sample datasets for cafein: up-to-date, openly licensed data for the Helsinki Metropolitan Area, downloaded on first access and cached locally.

import cafein.sampledata.helsinki as helsinki

helsinki.osm_pbf          # OpenStreetMap extract, capital region
helsinki.gtfs             # HSL GTFS feed
helsinki.dem              # NLS 10 m elevation model
helsinki.population_grid  # HSY 250 m population grid
helsinki.air_quality      # FMI-ENFUSER air quality, one pinned hour
helsinki.green_view       # Green View Index (street-level greenery)
helsinki.noise            # Helsinki noise survey 2022, zone polygons
helsinki.pois.library     # OSM destinations, one category per file
helsinki.statistics.income # Paavo income variables by postal code area
helsinki.mobility.od_weekday # dynamic population & derived OD (DGL)
helsinki.emission_factors # cafein's default GHG factors as a CSV

Destination categories under pois — library, kindergarten, university, supermarket, shopping_centre, sports_centre, swimming_hall — each a GeoPackage of points (layer pois, EPSG:4326) extracted from the same OpenStreetMap release as osm_pbf.

Statistics layers under statistics — currently income, Statistics Finland's Paavo disposable-income variables (median and average income, income-category counts, for inhabitants and households) by postal-code area, polygons in EPSG:3067 (layer income). Values Paavo protects for privacy are nulls.

Mobility layers under mobility — the Digital Geography Lab's 24-hour population presence for the HMA (Müürisepp et al. 2026): hourly presence linked to home neighbourhoods as Parquet tables (presence_weekday, presence_weekend), a derived home-to-location OD per day type (od_weekday, od_weekend — a demand proxy, not observed trips), and the 298 neighbourhoods polygons (EPSG:3067).

Each data attribute — including each category under pois and each layer under statistics — is a pathlib.Path; the file downloads and verifies on first use. A package release pins exact data snapshots — upgrade the package to get newer data.

Data files are cached under the platform user-cache directory; set CAFEIN_SAMPLEDATA_DIR to relocate the cache.

Exposure layers

air_quality is a multi-band GeoTIFF of ONE model hour of FMI-ENFUSER (the hour and model origin are stamped in the metadata) — not a climatology — on its native ~13 m EPSG:4326 grid. Band names and units also travel in the file's band descriptions:

band FMI variable unit
1 AQIndex 1–5, unitless
2 NO2Concentration µg/m³
3 O3Concentration µg/m³
4 PM10Concentration µg/m³
5 PM25Concentration µg/m³
6 LungDepositedSurfaceArea µm²/cm³
7 BlackCarbonConcentration µg/m³
8 ParticleNumberConcentration 1/cm³

green_view is the published Green View Index dataset for the capital region (Data in Brief, doi:10.1016/j.dib.2020.105601), columns verbatim as published, EPSG:3067:

layer column meaning
points panoID Google Street View panorama identifier
points panoDate imagery capture month, YYYY-MM (2009–2014+ as inspected)
points longitude, lattitude the published coordinates (the spelling is the dataset's own)
points Gvi_Mean Green View Index, percent (0–100)
roads GSV_GVI segment GVI from the panorama points
roads LU_GVI land-use-derived GVI
roads Comb_GVI the combined per-segment exposure value (0–100)
roads GVI_source which source fed Comb_GVI (gsv/land use)
roads TEKSTI street name (the network's own attribute)
roads TOIMINNALL functional road class code
roads TYYPPI link type code
roads LIIKENNEVI traffic-direction code
roads luokka segment class code
roads Pyoravayla cycleway flag
roads BufAarea segment buffer area, m²
roads LUArea vegetated land-use area within the buffer, m²

(92 126 points, 56 074 segments; the road attribute codes are the MetropAccess street network's own, published as-is)

noise holds Helsinki's 2022 noise survey zones as polygons in EPSG:3067, Helsinki-city extent; the 2022 round's calculation method is not comparable with 2017's:

column meaning
source road, rail, metro, or tram
metric Lden (day–evening–night) or Ln (night)
db_low the zone class's lower bound, dB
db_high upper bound, dB — NULL on each source × metric's open-ended top class (≥ db_low)

Data licenses

The package code is MIT. The datasets carry their own open licenses — OpenStreetMap (ODbL 1.0, the extract and the POI layers derived from it), HSL GTFS (CC BY 4.0), National Land Survey of Finland elevation model (CC BY 4.0), HSY population grid (CC BY 4.0), Statistics Finland Paavo (CC BY 4.0), the DGL population-presence dataset (CC BY 4.0), FMI-ENFUSER air quality (CC BY 4.0), the Green View Index dataset (CC BY 4.0, Toikka et al. 2020), and the Helsinki noise survey (CC BY 4.0) — with attribution recorded per asset in <region>.metadata.

Metadata

Release files for cafein.sampledata 2026.8.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cafein.sampledata 2026.8.4
File Size Uploaded Provenance Actions
cafein_sampledata-2026.8.4.tar.gz 107.9 kB With provenance Details for cafein_sampledata-2026.8.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cafein.sampledata 2026.8.4
File Interpreter ABI Platform Actions
cafein_sampledata-2026.8.4-py3-none-any.whl Python 3 none any Details for cafein_sampledata-2026.8.4-py3-none-any.whl

Total release size: 128.3 kB

Release files / cafein_sampledata-2026.8.4.tar.gz

Download URL cafein_sampledata-2026.8.4.tar.gz
Size 107.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ff5ed7829040f4403171bb53b8ddb091f4a70d6451b5ef021e6e74ea98093a4e
BLAKE2b-256 checksum
How to use checksums
441a906a115d88244a4c7e2b2ec4ed93c29be26ad6f44810643045b36bdad754
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 23, 2026.

Transparency log

Release files / cafein_sampledata-2026.8.4-py3-none-any.whl

Download URL cafein_sampledata-2026.8.4-py3-none-any.whl
Size 20.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fcec3878cec15edef4c4f5f3c9b8021bf8d255583b1074bc864c00b3a3bf48d7
BLAKE2b-256 checksum
How to use checksums
5a4ab91fc9e6be80632716dac12d6781e30ab137124235d045f9e1038d621113
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 23, 2026.

Transparency log

Security for cafein.sampledata 2026.8.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cafein_sampledata-2026.8.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page