roadnoise

Transparent screening-level road traffic noise in Python: CNOSSOS-EU source model, ISO 9613 propagation, END indicators (Lden, Lnight) and exposure statistics.

Version 0.1.2 · Python >=3.9 · MIT licence
pip install roadnoise
PyPISourceIssuesChangelogCite (DOI)

roadnoise

PyPI version Python versions pipeline status License: MIT DOI Downloads

Transparent, screening-level road traffic noise in Python for environmental-noise consultants, planners and researchers working in the context of the EU Environmental Noise Directive (END, Directive 2002/49/EC).

Installation

pip install roadnoise              # numpy only
pip install "roadnoise[raster]"    # + rasterio for GeoTIFF output
pip install "roadnoise[geo]"       # + geopandas/shapely helpers

Python 3.9 – 3.13.

Quick start

import roadnoise as rn

# Emission per metre of 1104 cars/h + 96 heavy vehicles/h at 50 km/h
lw = rn.line_sound_power({"1": 1104, "3": 96}, 50)      # dB re 1 pW/m, 8 bands
print(rn.a_weighted(lw))                                 # ~84.1 dB(A)

# A road from AADT, a barrier, a building, facade receivers
road = rn.Road.from_aadt([(0, 0), (400, 0)], aadt=24000, speed=50, heavy=0.08)
barrier = rn.Barrier([(50, 12), (350, 12)], height=3.0)
building = rn.Building([(150, 40), (250, 40), (250, 60), (150, 60)], height=12.0)
pts, _ = rn.facade_receivers(building.footprint, spacing=5.0)

res = rn.compute_levels([road], pts, receiver_height=4.0,
                        barriers=[barrier], buildings=[building])
res.lden, res.lnight          # dB(A) per receiver

grid = rn.compute_grid([road], cell=10.0, margin=100.0, barriers=[barrier])
grid.levels["lden"]           # (nrows, ncols), north-up

table = rn.exposure_statistics(res.lden, population=3.0, round_to=100)
print(table.to_text("People per Lden band"))

See examples/quickstart.py for a complete script.

Features

Scope. roadnoise is a screening tool. It is not a certified or conformance-tested CNOSSOS-EU implementation and must not be used on its own for strategic noise maps reported under the END. See Differences to full CNOSSOS-EU.

Command line

roadnoise emission --flow 1200 --speed 50 --heavy 0.08
roadnoise emission --flow 1200 --speed 90 --heavy 0.15 --surface "2-layer ZOAB" --json
roadnoise grid roads.geojson --cell 10 -o lden.asc            # ESRI ASCII grid
roadnoise grid roads.geojson --cell 10 -o lden.tif            # needs roadnoise[raster]
roadnoise grid roads.geojson --cell 10 -o map.asc --indicator all --barriers walls.geojson
roadnoise receivers roads.geojson dwellings.geojson -o out.geojson \
          --population-field population --round-to 100
roadnoise crtn --flow 20000 --speed 75 --heavy-pct 10 --distance 20
roadnoise surfaces

Common propagation options: --method cnossos|iso9613, --ground G, --temperature, --humidity, --max-distance, --segment, --facade, --buildings, --barriers, --assume-projected.

GeoJSON input

Coordinates must be in a projected CRS in metres. Files without a legacy crs member whose coordinates look like longitude/latitude are rejected (override with --assume-projected). Road properties (case-insensitive):

property meaning
AADT annual average daily traffic (veh/day); or give q_day, q_evening, q_night (veh/h)
heavy / heavy_pct heavy-vehicle fraction (0–1) / percentage
speed, speed_heavy km/h (default 50; heavy defaults to speed)
medium_share share of heavy vehicles that are category 2 (default 0 → all category 3)
two_wheeler motorcycle fraction (category 4b)
surface Table F-4 surface name (roadnoise surfaces)
gradient % (applied half uphill, half downhill)
temperature, studded_ratio, studded_months emission corrections

Barriers: LineStrings with height (m). Buildings: Polygons with height (m). Receivers: Points with optional height (m) or a Z coordinate.

What is implemented, and how it was checked

