Convert Seaglider PMAR-XL sound files to .wav format

Read Seaglider audio PMAR-XL .dat files; also convert them to WAVE (.wav) or other soundfile format, optionally downsampling in the process.
7 Downloads
Updated 7 Jul 2022

View License

pmarIn.m function: Read sound from a PMAR-XL (Seaglider acoustic system) file and return the samples and header information.
convertPmar.m script: Given one or more directories, each full of subdirectories with .dat soundfiles recorded by the PMAR-XL acoustic recording system on a Seaglider(tm), convert the soundfiles to WAVE (.wav) files. The resulting .wav files have the start date/time of each PMAR file in the .wav file name. Also create a fileheaders.txt file in each of these directories with a copy of the header portion of each .dat file, which is text. Optionally, filter and downsample the files to a lower sample rate as they're being converted (downsampling requires the signal processing toolbox).

Cite As

David Mellinger (2024). Convert Seaglider PMAR-XL sound files to .wav format (https://www.mathworks.com/matlabcentral/fileexchange/107245-convert-seaglider-pmar-xl-sound-files-to-wav-format), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2021b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.3

Added the ability to cope with incomplete headers in the PMAR's .dat files, provided the 'samplerate' and 'start' fields are still there. (Note that .dat file headers are readable in a text editor.)

1.0.2

Added a feature to use a user-specified sample rate for every output file; this makes output sample rates uniform.

1.0.1

Fixed a bad default parameter value

1.0.0