self_spectra_to_dB {SeaSondeR}R Documentation

Convert Self-Spectra Power to dB

Description

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.

Usage

self_spectra_to_dB(spectrum_values, receiver_gain)

Arguments

spectrum_values

A numeric vector. The power values in linear scale.

receiver_gain

A numeric scalar. The receiver gain in decibels (dB).

Details

The conversion follows the equation:

dB = 10 \log_{10}(|P|) - G

where:

Absolute values of power are used to ensure valid logarithmic calculations.

Value

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

See Also

dB_to_self_spectra for the reverse conversion.


[Package SeaSondeR version 0.2.8 Index]