sampleRange: Determine acoustic samples depth range

View source: R/sampleRange.R

sampleRangeR Documentation

Determine acoustic samples depth range

Description

Calculate sample range according to sound speed and sample interval for imported EK60 raw files.

Usage

sampleRange(ekraw, frequency = NULL)

Arguments

ekraw

Imported EK60 data, as returned by read.EK60_raw.

frequency

An integer corresponding to index of the transceiver in the data for which to obtain the sample range.

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 vector with sample range (m).

Author(s)

Héctor Villalobos.

See Also

ek2echogram.

Examples

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

R <- sampleRange(ek, frequency = 1)
R
}

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