Comments (8)
Could you share a bit more information so we can try to troubleshoot.
What error messages are you getting?
Is this issue happening when you are trying to create a soundscape LTSA?
What is the format of the filenames that you are reading in? It is important the time stamp fits a certain format.
from triton.
Hi,
Thank you very much for your answer.
There was an issue with the last wav file in the folder selected for LTSA computation. I fixed it in a "dirty way" by adding some lines in the sm_calc_ltsa function (around line 175) :
if (yi+nsamp) < info_audio.TotalSamples
[dall,Fs] = audioread( fullfile(PARAMS.ltsa.indir,PARAMS.ltsa.fname(k,:)), [yi yi-1+nsamp], 'native' );
else
[dall,Fs] = audioread( fullfile(PARAMS.ltsa.indir,PARAMS.ltsa.fname(k,:)), [yi info_audio.TotalSamples], 'native' );
warning('sm_calc_ltsa : ndays too long, reading up to the end of last wav file')
end
Any better idea?
I also noticed that the plotted LTSA (just after computation) does not correspond to the one plotted when triton is restarted and remora>soundscape metric>load LTSA is executed. It plots the same image as if the LTSA computed with the remora soundscape is open with the triton control panel file>open LTSA. Any idea why?
Finally: I tried to compute soundscape metrics with the remora, but the output CSV files only contain headers (no data inside). Again, I would appreciate any suggestion.
Thank you very much in advance !
from triton.
sorry, I forgot to add the previous line of my code, just above the if:
info_audio = audioinfo(fullfile(PARAMS.ltsa.indir,PARAMS.ltsa.fname(k,:)));
from triton.
And to answer your questions (sorry for the several messages):
What error messages are you getting?
The error was with audioread trying to read too far in the last wav file
Is this issue happening when you are trying to create a soundscape LTSA?
yes
What is the format of the filenames that you are reading in? It is important the time stamp fits a certain format.
The files are wav files recorded from a home made device. The names fit the standards of the Soundtrap data (ex : "20220426_093500UTC_V00OS11.WAV").
Thanks again
from triton.
Hi @chuetz
I think your 'dirty fix' for the initial audioread error shouldn't present any issues and thanks for pointing it out - it is likely a fix worth making permanent for others that are trying to create LTSAs for durations of wavs that are not a full day duration.
For your other two issues:
Different visual display of LTSA following creation and opening it later:
Could you upload a screenshot and also the .ltsa file here so I can look at them and try to see what is going on.
I think that the plotting code for right after an LTSA is made is slightly different (but just in colormap display, not in the data displayed) than when one is opened using File>Open LTSA but I need to look into that more for the soundscape remora to confirm.
No soundscape metrics - if you upload the LTSA here I can take a closer look at it.
Thanks,
Selene
from triton.
Hi Selene,
Thank you for the quick answer!
Concerning the visual display, it looks like it is a bug when the computation just finished. When I close triton and reload the soundmetric LTSA using the remora, it's fine.
Concerning the metrics, it might very well be that I'm using the wrong parameters. I'm uploading the csv files and the log, but the ltsa cannot be uploaded here (file type not supported).
LTSA was computed using the remora, and the following parameters:
-wav files have a 22050Hz sampling rate
-PARAMS.ltsa.tave = 10; % averaging time [seconds]
-PARAMS.ltsa.dfreq = 200; % frequency bin size [Hz]
-PARAMS.ltsa.ndays = 1; % length of LTSA [days]
-PARAMS.ltsa.nstart = 1; % start number of LTSA file (e.g. want to start at week 2)
Thank you very much in advance for your help!
[ltsa_sm_PSD_mean_1h.csv](https://github.com/M
logfile.txt
arineBioAcousticsRC/Triton/files/9633124/ltsa_sm_PSD_mean_1h.csv)
from triton.
@chuetz just as an FYI I also have a wonky looking output when the soundscape LTSA is first computed, but then it looks fine when I load it. That is just a bug that needs to be resolved.
For what it's worth, the nice thing about the soundscape ltsa's is that you can make them just 1 day at a time, so you can look at really fine resolution (1 sec, 1 Hz) and then compute metrics on those fine resolution LTSAs. I typically use settings like 10 sec/200 Hz for creating just "regular" LTSAs that are used for manual analysis to find cetaceans, boat sounds, etc. and then the soundscape remora is specially set up do make these finer scale ltsas to look at noise trends (someone at MBARC, please chime in here if you all do something different, this is just from my experience!)
from triton.
from triton.
Related Issues (20)
- Ship Detector - recommend changing "Duty Cycle Data" to "Remove Extreme Low Outliers"
- Missing sm_init files? HOT 2
- Error initializing triton - Error using xml_read Your MATLAB version is too old. You need version 7.1 or newer. HOT 5
- Ship Detector - transfer function error
- NNet doesn't know correct input dimensions for classification step
- Logger improvements HOT 1
- Explosion Detector
- Remora for batch creating LTSAs for multiple directories HOT 5
- Colorbar on MATLAB based UI does not update with changes in brightness and contrast of the LTSA
- Compute Soundscape Metrics "Bandpass Edges" Ignoring Low Frequency Limit HOT 2
- Error generating LTSAs HOT 2
- Error computing Soundscape Metrics HOT 3
- cursor not moving to bottom of pickxyz output in Message window
- empty CSV output file when computing metrics on LTSA HOT 1
- dateoffest.m missing from Detector Remora HOT 1
- Conversion of Flac file into xwav file HOT 1
- Batch run detections not matching Interactive detector results HOT 6
- meaning of the "MIN. Seconds/Average"(in GUI) or REMORA.sm.cmpt.perc (in code) setting? HOT 1
- Ship Detector - Always Removing Disk-Write Noise, with simple fix HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from triton.