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
data(exStudy)
exStudy <- setSpecies(exStudy, method='pamguard')
if (FALSE) {
# not running because files are written to diskwigFiles <- writeWignerData(exStudy, outDir = 'WigFolder')
}