.TH MDG77TOGMT l "15 Oct 2001"
.SH NAME
mgd77togmt \- Convert an MGD-77 ascii file to a binary gmt file
.SH SYNOPSIS
\fBmgd77togmt\fP [ \fB\-L\fP\fIlist\fP ] [ \fImgd77file\fP ] \fB\-F\fP\fIlegid\fP \fB\-Y\fP\fIstart_year\fP
[ \fB\-A\fP\fIinformation\fP ] [ \fB\-I\fP\fItime_increment\fP ] [ \fB\-V\fP ]
.SH DESCRIPTION
mgd77togmt reads an ASCII MGD-77 format file [or standard
input] and creates a binary gmt file. The 16 header records specified in
the MGD-77 documentation may or may not be present. If two-way travel times are
available, mgd77togmt will convert those to corrected depths using the Carter
tables. Both old and new (Y2K-compiant) MGD-77 files are supported.
.TP
.B \-L
Name of file with several records of the format \fImgd77file legid start_year\fP. For multiple files, use this option rather than the \fB\-F \-Y\fP combination.
.B \-F
Leg id that will be used in file name (\fIlegid\fP.gmt).
.TP
.B \-Y
The year of the first data point in the file
.SH OPTIONS
No space between the option flag and the associated arguments.
.TP
.B \-A
Set an optional 10 character information string to be stored in the header [Default is blank].
.TP
.B \-I
Used for files where time is missing. The increment is used to calculate
fake times.
.TP
.B \-V
Selects verbose mode, which will send progress reports to stderr [Default runs "silently"].
.SH EXAMPLES
To create a gmt file from the ASCII file c2104.mgd77, try
.br
.sp
mgd77togmt c2104.mgd77 \fB\-Y\fP1977 \fB\-F\fPc2104
.br
.sp
To create new gmt files from all the mgd77-file listed in \fIlist.d\fP, try
.br
.sp
mgd77togmt \fB\-L\fPlist.d \fB\-V\fP
.SH SEE ALSO
dat2gmt, gmt
.SH REFERENCES
Wessel, P., and W. H. F. Smith, 2001, The Generic Mapping Tools (GMT) version
3.4 Technical Reference & Cookbook, SOEST/NOAA.
.br
Wessel, P., and W. H. F. Smith, 1998, New, Improved Version of Generic Mapping
Tools Released, EOS Trans., AGU, 79 (47), p. 579.
.br
Wessel, P., and W. H. F. Smith, 1995, New Version of the Generic Mapping Tools
Released, EOS Trans., AGU, 76 (33), p. 329.
.br
Wessel, P., and W. H. F. Smith, 1995, New Version of the Generic Mapping Tools
Released, http:
American Geophysical Union.
.br
Wessel, P., and W. H. F. Smith, 1991, Free Software Helps Map and Display Data,
EOS Trans., AGU, 72 (41), p. 441.
.br
.br
.sp
MGD77 Task Group, 1977, The Marine Geophysical Data Exchange Format - 'MGD77',
Key to Geophysical Records documentation No. 10, National Geophysical and
Solar-Terrestrial Data Center, Boulder, CO.
.br
.sp
Carter, D. J. T., \fIEcho Sounding Correction Tables: Formerly Matthews' Tables\fP,'
150 pp, Hydrographic Department, Ministry of Defense, Taunton, Somerset, England, 1980.
