Convert Self-Spectra to dB Using a SeaSondeR Object
Source:R/SeaSondeRCS.R
seasonder_SelfSpectra2dB.Rd
This function transforms self-spectra power values into decibels (dB) by retrieving the receiver gain from a given SeaSondeR
object.
Details
This function first extracts the receiver gain in decibels from the seasonder_cs_object
using seasonder_getReceiverGain_dB
and then applies the conversion using:
$$dB = 10 \log_{10}(|P|) - G$$
where:
\( dB \) is the power in decibels,
\( P \) is the self-spectra power in linear scale,
\( G \) is the receiver gain in decibels.
This function ensures consistency by obtaining the receiver gain directly from the SeaSondeR
object.
See also
self_spectra_to_dB
for a generic power-to-dB transformation.