QutEcoacoustics / audio-analysis

The audio analysis code (AnalysisPrograms.exe) for the QUT Ecoacoustics Research Group
https://ap.qut.ecoacoustics.info/
Apache License 2.0
52 stars 12 forks source link

Faulty axes for FCS when using NoGaps rendering mode in ConcatenateIndexFiles #248

Open ThomasLuypaert opened 5 years ago

ThomasLuypaert commented 5 years ago

Describe the bug

When using ConcatenateIndexFiles with NoGaps rendering mode to create FCSs for long-duration intermittent recordings (1-min every 15-min), the x- and y-axes are faulty.

  1. The y-axis suffers from a spacing issue (as the frequencies go up to 192 kHz, values overlap). An option to increase the y-axis tick interval would be useful.

  2. The x-axis displays the wrong time. This is likely the result of the non-continuous nature of my data.

Expected behavior

A FCS with correct x- and y-axes.

Diagnostics

Screenshots

Acoustic_Test__2Maps

Additional Details

Add any other context about the problem here.

atruskie commented 5 years ago

Great catch!

For the y-axis, the current config file supports changing the YAxisTicInterval. If you bump that to 10000 it should be much better.

https://github.com/QutEcoacoustics/audio-analysis/blob/79a2f0079fd6388eab51bee433e2ae6ea2444030/src/AnalysisConfigFiles/SpectrogramFalseColourConfig.yml#L22-L27

I'm going to suggest adding an Automatic mode to the Y-Axis though that will choose appropriate values... well automatically.


For the x-axis, yeah you're absolutely right. For non-continuous data (i.e. the NoGaps option) we weren't sure if anyone would even use that kind of visualization. So we didn't bother fixing the axis. We are also not sure what the axis should look like. Do you have any suggestions?

Here is my proposal:

image

The red-dotted lines indicate non-contiguous data. Your data is regular so this would work well. For irregular data, or a mix of contiguous or not, it would need to be different.

Scenario: one-minute every 15, except for dawn (05:00), which is recorded continuously for 3 hours in 30-minute contiguous recordings (I'm using the same image, so the FCS data is wrong, but let's imagine).

image

I've also added a source indicator (Green-Blue alternating strip) to that image which denotes when a different audio file is used as the source data.

We should probably fix the dotted-grid markers too.

Any opinions: @towsey, @elizianeoliveira, @KellieVella, @ninascarpelli?

ThomasLuypaert commented 5 years ago

Your proposal to fix the x-axis looks great. Perhaps a 12-hour interval for the time ticks would be useful, so we can always see midnight and noon for each day?