-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Macey Rafter edited this page Jun 12, 2019
·
4 revisions
To run the explosions detector:
- Download the Explosions-Detector and Triton folder and add it to your computer.
- Open up MATLAB and add the Explosions-Detector and the Triton folder to your path. Make sure that Triton is in your MATLAB path as well otherwise you will probably get a MATLAB error:
Undefined function 'utFindFiles' for input arguments of type 'cell'.
Error in xcorr_explosion_p2_v3 (line 26)
[PathFileList, FileList, PathList] =
- Open the script "xcorr_explosion_p2_v4.m" from the Explosions-Detector file folder.
- Important lines to edit within the script are:
- Line 18: Selects the input folder with all of the .xwav files to run through the detector.
- Line 19: Saves and names the detector files to a different folder than the input folder.
- Line 27: Makes sure that the pathway to the explosion template is correct (this template .mat file is saved in the explosions detector code folder).
- Hit run, selecting the df20 folder containing the xwav files.
- The detector will begin. Detection mat files are generated in an "Explosions" folder created in the df20 folder.
After running your detections through GPL Review (https://github.com/ScrippsWhaleAcoustics/GPLReview), if you want to convert the detection mat files into times when airguns occurred, use merge_explosions_one_file.m
Note: You will have to convert these times from CVS format to a date format in Excel!