nav_hdg control_file
This utility scans the NMEA navigation files and an ADCP CODAS database to generate an ASCII output file with the following columns:
This file is for input in parameter ANGLE_FILE for the rotate utility which corrects heading values stored in a CODAS database. This utility was written for a dataset collected during a cruise where GPS heading from a Seapath 200 (HDT string) was logged at a high sampling rate separately together with all other navigation NMEA messages, while heading logged together with ADCP data was from a gyro compass.
The control file must define the following parameters:
Name of database (with path) containing heading data to be
corrected.
Name of file (with path) containing list of all navigation files
to parse sequentially for heading data. Comments following the
C-syntax are allowed in this file.
Name of output file, with path.
This parameter is required because some NMEA messages containing
time information, such as the GGA message, do not provide the
full date. The given year is taken as the year base for
conversion of time into decimal days. Furthermore, it is assumed
that database profile times are given for the end of profiles.
Hence, full first time information is required to perform
heading statistics for the first ensemble.
as
Heading information can be stored in different variables within a CODAS database. This parameter specifies which variable to read for heading corrections. The following keywords are implemented:
Read heading data from element mn_heading in the
ANCILLARY_1 structure.
Read heading data from element last_heading in the ANCILLARY_2 structure.
In addition to the parameters listed above, the following options are available:
This key word can be used to improve the clarity of the control
file and specify the beginning of options. It has no effect.
Select which navigation messages to parse. One should mention at least one message containing time and another one with heading information. All other messages are not necessary. Unselected messages will be considered as bad navigation lines. Possible keywords are:
This keyword is mandatory and closes the selected list of NMEA messages to parse.
In addition, the keyword ALL will select all the keywords appearing in the above list. To deselect some specific parameters, prefix the undesired keyword with character !.
WARNING:
Avoid specifying more than one message containing time information, because these do sometime differ slightly. In the case of ZDA and GGA messages, if the latter has a slightly earlier time, the whole date will be set to the next day.
Number of navigation lines to skip when a bad input navigation
line is encountered. This is mainly for situations where the
navigation device hangs up and needs a reset: time and position
information is usually wrong during a couple of seconds
(typically 30 to 60 seconds). Hence, the number of line to skip
in such a situation will depend on the navigation sampling
frequency.
This keyword is mandatory and terminates the list of selected options.
Finally, the control file is terminated by a list of time ranges. See time_rng(5) for the syntax of these.
The file specified in parameter out_file.
Pierre Jaccard, Geophysical Institute, University of Bergen, 1999