Learn R Programming

PamBinaries (version 1.9.3)

contourToFreq: 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)

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

Arguments

data

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

verbose

logical flag to print calculated parameters

Author

Taiki Sakai taiki.sakai@noaa.gov

Examples

Run this code

# 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

Run the code above in your browser using DataLab