equency</code> in Hz</li>
<li><code>distance</code> in meters</li>
<li><code>salinity</code> in ppt</li>
<li>water <code>temperature</code> in °C</li>
<li><code>depth</code> in meters</li>
<li><code>pH</code> of water</li>
</ul>
<p>The result is a unitless linear scale factor for sound pressure over the given <code>distance</code>. To get absorption in terms of dB / m, set <code>distance = 1.0</code> and convert the result to decibels. For instance, at a frequency of 100 kHz:</p>
<pre class="julia-repl"><c