You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The aa-kmap program performs K-Means inter-frequency clustering on acoustic data. It accepts either a raw data file or a YAML/JSON configuration file as its first (positional) argument. Based on the input type, the program runs in one of two modes:
Existing Configuration Mode: Load and modify an existing YAML/JSON config.
New Configuration Mode: Generate a new config from raw input data.
In both modes, optional arguments may override configuration settings, and the modified config is saved with the overrides encoded in the filename.
🗂️ 1. Load from YAML/JSON Config (Existing Configuration)
KMeans Inter-Frequency Clustering for Acoustic Data.
🔣 Positional Arguments
Argument
Description
input_path
Path to either a raw data file (.raw, .nc) or a config file (.yaml). Depending on the type passed will control which mode is used. Whaen a rw is passed, a default export is generated with a new yaml for later recall.
⚙️ Optional Arguments
Argument
Description
-h, --help
Show help message and exit.
--region_files
List of .EVR region files to include.
--line_files
List of .EVL line files to include.
📊 KMeans Clustering Options
Argument
Description
--run_kmeans
Flag to run the KMeans algorithm (true, false, etc.).
--n_clusters
Number of clusters to create (default: 8).
--init
Initialization method (default: k-means++).
--max_iter
Max iterations for KMeans (default: 300).
--n_init
Number of times KMeans is run (default: 10).
--random_state
Random seed (default: 42).
--frequency_list
List of frequencies to use, e.g., 38kHz 70kHz 120kHz.
🧠 Pre-Clustering Model
Argument
Description
--pre_clustering_model
Pre-clustering model type (MADIFRC by default).
🎨 Plotting Options
Argument
Description
--color_map
Matplotlib colormap (default: jet).
--plot_clustermaps
Plot the cluster maps.
--plot_echograms
Plot the echograms.
🔇 Noise Removal
Argument
Description
--remove_noise
Enable noise removal logic.
🧭 Ping & Range Selection (It is greatly preffered that .EVL and .EVR files are provided)
Argument
Description
--ping_time_begin
Start time for ping sub-selection.
--ping_time_end
End time for ping sub-selection.
--range_sample_begin
Starting range sample index.
--range_sample_end
Ending range sample index.
📉 Data Reduction / Mean Back Scattering Options
Argument
Description
--data_reduction_type
Type of reduction, e.g., sample_number.
--ping_num
Number of pings to include (default: 1).
--ping_time_bin
Time binning interval (default: 2S).
--range_meter_bin
Range bin size in meters (default: 2).
--range_sample_num
Number of samples per range bin (default: 1).
💾 Output
Argument
Description
--save_path
Directory to save output, config, and plots. If omitted, current working directory is used.
About
Performs inter-frequency K-Means clustering on acoustic data using echopype