Coefficient tables (all shipped, none are placeholders)

table source verification
F-1 AR, BR, AP, BP (cat. 1, 2, 3, 4a, 4b) Directive (EU) 2021/1226, Annex point (19)(a) 160 values machine-compared with the EUR-Lex text of the directive
F-4 road surfaces αi,m, βm, validity speeds (15 surfaces) Directive (EU) 2021/1226, Annex point (19)(b) 540 values machine-compared with the EUR-Lex text
F-2 studded tyres ai, bi Directive (EU) 2015/996, Appendix F (not replaced in 2021) transcribed from the Official Journal PDF and checked by hand
F-3 acceleration CR, CP Directive (EU) 2015/996, Appendix F (not replaced in 2021) transcribed from the Official Journal PDF and checked by hand
Km temperature coefficients Annex II §2.2.3, formula (2.2.10) from the text
A-weighting AWCf,i Directive (EU) 2021/1226, amendment to §2.5.5 from the text

Note that the 2021 Table F-1 differs from the 2015 one (e.g. category 1 AR at 1 kHz is 100.1 dB, not 97.3 dB) – older tools may still use the 2015 numbers. Category 5 has no coefficients in either directive: it raises an error unless you supply coefficients with load_coefficients_csv() (format: category,coefficient,63,…,8000 with rows AR, BR, AP, BP; values are range-checked). National road surfaces can be loaded with load_surface_csv() (name,category,63,…,8000,beta[,v_min,v_max]).

Emission formulas (Annex II §2.2)

(2.2.1) line source, (2.2.2)–(2.2.3) total power and the 20 km/h floor, (2.2.4)–(2.2.5) rolling noise, (2.2.6)–(2.2.9) studded tyres, (2.2.10) temperature, (2.2.11)–(2.2.12) propulsion, (2.2.13)–(2.2.16) gradient, (2.2.17)–(2.2.18) acceleration near junctions, (2.2.19)–(2.2.20) road surface (with a warning outside the validity speed range).

Propagation

The 2015/2021 Official Journal prints the ground-effect and diffraction equations as images. They were implemented from the published formula structure (term names, bounds, special cases quoted in the text) together with the standard CNOSSOS-EU formulation, and are unit-tested against independent hand calculations of those equations – but they could not be compared character-by-character with the OJ text.

CRTN (UK, 1988)

Basic noise level (18 h and 1 h), speed and % heavy correction, gradient (+0.3 dB/%), road surface, distance, ground cover, angle of view and +2.5 dB facade. Not implemented: the barrier chart, the gradient speed reduction, the low-flow correction and conversions from LA10 to Lden. CRTN predicts LA10,18h, not an END indicator; use it as a cross-check only. The Nordic prediction methods are not included.

Validation in the test suite

ISO 9613-2 Table 2 absorption values; hand calculations of every emission correction and of the ground and diffraction equations; energetic summation (60 ⊕ 60 = 63.01 dB, ten equal sources +10 dB); Lden (equal levels give L + 6.39 dB, Member-State period variants); flow doubling +3.01 dB; a long, finely segmented road over hard ground matches the analytic line-source integral L = LW′ − 10 lg(4d) + 3 within 0.05 dB; symmetry and monotonic decay with distance; higher barriers shield more; CRTN reference point (75 km/h, 0 % heavy gives a 0 dB speed correction; 20 000 veh/18 h gives a basic noise level of 72.1 dB(A)). Coverage is above 95 %.

Differences to full CNOSSOS-EU

roadnoise deliberately simplifies the propagation part. Results can differ significantly from a conformant CNOSSOS-EU implementation, in particular in built-up areas:

Citation

@software{eminoglu_roadnoise,
  author  = {Eminoğlu, Yusuf},
  title   = {roadnoise},
  year    = {2026},
  version = {0.1.2},
  doi     = {10.5281/zenodo.24065175},
  url     = {https://doi.org/10.5281/zenodo.24065175}
}

If you use roadnoise, please cite it via CITATION.cff. Key references:

Related Geophilo SDKs

License

MIT © Yusuf Eminoğlu

Other Geophilo SDKs