batchCorMatch errors

Overview: I have a large survey to process with corMatch (300GB of audio recordings, all .wav files). I have been using corMatch with individual files to test and am ready to apply it to survey folders (ie all the recordings from a survey site or date). I'm trying to use batchCorMatch, and I keep getting an error in "getOneClip(clip, name, output, write.wav)". getOneClip is an internal function of monitoR

Here is an overview of batchCorMatch and binCorMatch: jonkatz2/monitoR source: R/batchCorMatch.R

Rstudio script from my project:

Calling corMatch for NA . . .
Error in getOneClip(clip, name, output, write.wav) :
clip argument seems to be a file name but no file with the name NA exists.

batchCorMatch(dir.survey = "/Volumes/PWSFX /Workspace 2020/Borneo Data Processing 2020/AMB/A5C/",

  •           ext.template = ".wav", ext.survey = ".wav", templates = "Templates/capcon1.wav", 
    
  •           parallel = FALSE, show.prog = TRUE, cor.method = "pearson", warn = TRUE, time.source = "filename", 
    
  •           fd.rat = 1)
    

Calling corMatch for NA . . .
Error in getOneClip(clip, name, output, write.wav) :
clip argument seems to be a file name but no file with the name NA exists.

This is the error message while adjusting the file path (moving the "/", testing different survey directories, etc). And below that the script after we fixed a couple errors, which yields the same getOneClip error message:

Calling corMatch for NA . . .
Error in getOneClip(clip, name, output, write.wav) : 
  clip argument seems to be a file name but no file with the name NA exists.
> batchCorMatch(dir.survey = "/AMB/A5C/", ext.survey = "wav", templates = capcon.temp7, 
+               parallel = FALSE, show.prog = TRUE, cor.method = "pearson", warn = TRUE, time.source = "fileinfo", 
+               fd.rat = 1)
batchCorMatch(dir.survey = "AMB/A5C", ext.survey = "wav", templates = capcon.temp7, 
              parallel = FALSE, show.prog = TRUE, cor.method = "pearson", warn = TRUE, time.source = "fileinfo", 
              fd.rat = 1)

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.