Noise Simulation¶
Overview¶
The noise functions estimate sound levels around sources among obstacles (buildings, walls) and vegetation
and return them as polygons of level bands (noise_level, dB). The three functions differ in the propagation
model and in computation time:
Function |
Sources |
Model |
|---|---|---|
points, lines, polygons |
Levels on a regular grid of receivers: direct path, first-order reflections and diffraction around building corners, energy summation (Rust) |
|
points |
Wave-front propagation by decay layers with multiple reflections and obstacle absorption |
|
points, lines, polygons |
Visibility masks and distance decay, without reflections or absorption |
All three take the source level source_noise_db (dB at 1 m from the source) and the characteristic frequency
geometric_mean_freq_hz (Hz) either as arguments or as per-source columns, and the air temperature (°C), which
sets the air absorption.
Receiver-grid simulation¶
Method¶
objectnat.simulate_noise_grid() computes the level at every receiver of a regular grid (grid_step
metres). Receivers inside obstacles are skipped. For each source and receiver it sums, as energies,
the direct path, when no obstacle blocks the line between source and receiver;
first-order reflections from obstacle walls within
reflection_max_distmetres of the source (default 50 m), found with the image-source method; each reflection loses-10 lg(1 - a)dB, whereais the absorption ratio of the wall (absorb_ratio_columnorstandard_absorb_ratio, default 0.05);diffraction around vertical edges (
diffraction=True): a corner that the source sees at the edge of an obstacle acts as a secondary source for the receivers that are hidden from the source but seen from the corner. Sound also travels along the shadowed side of the obstacle’s convex hull to the next corner and bends around it; this path reaches the receivers right behind a building.
A diffracted path has the geometric spreading and air absorption of the direct distance d and, in addition, the
barrier attenuation of ISO 9613-2 without the ground term, 10 lg(3 + 40 C3 δ / λ). Here δ is the path
difference, how much longer the path through the corners is than d, and λ = c / f is the wavelength at the
characteristic frequency (c = 331.3 + 0.606 T m/s, T in °C). Around one corner C3 = 1, which is Maekawa’s formula 10 lg(3 + 20 N) with the Fresnel number
N = 2 δ / λ; around two corners e metres apart C3 = (1 + (5 λ / e)²) / (1/3 + (5 λ / e)²). The
attenuation is 4.8 dB at the shadow boundary and at most 20 dB around one corner and 25 dB around two. Corners
are the convex vertices of the merged obstacle outlines simplified by 0.5 m (buildings that touch form one
outline) and the ends of wall lines.
Every path of length r (m) loses 20 lg r dB to geometric spreading and k r dB to air absorption, with
k derived from the temperature and the frequency; a path through vegetation (trees) also loses a
frequency-dependent rate per metre of foliage crossed. Line sources (roads, railways) and polygon outlines
(industrial sites, noisy buildings) are sampled every source_spacing metres (default 5 m); each sample gets
source_noise_db - 10 lg(π / s) so that a long line follows the line-source law
L - 10 lg d - k d (3 dB less per doubling of distance). Because energies add, two equal sources give +3 dB.
Levels below target_noise_db are dropped, and the rest are grouped into bands of db_sim_step dB.
noise_level is the upper bound of the band, as in objectnat.simulate_noise(). With
output="receivers" the function returns the receiver points with their exact levels instead of the bands; with
output="both" it returns both.
Computation time is proportional to the number of receivers times the number of point sources and line samples
within reach. For large road networks use a coarser grid_step or source_spacing, or
objectnat.calculate_simplified_noise_frame() for a first estimate.
- objectnat.simulate_noise_grid(source_points, obstacles, source_noise_db=None, geometric_mean_freq_hz=None, *, absorb_ratio_column=None, standard_absorb_ratio=0.05, trees=None, air_temperature=20, target_noise_db=40, db_sim_step=1, reflections=True, reflection_max_dist=50.0, diffraction=True, grid_step=2.0, source_spacing=None, source_position_buffer_r=0, output='zones', max_workers=None)[source]¶
Simulate noise from point, line and polygon sources on a regular grid of receivers.
An alternative to
simulate_noise()built on the receiver-grid approach used by engineering noise models. Every receiver collects sound energy from every source along:the direct path, when no obstacle blocks it;
first-order reflections from obstacle walls (image-source method), when
reflectionsis True;diffraction around one or two corners of an obstacle (vertical building edges) into its shadow, when
diffractionis True.
Each path loses
20 lg r(geometric spreading,rin metres), air absorptionk r(kfrom temperature and frequency, as insimulate_noise()), a reflection loss-10 lg(1 - a)per reflection (a= absorption ratio of the wall) and, through vegetation, the foliage rate ofsimulate_noise()times the length crossed. A diffracted path has the level at the direct distance minus the barrier attenuation of ISO 9613-2 without the ground term,10 lg(3 + 40 C3 δ / λ):δis how much longer the path through the corners is,λthe wavelength,C3 = 1around one corner (Maekawa’s formula) and(1 + (5 λ / e)²) / (1/3 + (5 λ / e)²)around two cornersemetres apart. The attenuation is at most 20 dB around one corner and 25 dB around two. Paths and sources add up as energies, so two equal sources give +3 dB. Receivers inside obstacles are skipped. The levels are then grouped into bands ofdb_sim_stepdB and returned as polygons, likesimulate_noise().The computation runs in parallel in ObjectNat’s Rust extension.
- Parameters:
source_points (
GeoDataFrame) – Noise sources. Points are point sources. Lines (roads, railways) are line sources, sampled everysource_spacingmetres. Polygons (industrial sites, noisy buildings) radiate from their outline as line sources. Optional columnssource_noise_db(level at 1 m from the point or line, dB) andgeometric_mean_freq_hzoverride the arguments of the same name per source.obstacles (
GeoDataFrame|None) – Buildings, walls and other obstacles (polygons or lines).Noneor empty for free field.source_noise_db (
float|None) – Level at 1 m for sources without asource_noise_dbcolumn, dB.geometric_mean_freq_hz (
float|None) – Characteristic frequency for sources without ageometric_mean_freq_hzcolumn, Hz.absorb_ratio_column (
str|None) – Column ofobstacleswith the sound absorption ratio of each obstacle (0-1).standard_absorb_ratio (
float) – Absorption ratio for obstacles without a value. Default 0.05 (concrete).trees (
GeoDataFrame|None) – Vegetation polygons; sound crossing them is attenuated.air_temperature (
float) – Air temperature, °C.target_noise_db (
float) – Lowest level to report, dB. Sources reach as far as their own level drops to it.db_sim_step (
float) – Width of the output level bands, dB.reflections (
bool) – Include first-order reflections from obstacle walls.reflection_max_dist (
float) – Only walls closer than this to a source reflect it, metres (default 50, as the maximum reflection distance of engineering models). Larger values are slower.diffraction (
bool) – Bend sound around the corners of obstacles: a receiver hidden from a source but seen from a corner that the source sees at the edge of an obstacle gets the diffracted sound, and along the shadowed side of the obstacle’s convex hull the sound also bends around the next corner. Corners are the convex vertices of the merged outlines simplified by 0.5 m, and the ends of lines.grid_step (
float) – Receiver spacing in metres; smaller is finer and slower.source_spacing (
float|None) – Spacing of the point samples along line and polygon sources, metres (default 5). Each sample getssource_noise_db - 10 lg(pi / s), so that a long line follows the line-source lawsource_noise_db - 10 lg d - k d(3 dB per doubling of distance). Closer to the line than aboutsource_spacingthe individual samples show.source_position_buffer_r (
float) – Radius in metres cut out of an obstacle or tree that contains a source, as insimulate_noise().output (
Literal['zones','receivers','both']) –"zones"(default) for the level bands,"receivers"for the receiver points with their exact levels only (no band polygons are built),"both"for the tuple(bands, receivers).max_workers (
int|None) – Maximum number of threads (Noneuses all cores).
- Return type:
- Returns:
GeoDataFrame with columns
noise_level(upper bound of eachdb_sim_stepband, dB, likesimulate_noise()) andgeometry(one polygon per band), in the CRS ofsource_points. Withoutput="receivers"the receivers, withoutput="both"a tuple(bands, receivers). The receivers have the exactnoise_levelof every receiver that hears at leasttarget_noise_db; theirattrsrecord the grid, sorasterize()turnsnoise_levelinto aRaster.
Notes
Not modelled: ground effect, diffraction over roofs (obstacle heights are not used), paths around three or more corners and reflections of higher order. Places that sound reaches only around three or more corners (inner courtyards, the second row of buildings) get reflected sound only.
Each band covers db_sim_step dB; the receivers (output="receivers") have the exact level, and
objectnat.rasterize() turns them into a continuous map (see Rasters).
Reading the result. The model is energetic: it returns the time-averaged sound level, the quantity that noise maps and norms use, rather than the instantaneous sound pressure. Phase, wave fronts and interference are therefore not computed, and the level falls smoothly with distance. The direct sound and the reflections travel along straight rays, so they pass through the gaps between buildings as straight beams; a first-order reflection is the field of a mirror image of the source behind the wall, limited to the rays that pass through the wall. Where the direct sound already arrives, a reflection with a 5 % absorption ratio adds at most 3 dB. Diffraction fills the shadows. At the shadow boundary the level drops by 4.8 dB, and it falls further as the detour grows; the 20 dB limit is reached at a detour of 2.4 wavelengths, 0.4 m at 2 kHz and 1.7 m at 500 Hz. Shadows are therefore deeper at high frequencies than at low ones. Right behind a building the sound bends around two corners and arrives up to 25 dB below the free-field level; places that sound reaches only around three or more corners (inner courtyards, the second row behind a building) receive reflected sound only.
objectnat.simulate_noise_grid() for a road (line source, 80 dB at 1 m, 1 kHz) and two point sources (95 dB
at 2 kHz, 85 dB at 500 Hz) among the example buildings and vegetation, grid_step=2, receivers rasterized
with objectnat.rasterize(). target_noise_db=30 shows the sound that reaches the shadows. Left:
continuous levels with all paths. Centre and right: the level added by reflections (reflections=False for
comparison) and by diffraction (diffraction=False); cells reached only by these paths are compared with
target_noise_db. Diffraction fills the shadows beside the beams and behind the buildings next to the point
sources.¶
Wave-front simulation¶
Method¶
objectnat.simulate_noise() models propagation from point sources in decay layers of db_sim_step dB. A
layer is the area within the distance at which the level drops by one step, limited by the visibility polygon of
the source. Obstacle boundaries reached by the sound become secondary sources of reflected sound, up to
reflection_n reflections (default 3), with a level reduced by the absorption ratio of the obstacle
(absorb_ratio_column, standart_absorb_ratio); no reflections start within dead_area_r metres of the
previous source. Vegetation (trees, rasterized with tree_resolution) reduces the level in the shadow sector
behind tree polygons by a frequency-dependent amount that grows with the depth of foliage crossed. The simulation
stops at target_noise_db. For a source inside an obstacle or tree polygon, source_position_buffer_r cuts a
hole of that radius around the source; use_parallel distributes the work over processes.
- objectnat.simulate_noise(source_points, obstacles, source_noise_db=None, geometric_mean_freq_hz=None, **kwargs)[source]¶
Simulates noise propagation from a set of source points considering obstacles, trees, and environmental factors.
- Parameters:
source_points (
geopandas.GeoDataFrame) – A GeoDataFrame with one or more point geometries representing noise sources. Optionally, it can include ‘source_noise_db’ and ‘geometric_mean_freq_hz’ columns for per-point simulation.obstacles (
geopandas.GeoDataFrame) – A GeoDataFrame representing obstacles in the environment. If a column with sound absorption coefficients is present, its name should be provided in the absorb_ratio_column argument. Missing values will be filled with the standart_absorb_ratio.source_noise_db (
float, optional) – Default noise level (dB) to use if not specified per-point. Decibels are logarithmic units used to measure sound intensity. A value of 20 dB represents a barely audible whisper, while 140 dB is comparable to the noise of jet engines.geometric_mean_freq_hz (
float, optional) – Default frequency (Hz) to use if not specified per-point. This parameter influences the sound wave’s propagation and scattering in the presence of trees. Lower frequencies travel longer distances than higher frequencies. It’s recommended to use values between 63 Hz and 8000 Hz; values outside this range will be clamped to the nearest boundary for the sound absorption coefficient calculation.
- Keyword Arguments:
absorb_ratio_column (
str, optional) – The name of the column in the obstacles GeoDataFrame that contains the sound absorption coefficients for each obstacle. Default is None. If not specified, all obstacles will have the standart_absorb_ratio.standart_absorb_ratio (
float, optional) – The default sound absorption coefficient to use for obstacles without specified values in the absorb_ratio_column. Default is 0.05, which is a typical value for concrete walls.trees (
geopandas.GeoDataFrame, optional) – A GeoDataFrame containing trees or dense vegetation along the sound wave’s path. Trees will scatter and absorb sound waves.tree_resolution (
int, optional) – A resolution parameter for simulating tree interactions with sound waves. Recommended values are between 2 and 16, with higher values providing more accurate simulation results.air_temperature (
float, optional) – The air temperature in degrees Celsius. The recommended range is from 0 to 30 degrees Celsius, as temperatures outside this range will be clipped. Temperature affects the sound propagation in the air.target_noise_db (
float, optional) – The target noise level (in dB) for the simulation. Default is 40 dB. Lower values may not be relevant for further analysis, as they are near the threshold of human hearing.db_sim_step (
float, optional) – The step size in decibels for the noise simulation. Default is 1. For more precise analysis, this can be adjusted. If the difference between source_noise_db and target_noise_db is not divisible by the step size, the function will raise an error.reflection_n (
int, optional) – The maximum number of reflections (bounces) to simulate for each sound wave. Recommended values are between 1 and 3. Larger values will result in longer simulation times.dead_area_r (
float, optional) – A debugging parameter that defines the radius of the “dead zone” for reflections. Points within this area will not generate reflections. This is useful to prevent the algorithm from getting stuck in corners or along building walls.source_position_buffer_r (
float, optional) – Radius in metres to cut from a containing obstacle or tree around the initial source point. Default is 0, which keeps source geometries unchanged.use_parallel (
bool, optional) – Whether to use ProcessPool for task distribution or not. Default is True.
- Returns:
Noise levels (
noise_level, dB) with the geometries of the areas they cover; the results of all source points are merged into one GeoDataFrame.- Return type:
gpd.GeoDataFrame
objectnat.simulate_noise() for the two point sources of the objectnat.simulate_noise_grid() example
(95 dB at 2 kHz, 85 dB at 500 Hz) among the example buildings and vegetation, reflection_n=2,
target_noise_db=40, db_sim_step=5.¶
Simplified noise frame¶
Method¶
objectnat.calculate_simplified_noise_frame() builds an envelope of possible exposure without a propagation
simulation. Lines and polygons are sampled into points (linestring_point_radius, polygon_point_radius),
the visibility polygon of every sample masks the area that the sound reaches directly, and the level decreases with
distance according to the source level, frequency and temperature. The frame of every source is the maximum over its
samples, and the result is the maximum over sources. Obstacles act only as line-of-sight masks: absorption,
reflections and vegetation are not modelled.
- objectnat.calculate_simplified_noise_frame(noise_sources, obstacles, air_temperature, *, target_noise_db=40, db_sim_step=5, linestring_point_radius=15, polygon_point_radius=5, visibility_max_workers=None)[source]¶
Calculates a simplified environmental noise frame using static noise source geometries without simulating full sound wave propagation or reflections.
This function provides a fast approximation of noise dispersion from a variety of source geometries, including points (e.g., traffic noise measurement points), lines (e.g., roads or railways), and polygons (e.g., industrial zones or buildings). Instead of simulating detailed wave interactions and reflections, it constructs an envelope of potential noise exposure from the visibility polygons of points sampled on the sources and a distance decay that depends on the source level, frequency and temperature.
- Parameters:
noise_sources (
geopandas.GeoDataFrame) –A GeoDataFrame containing geometries of noise sources (Point, LineString, or Polygon). Each feature must have the following two columns:
’source_noise_db’: Sound level at 1 m from the source, in decibels (dB).
’geometric_mean_freq_hz’: Characteristic sound frequency (Hz) used to model distance-based attenuation.
Values in ‘source_noise_db’ must not exceed the physical maximum of 194 dB. Missing or NaN values in required fields will raise an error.
obstacles (
geopandas.GeoDataFrame) – A GeoDataFrame representing physical obstructions in the environment (e.g., buildings, walls). These are used to build visibility masks that affect where sound can propagate. Geometry will be simplified for performance using a default tolerance of 1 unit.air_temperature (
float) – The ambient air temperature in degrees Celsius. This value influences the attenuation model of sound in the atmosphere. Temperatures significantly outside the typical 0–30°C range may lead to inaccurate results.target_noise_db (
float, default40) – The minimum sound level threshold (in dB) to be modelled. Any value below this threshold is considered insignificant and will be excluded from the resulting noise frame. Default is 40 dB.db_sim_step (
float, default5) – The simulation step size (in dB) used to discretize sound levels into spatial layers. Default is 5. Smaller values produce more detailed output but increase computation time.linestring_point_radius (
float, default=15) – The spacing radius (in metres) used when converting LineString geometries into distributed point sources for simulation. Default is 15. Reducing this value improves detail along long lines.polygon_point_radius (
float, default=5) – The point spacing (in metres) for distributing sources within Polygon geometries. Default is 5. Points are sampled across the polygon’s surface and perimeter to represent the full sound-emitting area.visibility_max_workers (
int | None, optional) – Maximum number of threads for the visibility computation. None uses all cores.
- Returns:
A GeoDataFrame representing simplified noise distribution areas. The output geometries are polygons where each polygon is associated with the maximum sound level (in dB) present in that area, as derived from overlapping source zones. The resulting data is dissolved by noise level and returned in the original coordinate reference system (CRS) of the input sources.
- Return type:
gpd.GeoDataFrame
Notes
The function does not model reflections or diffraction. It uses straight-line visibility (line-of-sight) and a layered distance-decay approach for rapid estimation.
Obstacles are used for visibility masking only, not as reflectors or absorbers.
Output resolution and accuracy depend heavily on the geometry type and point distribution settings.
Results are useful for quick noise mapping or for generating initial noise envelopes prior to more detailed simulations.
objectnat.calculate_simplified_noise_frame() for the street (line source, 80 dB at 1 m) and the two point
sources of the same example, target_noise_db=40, db_sim_step=5. Without reflections and diffraction only
the places in the line of sight of a source are reached.¶
Limitations¶
None of the models includes ground effect or meteorological refraction.
objectnat.simulate_noise_grid()includes reflections of the first order and diffraction around one or two vertical edges in plan. It does not use building heights, so diffraction over roofs is not modelled, and places that sound reaches only around three or more corners receive reflections only, which can underestimate their level.objectnat.simulate_noise()andobjectnat.calculate_simplified_noise_frame()include no diffraction.Each source is described by one level and one characteristic frequency; spectra are not modelled, and the results are not equivalent to standardized calculation methods such as ISO 9613-2 or CNOSSOS-EU.
objectnat.simulate_noise()andobjectnat.calculate_simplified_noise_frame()combine sources by the band maximum;objectnat.simulate_noise_grid()sums energies.
Background on the wave-front model is given on the project wiki; the API reference on this page describes the current behaviour.