Calculate a set of "standard" measurements for odontocete clicks
standardClickCalcs(
data,
sr_hz = "auto",
calibration = NULL,
filterfrom_khz = 10,
filterto_khz = NULL,
winLen_sec = 0.0025
)
A data frame with one row for each channel of click waveform
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 Wave
class
object, like one created by Wave
.
either 'auto'
(default) or the numeric value of the sample
rate in hertz. If 'auto'
, the sample rate will be read from the
'sr' of data
a calibration function to apply to the spectrum, must be a gam. If NULL no calibration will be applied (not recommended).
frequency in khz of highpass filter to apply, or the lower
bound of a bandpass filter if filterto_khz
is not NULL
if a bandpass filter is desired, set this as the upper bound.
If only a highpass filter is desired, leave as the default NULL
value
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.
Taiki Sakai taiki.sakai@noaa.gov
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)
data(testClick)
standardClickCalcs(testClick)
Run the code above in your browser using DataLab