standardClickCalcs {PAMpal} | R Documentation |
Calculate a Set of Measurements for Clicks
Description
Calculate a set of "standard" measurements for odontocete clicks
Usage
standardClickCalcs(
data,
sr_hz = "auto",
calibration = NULL,
filterfrom_khz = 10,
filterto_khz = NULL,
winLen_sec = 0.0025
)
Arguments
data |
a list that must have 'wave' containing the wave form as a
matrix with a separate column for each channel, and 'sr' the
sample rate of the data. Data can also be a |
sr_hz |
either |
calibration |
a calibration function to apply to the spectrum, must be a gam. If NULL no calibration will be applied (not recommended). |
filterfrom_khz |
frequency in khz of highpass filter to apply, or the lower
bound of a bandpass filter if |
filterto_khz |
if a bandpass filter is desired, set this as the upper bound.
If only a highpass filter is desired, leave as the default |
winLen_sec |
length in seconds of fft window. The click wave is first shortened to this number of samples around the peak of the wave, removing a lot of the noise around the click. Following approach of JB/EG/MS. |
Details
Calculations of parameters mostly follow the approach outlined in Griffiths et al (2020) <doi:10.1121/10.0001229> and Baumann-Pickering et al (2010) <doi:10.1121/1.3479549>. Additionally, up to 3 highest peak frequencies and the "troughs" between them are calculated (see peakTrough)
Value
A data frame with one row for each channel of click waveform
Author(s)
Taiki Sakai taiki.sakai@noaa.gov
Examples
data(testClick)
standardClickCalcs(testClick)