1MGD77TRACK(1)                Generic Mapping Tools               MGD77TRACK(1)
2
3
4

NAME

6       mgd77track - A shiptrack plotting program
7

SYNOPSIS

9       mgd77track    NGDC-ids    -Rwest/east/south/north[r]   -Jparameters   [
10       -A[c][size] ]  [ -B[p|s]parameters ] [ -C|g|e  ]  [  -Dastartdate  ]  [
11       -Dbstopdate ] [ -F ] [ -Iignore ] [ -K ] [ -Ltrackticks ] [ -O ] [ -P ]
12       [ -Sastartdist[u] ] [ -Sbstopdist[u] ] [  -TT|t|dms,mc,mfs,mf,mfc  ]  [
13       -U[just/dx/dy/][c|label] ] [ -V ] [ -Wpen ] [ -X[a|c|r][x-shift[u]] ] [
14       -Y[a|c|r][y-shift[u]] ] [ -ccopies ]
15

DESCRIPTION

17       mgd77track reads NGDC MGD77 cruises and creates  PostScript  code  that
18       will  plot one or more ship tracks on a map using the specified projec‐
19       tion.  The PostScript code is written to standard output.
20
21       NGDC-ids
22              Can be one or more of five kinds of specifiers:
23              1) 8-character NGDC IDs, e.g., 01010083, JA010010etc., etc.
24              2) 2-character <agency> codes which will return all cruises from
25              each agency.
26              3)  4-character  <agency><vessel>  codes,  which will return all
27              cruises from those vessels.
28              4) =<list>, where <list> is a table with NGDC IDs, one per line.
29              5) If nothing is specified we return all  cruises  in  the  data
30              base.
31              (See mgd77info -F for agency and vessel codes).  The ".mgd77" or
32              ".nc" extensions will automatically be appended, if needed  (use
33              -I  to  ignore certain file types).  Cruise files will be looked
34              for first in the current directory and second in all directories
35              listed in $MGD77_HOME/mgd77_paths.txt [If $MGD77_HOME is not set
36              it will default to $GMT_SHAREDIR/mgd77].
37
38       -J     Selects the map projection. Scale is  UNIT/degree,  1:xxxxx,  or
39              width  in  UNIT  (upper case modifier).  UNIT is cm, inch, or m,
40              depending on the MEASURE_UNIT setting in .gmtdefaults4, but this
41              can be overridden on the command line by appending c, i, or m to
42              the scale/width  value.   When  central  meridian  is  optional,
43              default  is  center  of  longitude  range on -R option.  Default
44              standard parallel is the equator.  For map  height,  max  dimen‐
45              sion,  or min dimension, append h, +, or - to the width, respec‐
46              tively.
47              More details can be found in the psbasemap man pages.
48
49              CYLINDRICAL PROJECTIONS:
50
51              -Jclon0/lat0/scale (Cassini)
52              -Jcyl_stere/[lon0/[lat0/]]scale (Cylindrical Stereographic)
53              -Jj[lon0/]scale (Miller)
54              -Jm[lon0/[lat0/]]scale (Mercator)
55              -Jmlon0/lat0/scale (Mercator - Give meridian and standard paral‐
56              lel)
57              -Jo[a]lon0/lat0/azimuth/scale  (Oblique  Mercator  -  point  and
58              azimuth)
59              -Jo[b]lon0/lat0/lon1/lat1/scale (Oblique Mercator - two points)
60              -Joclon0/lat0/lonp/latp/scale  (Oblique  Mercator  -  point  and
61              pole)
62              -Jq[lon0/[lat0/]]scale (Cylindrical Equidistant)
63              -Jtlon0/[lat0/]scale (TM - Transverse Mercator)
64              -Juzone/scale (UTM - Universal Transverse Mercator)
65              -Jy[lon0/[lat0/]]scale (Cylindrical Equal-Area)
66
67              CONIC PROJECTIONS:
68
69              -Jblon0/lat0/lat1/lat2/scale (Albers)
70              -Jdlon0/lat0/lat1/lat2/scale (Conic Equidistant)
71              -Jllon0/lat0/lat1/lat2/scale (Lambert Conic Conformal)
72
73              AZIMUTHAL PROJECTIONS:
74
75              -Jalon0/lat0[/horizon]/scale (Lambert Azimuthal Equal-Area)
76              -Jelon0/lat0[/horizon]/scale (Azimuthal Equidistant)
77              -Jflon0/lat0[/horizon]/scale (Gnomonic)
78              -Jglon0/lat0[/horizon]/scale (Orthographic)
79              -Jglon0/lat0/altitude/azimuth/tilt/twist/Width/Height/scale
80              (General Perspective).
81              -Jslon0/lat0[/horizon][/slat]/scale (General Stereographic)
82
83              MISCELLANEOUS PROJECTIONS:
84
85              -Jh[lon0/]scale (Hammer)
86              -Ji[lon0/]scale (Sinusoidal)
87              -Jkf[lon0/]scale (Eckert IV)
88              -Jk[s][lon0/]scale (Eckert IV)
89              -Jn[lon0/]scale (Robinson)
90              -Jr[lon0/]scale (Winkel Tripel)
91              -Jv[lon0/]scale (Van der Grinten)
92              -Jw[lon0/]scale (Mollweide)
93
94              NON-GEOGRAPHICAL PROJECTIONS:
95
96              -Jp[a]scale[/origin][r|z] (Polar coordinates (theta,r))
97              -Jxx-scale[d|l|ppow|t|T][/y-scale[d|l|ppow|t|T]]  (Linear,  log,
98              and power scaling)
99
100       -R     west, east, south, and north specify the Region of interest, and
101              you   may   specify   them   in   decimal    degrees    or    in
102              [+-]dd:mm[:ss.xxx][W|E|S|N]  format.  Append r if lower left and
103              upper right map coordinates are given instead of  w/e/s/n.   The
104              two  shorthands  -Rg  and -Rd stand for global domain (0/360 and
105              -180/+180 in longitude respectively, with -90/+90 in latitude).
106

