maad.spl.dBSPL_at_r0

maad.spl.dBSPL_at_r0(f, r, L, r0=1, t=20, rh=60, pa=101325, a0=0.02, pRef=1e-05)[source]

Estimate the sound pressure level L0 (dB SPL) at distance r0 from sound pressure level L measured at distance r.

This function takes into account the geometric, atmospheric and habitat attenuations.

Parameters:
f: scalar or array-like

frequency in Hz

r: scalar or array-like

distance in m at which p in Pa was measured if r is a vector, r must have the same length as L

Lscalar or array-like

Sound pressure level L in dB SPL if L is a vector, L must have the same length as r

r0scalar

distance at which p0 needs to be estimated (generally @1m)

t: scalar, optional, default is 20

temperature in °C

rh: scalar, optional, default is 60

relative humidity in %

pa: scalar, optional, default is 101325

atmospheric pressure in Pa

a0scalar, optional, default is 0.02

attenuation coefficient of the habitat in dB/kHz/m

Returns:
L0scalar or array-like

estimated sound presssure level L0 at distance r0 [SCALAR]