This function converts self-spectra power values from a linear scale to decibels (dB). The transformation considers the receiver gain to adjust the power measurements accordingly.
Details
The conversion follows the equation: $$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.
Absolute values of power are used to ensure valid logarithmic calculations.
See also
dB_to_self_spectra
for the reverse conversion.