OPTIONS

108       No space between the option flag and the associated arguments.
109
110       -A     Annotate each leg every time it enters the  plot.  Append  c  to
111              annotate  using  the  MGD77 cruise ID [Default uses the filename
112              prefix].  Optional size is the font size  in  points.   The  leg
113              annotation font is controlled by LABEL_FONT.
114
115       -B     Sets  map  boundary  annotation  and tickmark intervals; see the
116              psbasemap man page for all the details.
117
118       -C     Select procedure for along-track distance calculation:
119                   f Flat Earth distances.
120                   g Great circle distances [Default].
121                   e Geodesic distances on current GMT ellipsoid.
122
123       -Da    Do  not  plot  data   collected   before   startdate   (yyyy-mm-
124              ddT[hh:mm:ss])  [Default is first day].
125
126       -Db    Do   not   plot   data   collected   after   stopdate  (yyyy-mm-
127              ddT[hh:mm:ss]). [Default is last day].
128
129       -F     Do not apply the error bit flags if present  in  a  MGD77+  file
130              [Default will apply these flags upon reading the data].
131
132       -I     Ignore  certain  data  file  formats  from consideration. Append
133              a|c|t to ignore MGD77  ASCII,  MGD77+  netCDF,  or  plain  table
134              files,  respectively. The option may be repreated to ignore more
135              than one format.  [Default ignores none].
136
137       -K     More PostScript code will be appended later [Default  terminates
138              the plot system].
139
140       -L     To  put  time/distance log-marks on the track. E.g. a500ka24ht6h
141              means (a)nnotate every 500 km (k) and 24 h(ours),  with  (t)ick‐
142              marks  every  500 km and 6 hours.  Alternatively you may use the
143              modifiers d (days) and n (nautical miles).
144
145       -O     Selects Overlay plot mode [Default initializes a new  plot  sys‐
146              tem].
147
148       -P     Selects Portrait plotting mode [Default is Landscape, see gmtde‐
149              faults to change this].
150
151       -Sa    Do not plot data that are less than startdist meter along  track
152              from  port of departure.  Append k for km, m for miles, or n for
153              nautical miles [Default is 0 meters].
154
155       -Sb    Do not plot data that are more than stopdist meter  along  track
156              from  port of departure.  Append k for km, m for miles, or n for
157              nautical miles [Default is end of track].
158
159       -T     Controlls the attributes of the three kinds of  markers  (T  for
160              the  first time marker in a new day, t for additional time mark‐
161              ers in the same day, and d for distance markers).  For  each  of
162              these  you  can specify the 5 comma-separated attributes marker‐
163              size, markercolor, markerfontsize, markerfont,  and  markerfont‐
164              color.  Repeat the -T option for each marker type.
165
166       -U     Draw Unix System time stamp on plot.  By adding just/dx/dy/, the
167              user may specify the justification of the stamp  and  where  the
168              stamp  should  fall on the page relative to lower left corner of
169              the plot.  For example, BL/0/0 will align the lower left  corner
170              of  the  time  stamp  with  the  lower  left corner of the plot.
171              Optionally, append a label, or c (which will  plot  the  command
172              string.).   The  GMT  parameters  UNIX_TIME,  UNIX_TIME_POS, and
173              UNIX_TIME_FORMAT can affect the appearance; see the  gmtdefaults
174              man page for details.  The time string will be in the locale set
175              by the environment variable TZ (generally local time).
176
177       -W     Append pen used for the  trackline.  [Default  is  0.25p,black].
178              [Default is solid].
179
180       -X -Y  Shift  plot origin relative to the current origin by (x-shift,y-
181              shift) and optionally append the length unit (c, i, m, p).   You
182              can  prepend a to shift the origin back to the original position
183              after plotting, or prepend  r [Default]  to  reset  the  current
184              origin  to the new location.  If -O is used then the default (x-
185              shift,y-shift) is (0,0), otherwise it is (r1i, r1i)  or  (r2.5c,
186              r2.5c).  Alternatively, give c to align the center coordinate (x
187              or y) of the plot with the center of the page based  on  current
188              page size.
189
190       -V     Selects verbose mode, which will send progress reports to stderr
191              [Default runs "silently"].
192
193       -c     Specifies the number of plot copies. [Default is 1].
194

