View source: R/match.echogram.R
match.echogram | R Documentation |
This function verifies ping times between corresponding echograms from two frequencies, eliminating non-matching and duplicated pings.
match.echogram(echogram1, echogram2)
echogram1 |
an object of |
echogram2 |
an object of |
Corresponding echograms refers to data acquired at the same time with different acoustic frequencies. Unmatching pings, i.e. those present in only one frequency, and duplicated pings, are identified by it's associated time and subsequently eliminated.
A list with the two matched echograms.
Héctor Villalobos and Violeta E. González-Maynez
add.echogram
# import 38 and 120 kHz data from an HAC file
hacfile <- system.file("extdata", "D20150510-T202221.hac", package = "echogram")
echo1.038 <- read.echogram(hacfile, channel = 1)
echo1.120 <- read.echogram(hacfile, channel = 2)
# Sv matrices have different number of pings
dim(echo1.038$Sv); dim(echo1.120$Sv)
# Apply match ping times
tmp <- match.echogram(echo1.038, echo1.120)
# split the list in the two echograms
echo1.038 <- tmp$echogram1
echo1.120 <- tmp$echogram2
# number of pings and ping times are now the same for both frequencies
dim(echo1.038$Sv); dim(echo1.120$Sv)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.