Skip to contents

This function transforms self-spectra power values into decibels (dB) by retrieving the receiver gain from a given SeaSondeR object.

Usage

seasonder_SelfSpectra2dB(seasonder_cs_object, spectrum_values)

Arguments

seasonder_cs_object

A SeaSondeR cross-spectral object.

spectrum_values

A numeric vector. The power values in linear scale.

Value

A numeric vector of power values in decibels (dB).

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.