gmttrack (1) - Linux Man Pages
gmttrack: A shiptrack plotting program
NAMEgmttrack - A shiptrack plotting program
SYNOPSISgmttrack leg-ids -Rwest/east/south/north[r] -Jparameters [ -B[p|s]parameters ] [ -Mtrackticks ] [ -Wpen[red/green/blue][OA] ] [ -A[size] ] [ -K ] [ -O ] [ -P ] [ -U[just/dx/dy/][c|label] ] [ -V ] [ -X[a|c|r][x-shift[u]] ] [ -Y[a|c|r][y-shift[u]] ] [ -ccopies ]
DESCRIPTIONgmttrack reads gmt cruises and creates PostScript code that will plot one or more ship tracks on a map using the specified projection. The PostScript code is written to standard output.
- Can be one or more gmtleg-names, like c2104 v3206 etc.
Selects the map projection. Scale is UNIT/degree, 1:xxxxx, or width in UNIT (upper case modifier).
UNIT is cm, inch, or m, depending on the MEASURE_UNIT setting in .gmtdefaults4, but this can be
overridden on the command line by appending c, i, or m to the scale/width value.
When central meridian is optional, default is center of longitude range on -R option.
Default standard parallel is the equator.
For map height, max dimension, or min dimension, append h, +, or - to the width,
More details can be found in the psbasemap man pages.
-Jcyl_stere/[lon0/[lat0/]]scale (Cylindrical Stereographic)
-Jmlon0/lat0/scale (Mercator - Give meridian and standard parallel)
-Jo[a]lon0/lat0/azimuth/scale (Oblique Mercator - point and azimuth)
-Jo[b]lon0/lat0/lon1/lat1/scale (Oblique Mercator - two points)
-Joclon0/lat0/lonp/latp/scale (Oblique Mercator - point and pole)
-Jq[lon0/[lat0/]]scale (Cylindrical Equidistant)
-Jtlon0/[lat0/]scale (TM - Transverse Mercator)
-Juzone/scale (UTM - Universal Transverse Mercator)
-Jy[lon0/[lat0/]]scale (Cylindrical Equal-Area)
-Jdlon0/lat0/lat1/lat2/scale (Conic Equidistant)
-Jllon0/lat0/lat1/lat2/scale (Lambert Conic Conformal)
-Jpoly/[lon0/[lat0/]]scale ((American) Polyconic)
-Jalon0/lat0[/horizon]/scale (Lambert Azimuthal Equal-Area)
-Jelon0/lat0[/horizon]/scale (Azimuthal Equidistant)
-Jglon0/lat0/altitude/azimuth/tilt/twist/Width/Height/scale (General Perspective).
-Jslon0/lat0[/horizon]/scale (General Stereographic)
-Jkf[lon0/]scale (Eckert IV)
-Jk[s][lon0/]scale (Eckert IV)
-Jr[lon0/]scale (Winkel Tripel)
-Jv[lon0/]scale (Van der Grinten)
-Jp[a]scale[/origin][r|z] (Polar coordinates (theta,r))
-Jxx-scale[d|l|ppow|t|T][/y-scale[d|l|ppow|t|T]] (Linear, log, and power scaling)
- west, east, south, and north specify the Region of interest, and you may specify them in decimal degrees or in [+-]dd:mm[:ss.xxx][W|E|S|N] format. Append r if lower left and upper right map coordinates are given instead of w/e/s/n. The two shorthands -Rg and -Rd stand for global domain (0/360 and -180/+180 in longitude respectively, with -90/+90 in latitude). Alternatively, specify the name of an existing grid file and the -R settings (and grid spacing, if applicable) are copied from the grid.
OPTIONSNo space between the option flag and the associated arguments.
- Sets map boundary annotation and tickmark intervals; see the psbasemap man page for all the details.
- Annotate each leg every time it enters the plot. Optional size is character size in points.
- Do not plot data collected before startdate (mm/dd/yyyy/hh:mm) [Default is first day].
- Do not plot data collected after stopdate (mm/dd/yyyy/hh:mm). [Default is last day].
- More PostScript code will be appended later [Default terminates the plot system].
- To put time/distance Marks on the track. E.g. a500ka24ht6h means (a)nnotate every 500 km (k) and 24 h(ours), with (t)ickmarks every 500 km and 6 hours.
- Selects Overlay plot mode [Default initializes a new plot system].
- Selects Portrait plotting mode [Default is Landscape, see gmtdefaults to change this].
- Do not plot data that are less than startdist km along track from port of departure. [Default is 0].
- Do not plot data that are more than stopdist km along track from port of departure. [Default is length of track].
- Draw Unix System time stamp on plot. By adding just/dx/dy/, the user may specify the justification of the stamp and where the stamp should fall on the page relative to lower left corner of the plot. For example, BL/0/0 will align the lower left corner of the time stamp with the lower left corner of the plot. Optionally, append a label, or c (which will plot the command string.). The GMT parameters UNIX_TIME, UNIX_TIME_POS, and UNIX_TIME_FORMAT can affect the appearance; see the gmtdefaults man page for details. The time string will be in the locale set by the environment variable TZ (generally local time).
- pen is thickness of the trackline. [Default is 1]. Optionally, specify the rgb combination to obtain a colored trackline [Default is black]. Append o for dotted line, a for dashed. [Default is solid].
- -X -Y
- Shift plot origin relative to the current origin by (x-shift,y-shift) and optionally append the length unit (c, i, m, p). You can prepend a to shift the origin back to the original position after plotting, or prepend r [Default] to reset the current origin to the new location. If -O is used then the default (x-shift,y-shift) is (0,0), otherwise it is (r1i, r1i) or (r2.5c, r2.5c). Alternatively, give c to align the center coordinate (x or y) of the plot with the center of the page based on current page size.
- Selects verbose mode, which will send progress reports to stderr [Default runs "silently"].
- Specifies the number of plot copies. [Default is 1].
EXAMPLESTo generate a Mercator plot of the track of cruises C2610 and V1512 in the area 150E to 154E, 18N to 23N, using a Mercator scale of 1.5inch/degree, label the tracks with 10 points characters, annotate the boundaries every degree, and draw gridlines every 30 minutes, and send the plot to the default printer, enter the following command:
REFERENCESWessel, P., and W. H. F. Smith, 2009, The Generic Mapping Tools (GMT) version 4.5.0 Technical Reference & Cookbook, SOEST/NOAA.
Wessel, P., and W. H. F. Smith, 1998, New, Improved Version of Generic Mapping Tools Released, EOS Trans., AGU, 79 (47), p. 579.
Wessel, P., and W. H. F. Smith, 1995, New Version of the Generic Mapping Tools Released, EOS Trans., AGU, 76 (33), p. 329.
Wessel, P., and W. H. F. Smith, 1995, New Version of the Generic Mapping Tools Released, http://www.agu.org/eos_elec/95154e.html, Copyright 1995 by the American Geophysical Union.
Wessel, P., and W. H. F. Smith, 1991, Free Software Helps Map and Display Data, EOS Trans., AGU, 72 (41), p. 441.