contourToFreq: Add Frequency and Time to Pamguard Whistle Binaries

View source: R/contourToFreq.R

contourToFreqR Documentation

Add Frequency and Time to Pamguard Whistle Binaries

Description

Adds items freq and time to a Pamguard binary file from the Whistle & Moan Detector

Usage

contourToFreq(data, verbose = FALSE)

Arguments

data

either a PamBinary class object or just the $data from a PamBinary object

verbose

logical flag to print calculated parameters

Value

data with items freq and time added. These use the calculated FFT window length, hope size, and sample rate to compute the frequency and time values of the saved whistle contour

Author(s)

Taiki Sakai taiki.sakai@noaa.gov

Examples


# load example whistle file
wmFile <- system.file('extdata', 'WM.pgdf', package='PamBinaries')
wmData <- loadPamguardBinaryFile(wmFile)
# converts contour and FFT slice numbers to frequency and time values
wmData <- contourToFreq(wmData)
wmData$data[[1]]$contour
wmData$data[[1]]$freq
wmData$data[[1]]$time


PamBinaries documentation built on April 30, 2022, 1:08 a.m.