EXAMPLES

196       To generate a Mercator plot of the track of the cruise 01010007 in  the
197       area  70W to 20E, 40S to 20N, using a Mercator scale of 0.1inch/degree,
198       label the tracks with 10 points  characters,  annotate  the  boundaries
199       every  10  degrees,  draw gridlines every 5 degrees, and mark the track
200       every day and 1000 km, with ticks every 6 hours and 250  km,  and  send
201       the plot to the default printer, enter the following command:
202
203       mgd77track    01010007    -R70W/20E/40S/20N    -Jm0.1    -B10g5    -A10
204       -La1da1000kf6hf250k | lpr
205

SEE ALSO

207       mgd77info(1), psbasemap(1) mgd77list(1)
208

REFERENCES

210       Wessel, P., and W. H. F. Smith, 2005, The Generic Mapping  Tools  (GMT)
211       version 4.1 Technical Reference & Cookbook, SOEST/NOAA.
212       Wessel,  P., and W. H. F. Smith, 1998, New, Improved Version of Generic
213       Mapping Tools Released, EOS Trans., AGU, 79 (47), p. 579.
214       Wessel, P., and W. H. F. Smith, 1995, New Version of the  Generic  Map‐
215       ping Tools Released, EOS Trans., AGU, 76 (33), p. 329.
216       Wessel,  P.,  and W. H. F. Smith, 1995, New Version of the Generic Map‐
217       ping Tools Released, http://www.agu.org/eos_elec/95154e.html, Copyright
218       1995 by the American Geophysical Union.
219       Wessel,  P., and W. H. F. Smith, 1991, Free Software Helps Map and Dis‐
220       play Data, EOS Trans., AGU, 72 (41), p. 441.
221       The  Marine  Geophysical  Data   Exchange   Format   -   "MGD77",   see
222       http://www.ngdc.noaa.gov/mgg/dat/geodas/docs/mgd77.txt
223
224
225
226GMT 4.3.1                         15 May 2008                    MGD77TRACK(1)
Impressum