seasonder_SelfSpectra2dB {SeaSondeR}R Documentation

Convert Self-Spectra to dB Using a SeaSondeR Object

Description

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.

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:

This function ensures consistency by obtaining the receiver gain directly from the SeaSondeR object.

Value

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

See Also

self_spectra_to_dB for a generic power-to-dB transformation.


[Package SeaSondeR version 0.2.8 Index]