-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Wiki
Repository of miscellaneous utilities for managing and processing Slocum glider data.
An in-depth discussion of the Slocum glider native file format and conversion process can be found here.
- processDbds.sh: bash script for converting and merging Slocum glider binary data files to ascii.
- sortDbds.sh: bash script for chronololgically sorting Slocum glider binary data files.
processDbds.sh is a bash script used to convert Slocum binary data files to ascii and merge the flight and science datasets. You must download the following folder in order to run the script:
and set the following bash environment variable:
EXE_DIR
to the download location.
You can also specify the location of the .cac files (used to do the binary to ascii conversion) via the CACHE_DIR environment variable or specify the location via the -c option. Detailed documentation can be found using:
> processDbds.sh -h
Default usage is as follows:
> processDbds.sh BINARY_SOURCE_DIR ASCII_DEST_DIR
This will convert all binary files in BINARY_SOURCE_DIR, merge the flight and science data sets (if found) and write the individual ascii segment files to ASCII_DEST_DIR.
The script has a number of options to allow for the filtering of unwanted sensors, which can result in significantly smaller file sizes, as well as creating Matlab-compatible files.
sortDbds.sh is a bash script that parsed the header lines of one or more Slocum glider binary data files and displays the results to STDOUT. This output can then be sorted and passed to awk to provide the chronologically ascending sorted file order, i.e.:
> sortDbds.sh | sort | awk '{print $2}'
See:
> sortDbds.sh -h
for a full description of the script and options.