seasonder_SelfSpectra2dB | R Documentation |
This function transforms self-spectra power values into decibels (dB) by retrieving the receiver gain from a given SeaSondeR
object.
seasonder_SelfSpectra2dB(seasonder_cs_object, spectrum_values)
seasonder_cs_object |
A |
spectrum_values |
A numeric vector. The power values in linear scale. |
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.
A numeric vector of power values in decibels (dB).
self_spectra_to_dB
for a generic power-to-dB transformation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.