windwhisper.noiseanalysis

Classes

NoiseAnalysis

Aggregate noise propagation, ambient data and outputs for reporting.

Module Contents

class windwhisper.noiseanalysis.NoiseAnalysis(noise_propagation, wind_turbines, listeners=None)

Aggregate noise propagation, ambient data and outputs for reporting.

noise_propagation
wind_turbines
l_den
l_night
merge_maps()

Merge ambient and propagation rasters into combined datasets.

Returns:

Tuple (merged_dataset, merged_dataset_night) containing Lden and Lnight datasets with ambient, wind, combined, net and flip layers.

Return type:

tuple[xarray.Dataset, xarray.Dataset]

generate_map(filepath='noise_map.html')

Render interactive HTML maps for Lden and Lnight rasters.

Parameters:

filepath (str) – Base filepath for the generated HTML maps.

get_geojson_contours()

Create GeoJSON contour layers for the combined noise outputs.

Returns:

Tuple containing GeoJSON objects for daytime and night-time combined, ambient and net layers plus the coordinate reference system string.

Return type:

tuple[Any, Any, Any, Any, Any]