convertPower: Convert Received Power to Sv or TS

View source: R/convertPower.R

convertPowerR Documentation

Convert Received Power to Sv or TS

Description

Convert acoustic power from imported EK60 raw files to Sv or TS data.

Usage

convertPower(ekraw, frequency = NULL, output = "Sv", saCorr)

Arguments

ekraw

Imported EK60 data, as returned by read.EK60_raw.

frequency

An integer corresponding to index of the transceiver in the data to convert.

output

A string indicating whether the power should be converted to acoustic backscattering strength (“Sv”) or to target strength (“TS”).

saCorr

sa correction value from calibration

Details

While the function operates on the EK60 data, it should be preferable used through ek2echogram, which will convert the ek data to echogram.

Value

A two dimensions array [depth samples, pings] with the desired output.

Author(s)

Héctor Villalobos.

See Also

ek2echogram.

Examples

if(interactive()){
ek <- read.EK60_raw("D20130504-T083828.raw", parseNMEA = TRUE, angles = TRUE)

Sv <- convertPower(ek, output = "Sv")
image(Sv)
}

hvillalo/echogram documentation built on Oct. 2, 2023, 7:28 a.m.