Class SpectralIndicesToAndFromTable
This class contains methods for interconversion of files of Spectral Indices to/from a single "pivot-table" file.
Inherited Members
Namespace: AudioAnalysisTools.Indices
Assembly: AudioAnalysisTools.dll
Syntax
public static class SpectralIndicesToAndFromTable
Methods
| Improve this Doc View SourceMain(SpectralIndicesToAndFromTable.Arguments)
This method started 04-12-2014 to process consecutive days of acoustic indices data for 3-D spectrograms.
Declaration
public static void Main(SpectralIndicesToAndFromTable.Arguments arguments)
Parameters
Type | Name | Description |
---|---|---|
SpectralIndicesToAndFromTable.Arguments | arguments |
ReadAllSpectralIndicesAndWriteToDataTable(FileInfo, DirectoryInfo, DirectoryInfo)
Reads through multiple directories to read multiple files of spectral indices. The spectral indices are combined day-wise into pivot-tables which are written to file.
Declaration
public static void ReadAllSpectralIndicesAndWriteToDataTable(FileInfo indexPropertiesConfig, DirectoryInfo inputDirInfo, DirectoryInfo opDir)
Parameters
Type | Name | Description |
---|---|---|
FileInfo | indexPropertiesConfig | |
DirectoryInfo | inputDirInfo | |
DirectoryInfo | opDir |
ReadPivotTableToSpectralIndices(String)
Reads a single csv file in form of table and returns a dictionary of spectral indices.
Declaration
public static Dictionary<string, double[, ]> ReadPivotTableToSpectralIndices(string csvFileName)
Parameters
Type | Name | Description |
---|---|---|
String | csvFileName | path to file containing a table of spectral index values. |
Returns
Type | Description |
---|---|
Dictionary<String, Double[,]> | dictionary of matrices. |
ReadSpectralIndicesAndWriteToDataTable(String[], DateTime, DirectoryInfo, String, String)
Declaration
public static void ReadSpectralIndicesAndWriteToDataTable(string[] spectrogramKeys, DateTime thisDate, DirectoryInfo targetDirInfo, string targetFileName, string opFilePath)
Parameters
Type | Name | Description |
---|---|---|
String[] | spectrogramKeys | |
DateTime | thisDate | |
DirectoryInfo | targetDirInfo | |
String | targetFileName | |
String | opFilePath |