Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to plot spectrograms #112

Open
skraftarcher opened this issue Dec 4, 2024 · 9 comments
Open

Error when trying to plot spectrograms #112

skraftarcher opened this issue Dec 4, 2024 · 9 comments

Comments

@skraftarcher
Copy link

I recently downloaded Triton (11/25/2024). Whenever I try to plot a spectrogram (LTSA or from a single wav file) I get errors. The following is a screenshot of the errors I get when trying to plot a spectrogram of a single wav file:
spectrogram error

@selenefregosi-noaa
Copy link

@skraftarcher See Marie's comment on issue #111 It seems like you are having a similar issue. Do you have the Signal Processing Toolbox? You can check by typing ver in the MATLAB Command Window. This is what mine looks like:

>> ver
-----------------------------------------------------------------------------------------------------
MATLAB Version: 24.2.0.2740171 (R2024b) Update 1
MATLAB License Number: ######
Operating System: Microsoft Windows 11 Enterprise Version 10.0 (Build 22631)
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
-----------------------------------------------------------------------------------------------------
MATLAB                                                Version 24.2        (R2024b)
Image Processing Toolbox                              Version 24.2        (R2024b)
M_Map - mapping toolbox (Author: [email protected])     Version 1.4m                
Mapping Toolbox                                       Version 24.2        (R2024b)
Signal Processing Toolbox                             Version 24.2        (R2024b)
Statistics and Machine Learning Toolbox               Version 24.2        (R2024b)
>> 

@skraftarcher
Copy link
Author

Thank you.

Simple solution to that problem. I was able to build an LTSA and work with the interactive detector to fine tune my settings. But when I try and run the batch detector I get the following error.

batch detector error

@selenefregosi-noaa
Copy link

Hmmm that seems like a more complicated error than just a missing function/toolbox and may require some debugging. I've never worked with the ship detector remora, but it seems like maybe a data input issue.

@skraftarcher
Copy link
Author

skraftarcher commented Dec 10, 2024

The same LTSA works with the Soundtrap 48kHz batch detector settings that are included as an example. However, when I adjust the settings to actually detect the known boats in the recording I get the error above.

@kfrasier
Copy link
Collaborator

kfrasier commented Dec 11, 2024 via email

@skraftarcher
Copy link
Author

skraftarcher commented Dec 11, 2024

I am not in front of my computer at the moment - but the same LTSA was used to fine tune the settings in the interactive detector as was used in the batch detector when I got the error I took the screen shot of.

The interactive detector worked and the batch detector did not.

@skraftarcher
Copy link
Author

The frequency bounds are most definitely within the bandwidth of the LTSA- soundtrap recorded at 48kHz and the LTSA made with 5s averages and 48Hz bins. I have tried many different frequency bounds and get the same error but the maximum high band frequency has not been higher than 5000 Hz.

The only thing I can think of is that I am working in a shallow estuary and boat passages are quite short (between 10s - 1 minute). I have had to change the close and distant thresholds to 10 and 20 seconds respectively. Perhaps that has caused some sort of issue?

@kfrasier
Copy link
Collaborator

kfrasier commented Dec 11, 2024 via email

@skraftarcher
Copy link
Author

Thank you - I will contact them. One thing I did just figure out, in my trouble shooting to see which settings were causing the issues - if I fine tune the settings in the interactive detector then save them and try to load them in the batch detector it will not run. But if I change the settings to the exact same settings in the batch detector window (without loading the settings I saved in the interactive detector) it does run.

I am very much not a matlab person so I am less helpful than normal in the troubleshooting here.

Thank you!
Stephanie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants