Convert raw PMAR files

Guide for converting raw PMAR .dat files to .wav or .flac

agate includes utilities for converting raw PMARXL acoustic files (.dat) into a more easily readable .wav format. An example workflow is provided in the agate\example_workflows folder and detailed instructions are below.

Dependency references

A function-ized and modified version of the convertPmar.m script and associated function pmarIn (written by Dave Mellinger and available in the Mathworks File Exchange: convertPmar) are included in agate.

Example workflow

The script and function have been modified and combined to work within agate. The input CONFIG files are populated from a PMAR-specific configuration (.cnf) file. An example can be found in the agate/settings folder.

See workflow_convertPMAR.m in the example_workflows folder for a simple example workflow for converting a mission’s PMAR .dat files to .wav.

Like other workflows in agate it must first be initialized with a mission-level configuration file (e.g., agate_config_example.cnf). Only the top REQUIRED and CONFIG.pm settings in the OPTIONAL - acoustics sections of the configuration file are needed for file conversion.

Additionally, a PMAR conversion configuration file (e.g., pmarConvert_example.cnf) is needed. This contains the specific paths and is where you can set your desired conversion settings. Detailed descriptions of each parameter setting are in the example configuration file.

Back to top

Need to convert between WAV and FLAC or downsample your files? See General acoustic utilities.