Skip to content

Commit

Permalink
More experiments with rendering of zooming spectrograms
Browse files Browse the repository at this point in the history
Changed description of dates in file names to accord with what actually works.
Settled on a weight of x10 for the RHZ index to combine with BGN
  • Loading branch information
towsey committed Jun 14, 2019
1 parent 37cf217 commit 498c468
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions src/AnalysisConfigFiles/Towsey.Acoustic.Zooming.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#
#

AnalysisName: Towsey.Acoustic
#AnalysisName: Towsey.Acoustic
#SegmentDuration: units=seconds;
SegmentDuration: 60
#SegmentOverlap: units=seconds;
Expand Down Expand Up @@ -64,11 +64,11 @@ TileOutput: false
# if true, an exception will be thrown if no such date is found
# if false, and a valid date is still found in file name, it will still be parsed
# supports formats like:
# prefix_20140101T235959+1000.mp3
# prefix_20140101T235959+Z.mp3
# prefix_20140101-235959+1000.mp3
# prefix_20140101-235959+Z.mp3
RequireDateInFilename: false
# prefix_20140101T235959+1000.wav
# prefix_20140101T235959Z.wav
# prefix_20140101-235959+1000.wav
# prefix_20140101_235959Z.wav
RequireDateInFilename: true

IndexPropertiesConfig: './IndexPropertiesConfig.Zooming.yml'
EventThreshold: 0.2
Expand Down
6 changes: 3 additions & 3 deletions src/AnalysisPrograms/Sandpit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,9 @@ public static void Audio2CsvOverOneFile()
//string outputPath = @"G:\SensorNetworks\Output\BradLaw\Pillaga24";
//string configPath = @"C:\Work\GitHub\audio-analysis\AudioAnalysis\AnalysisConfigFiles\Towsey.Acoustic.yml";

string recordingPath = @"C:\Ecoacoustics\WavFiles\LizZnidersic\TasmanIsland2015_Unit2_Mez\SM304256_0+1_20151114_211652.wav";
string recordingPath = @"C:\Ecoacoustics\WavFiles\LizZnidersic\TasmanIsland2015_Unit2_Mez\SM304256_0+1_20151114_191652+1000.wav";
//string outputPath = @"C:\Ecoacoustics\Output\Test\Test24HourRecording\TasmanIslandMez\22";
string outputPath = @"C:\Ecoacoustics\Output\Test\TestMezOneHourHiRes\22";
string outputPath = @"C:\Ecoacoustics\Output\Test\TestMezOneHourHiRes\20";
//string configPath = @"C:\Work\GitHub\audio-analysis\src\AnalysisConfigFiles\Towsey.Acoustic.yml";
string configPath = @"C:\Work\GitHub\audio-analysis\src\AnalysisConfigFiles\Towsey.Acoustic.Zooming.yml";

Expand Down Expand Up @@ -688,7 +688,7 @@ public static void DrawZoomingSpectrogramPyramid()
//string ipdir = @"C:\Ecoacoustics\Output\FalseColourSpectrograms\SpectrogramFocalZoom\Towsey.Acoustic.200ms.EclipseFarmstayOLD";
//MAP "\\Sef-bigdata-10\d$\tasmania_mez\output_zooming_indices2019\Towsey.Acoustic" to Q drive
//string ipdir = @"Q:\TasmaniaMez";
string ipdir = @"C:\Ecoacoustics\Output\Test\TestMezOneHourHiRes\22\Towsey.Acoustic";
string ipdir = @"C:\Ecoacoustics\Output\Test\TestMezOneHourHiRes\20\Towsey.Acoustic";
string opdir = @"C:\Ecoacoustics\Output\FalseColourSpectrograms\SpectrogramFocalZoom\TasmaniaMezTest";

// The default zooming LDFC spectrogram config file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static (Dictionary<string, double[,]>, Dictionary<string, IndexProperties

// Make a BNG COMBINATION Spectral matrix.
//var comboMatrix = MatrixTools.MaxOfTwoMatrices(spectra["BNG"], spectra["RHZ"]);
var comboMatrix = MatrixTools.AddMatricesWeightedSum(spectra["BGN"], 1.0, spectra[comboIndexID], 20.0);
var comboMatrix = MatrixTools.AddMatricesWeightedSum(spectra["BGN"], 1.0, spectra[comboIndexID], 10.0);
spectra["BGN"] = comboMatrix;

return (spectra, relevantIndexProperties);
Expand Down

0 comments on commit 498c468

Please sign in to comment.