Learn R Programming

PAMpal (version 1.4.4)

writeWignerData: Write Wigner Transform Data of Click Detections to Disk

Description

Create Wigner-Ville transform data of click clips from all detections and save them to disk. A CSV file will also be written that lists all UIDs contained in the output

Usage

writeWignerData(
  x,
  n = 256,
  t = 300,
  outDir = ".",
  mode = "nparray",
  progress = TRUE,
  ...
)

Value

A list with two items: files - a vector of file names for the Wigner data that were successfully created, any that were not able to be written will be NA, and warnings, a list with items containing event IDs that triggered any warnings

Arguments

x

AcousticStudy object containing data to make Wigner data for

n

number of frequency bins for Wigner transform (recommended power of 2)

t

number of samples to use for the click clip passed to the transform

outDir

directory to write data to

mode

specifies the kind of output that will be created, currently only supports creating NumPy arrays using the reticulate package, in future will support image creation

progress

logical flag to show progress bar

...

optional arguments to pass

Author

Taiki Sakai taiki.sakai@noaa.gov

Examples

Run this code

data(exStudy)
exStudy <- setSpecies(exStudy, method='pamguard')
if (FALSE) {
# not running because files are written to disk
wigFiles <- writeWignerData(exStudy, outDir = 'WigFolder')
}

Run the code above in your browser using DataLab