standardClickCalcs: Calculate a Set of Measurements for Clicks

Description Usage Arguments Value Author(s)

View source: R/standardClickCalcs.R

Description

Calculate a set of "standard" measurements for odontocete clicks. Most of calculations following approach of Baumann-Pickering / Soldevilla

Usage

1
2
3
4
5
6
7
8
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 Wave class object, like one created by Wave.

sr_hz

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

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 is not NULL

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 NULL value

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.

Value

A data frame with one row for each channel of click waveform. Calculates approximate noise level and click duration from the TK energy (Soldevilla JASA17), up to 3 highest peak frequencies and the 'troughs' between them (see peakTrough), and the 3 and 10dB bandwidth levels and 'Q' value (see Q).

Author(s)

Taiki Sakai taiki.sakai@noaa.gov


TaikiSan21/PAMr documentation built on Nov. 15, 2020, 9:46 p.m.