mgd77track − A shiptrack plotting program |
mgd77track NGDC-ids −Rwest/east/south/north −Jparameters [ −A[c][size] ] [ −Btickinfo ] [ −Cf|g|e ] [ −Dastartdate ] [ −Dbstopdate ] [ −Iignore ] [ −K ] [ −Ltrackticks ] [ −O ] [ −P ] [ −Sastartdist[unit] ] [ −Sbstopdist[unit] ] [ −TT|t|dms,mc,mfs,mf,mfc ] [ −U[dx/dy/][label] ] [ −V ] [ −Wpen ] [ −Xx-shift ] [ −Yy-shift ] [ −ccopies ] |
mgd77track reads NGDC MGD77 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. |
NGDC-ids |
Can be one or more MGD77 8-character cruise identifiers. To give a list of names, use ‘cat cruises.lis‘. The ".mgd77" or ".nc" extensions will automatically be appended, if needed (use −I to ignore certain file types). Cruise files will be looked for first in the current directory and second in all directories listed in $MGD77_HOME/mgd77_paths.txt [If $MGD77_HOME is not set it will default to $GMTHOME/share/mgd77]. |
−J |
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. For map height, max dimension, or min dimension, append h, +, or - to the width, respectively. |
More details can be found in the psbasemap man pages. CYLINDRICAL PROJECTIONS: −Jclon0/lat0/scale (Cassini) AZIMUTHAL PROJECTIONS: −Jalon0/lat0/scale (Lambert) CONIC PROJECTIONS: −Jblon0/lat0/lat1/lat2/scale
(Albers) MISCELLANEOUS PROJECTIONS: −Jhlon0/scale (Hammer) NON-GEOGRAPHICAL PROJECTIONS: −Jp[a]scale[/origin][r]
(Polar coordinates (theta,r)) |
−R |
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 wesn. The two shorthands −Rg −Rd stand for global domain (0/360 or -180/+180 in longitude respectively, with -90/+90 in latitude). |
No space between the option flag and the associated arguments. |
−A |
Annotate each leg every time it enters the plot. Append c to annotate using the MGD77 cruise ID [Default uses the filename prefix]. Optional size is the font size in points. The leg annotation font is controlled by LABEL_FONT. |
||
−B |
Sets map boundary annotation and tickmark intervals; see the psbasemap man page for all the details. |
||
−C |
Select procedure for along-track distance calculation: |
f Flat Earth distances. |
−Da |
Do not plot data collected before startdate (yyyy-mm-ddT[hh:mm:ss]) [Default is first day]. |
||
−Db |
Do not plot data collected after stopdate (yyyy-mm-ddT[hh:mm:ss]). [Default is last day]. |
||
−I |
Ignore certain data file formats from consideration. Append a|c|t to ignore MGD77 ASCII, MGD77+ netCDF, or plain table files, respectively. The option may be repreated to ignore more than one format. [Default ignores none]. |
||
−K |
More PostScript code will be appended later [Default terminates the plot system]. |
||
−L |
To put time/distance log-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. Alternatively you may use the modifiers d (days) and n (nautical miles). |
||
−O |
Selects Overlay plot mode [Default initializes a new plot system]. |
||
−P |
Selects Portrait plotting mode [GMT Default is Landscape, see gmtdefaults to change this]. |
||
−Sa |
Do not plot data that are less than startdist meter along track from port of departure. Append k for km, m for miles, or n for nautical miles [Default is 0 meters]. |
||
−Sb |
Do not plot data that are more than stopdist meter along track from port of departure. Append k for km, m for miles, or n for nautical miles [Default is end of track]. |
||
−T |
Controlls the attributes of the three kinds of markers (T for the first time marker in a new day, t for additional time markers in the same day, and d for distance markers). For each of these you can specify the 5 comma-separated attributes markersize, markercolor, markerfontsize, markerfont, and markerfontcolor. Repeat the −T option for each marker type. |
||
−U |
Draw Unix System time stamp on plot. User may specify where the lower left corner of the stamp should fall on the page relative to lower left corner of plot. Optionally, append a label, or c (which will plot the command string.). The GMT parameters UNIX_TIME and UNIX_TIME_POS can affect the appearance; see the gmtdefaults man page for details. |
||
−W |
Append pen used for the trackline. [Default is 0.25p,black]. [Default is solid]. |
||
−X −Y |
Shift origin of plot by (x-shift,y-shift). Prepend a for absolute coordinates; the default (r) will reset plot origin. Give c to center plot using current page size. |
||
−V |
Selects verbose mode, which will send progress reports to stderr [Default runs "silently"]. |
||
−c |
Specifies the number of plot copies. [Default is 1]. |
To generate a Mercator plot of the track of the cruise 01010007 in the area 70W to 20E, 40S to 20N, using a Mercator scale of 0.1inch/degree, label the tracks with 10 points characters, annotate the boundaries every 10 degrees, draw gridlines every 5 degrees, and mark the track every day and 1000 km, with ticks every 6 hours and 250 km, and send the plot to the default printer, enter the following command: mgd77track 01010007 −R70W/20E/40S/20N −Jm0.1 −B10g5 −A10 −La1da1000kf6hf250k | lpr |
Wessel, P., and W. H. F. Smith, 2005, The Generic Mapping
Tools (GMT) version 4.1 Technical Reference & Cookbook,
SOEST/NOAA. |