GMT v.5.1 * 1 2015 12 28 *1
GMT Generic Mapping Tools 1990 GMT 2013 11 GMT version 5 GMT v.5 We encourage all GMT users to start using version 5 immediately... (GMT Documentation Release 5.1.2, p.23) GMT v.5 GMT GMT v.5 GMT v.5 GMT GMT gmt --version 5.1.2 GMT 5 5.1.2 GMT GMT Version 4.5.11 Copyright 1991-2013 Paul Wessel and Walter H. F. Smith ( ) 1 4.5.11 GMT GMT 4 GMT 4 i
GMT Linux UNIX Windows Mac OS X UNIX Free BSD Mac OS X Mac OS 10.9.5 MacPorts Windows Cygwin Windows GMT 20 Paul Wessel Walter H. F. Smith GMT 20 OS 1 Remke Soharro Joaquim Luis Florian Wobbe 2015 12 28 2015 11 24 ii
i 1 GMT 1 1.1......................................... 1 1.2...................................... 2 2 3 3 4 3.1 psxy................................. 4 3.2 pscoast............................. 15 3.3 psxy, pstext...................... 18 4 24 4.1 GMT.................................... 24 4.2...................... 27 29 iii
1 GMT 1.1 1.1.1 UNIX UNIX UNIX UNIX GMT 1990 2015 9 UNIX 1.1.2 GMT UNIX 1 UNIX p.16 GMT 1 1 GMT GMT GMT GMT GMT UNIX GMT v.5 1
gmt G M T gmt gmt GMT GMT Documentation 1.2 GMT GMT Documentation pdf GMT Docs.pdf 260 Docs Technical Reference and Cookbook A Map-Making Tutorial 2 GMT v.5 1 pdf GMT Manpages.pdf gmt gmt.conf psbasemap pscoast pstext psxy pdf pdf 400 2
2 6 gmt.conf GMT psbasemap 4 Docs CHAPTER 7 psbasemap basemap basemap pscoast pstext psxy Docs 7.1 GMT summary 3
3 3.1 psxy ak135-f IRIS http://ds.iris.edu/ds/products/emc-ak135-f/ AK135F AVG.csv http://ds.iris.edu/files/products/emc/data/ak135f/ak135f AVG.csv, 1 (km) 2 (g/cm 3 ) 3 P (km/s) 4 S (km/s) 2 0.00,1.0200,1.4500,0.0000,57822.00,0.00 3.00,1.0200,1.4500,0.0000,57822.00,0.00 3.00,2.0000,1.6500,1.0000,163.35,80.00 3.30,2.0000,1.6500,1.0000,163.35,80.00 3.30,2.6000,5.8000,3.2000,1478.30,599.99 10.00,2.6000,5.8000,3.2000,1478.30,599.99 10.00,2.9200,6.8000,3.9000,1368.02,599.99 18.00,2.9200,6.8000,3.9000,1368.02,599.99 18.00,3.6410,8.0355,4.4839,950.50,394.62 43.00,3.5801,8.0379,4.4856,972.77,403.93 6168.15,13.0036,11.2557,3.6633,602.05,85.03 6218.86,13.0074,11.2586,3.6653,601.70,85.03 6269.57,13.0100,11.2606,3.6667,601.46,85.03 6320.29,13.0117,11.2618,3.6675,601.32,85.03 6371.00,13.0122,11.2622,3.6678,601.27,85.03 4
3.1.1 psxy gmt 3.1 1 1 gmt psxy AK135F_AVG. csv - JX7c/7c -R0/6371/0/15 - BWeSn +t" ak135 -f model" - Bxa1000f500g250 +l" Depth ( km)" - Bya5f5g2.5+l" Density (g/ cm3 )" -W1p -V -P -X2.5c -Y2.5c > ak135f. ps 1 gmt GMT v.5 psxy GMT UNIX UNIX gmt psxy ak135f.ps 3.1 2 -J -J( x X ){ x }/{ y } 5
15 ak135f model Density (g/cm3) 10 5 0 0 1000 2000 3000 4000 5000 6000 Depth (km) 3.1 3.1 c, i, p 3 Docs 8.1.3 Length Units c i p GMT 72 = 1 = 2.54 72.27 1 Docs p.38 x y / x y -JX7c/7c x y x y 7 cm 1 X x x y 7 cm GMT 1 -JX7c/ 7c 6
N (n) W (w) E (e) S (s) 3.2 / psxy: Warning: not a valid number and may not be decoded properly. psxy: Error for input file: No such file (7c) 1 2 7c AK135F AVG.csv -R Range -R{ x }/{ x }/{ y }/{ y } -W Width p 1 -B Boundary 2 7
-B[ ][ ] W (w) E (e) S (s) N (n) 3.2 WESN W (w) E (e) S (s) N (n) +t"( )" t title t " +t x y ak135-f model -B( )[ ] x x y y 1 2 3 4 4 1 2 3 (1 2 3 ){ } 1 a 2 f 3 g +l label l a1000f500g250 +l" Depth ( km)" 1000 500 250 Depth (km) y -By 3.1 Docs 8.19 Character escape sequences 3.1 y cm 3 3 -P Portrait landscape 8
ak135f model 6000 5000 Depth (km) 4000 3000 2000 1000 0 0 5 10 15 Density (g/cm3) 3.3 3.2 -X, -Y 2 x y -J GMT GMT -X, -Y -V Verbose Docs 8.4.7 Verbose feedback: The -V option AK135F AVG.csv x 2 y -: -J -R -B x y 3.2 2 x y 1 gmt psxy AK135F_AVG. csv -: - JX7c/7c -R 0/15/0/6371 - BWeSn +t"ak -135- f 9
0 ak135f model 1000 Depth (km) 2000 3000 4000 5000 6000 0 5 10 15 Density (g/cm3) 3.4 3.3 model" -Bx a5f5g2.5+l" Density (g/ cm3)" -By a1000f500g250 +l" Depth ( km)" -W1p -V -P -X2.5c -Y2.5c > ak135f. ps 3.3 y -J y - 3.3 3 y 1 gmt psxy AK135F_AVG. csv -: - JX7c/-7c -R0/15/0/6371 - BWeSn +t"ak -135- f model" - Bxa5f5g2.5+l" Density (g/ cm3)" - Bya1000f500g250 +l" Depth ( km)" -W1p -V -P -X2.5c -Y2.5c > ak135f. ps 3.4 -J 3.1.2 P psxy 4 1 2 10
0 ak135f model 1000 Depth (km) 2000 3000 4000 5000 6000 0 5 10 15 P wave Velocity (km/s) 3.5 3.4 1 3 P 2 1 UNIX awk GMT -i -i, y P x P 3 1 1 0 P 2 0 -i2,0 -i Docs 8.4.15 Input column selection: The -i option -i 3.4 P 1 gmt psxy AK135F_AVG. csv -i2,0 - JX7c/-7c -R0/15/0/6371 - BWeSn +t"ak -135- f model" - Bxa5f5g2.5+l"P- wave Velocity ( km/s)" - Bya1000f500g250 +l" Depth ( km)" -W1p -V -P -X2.5c -Y2.5c > ak135f. ps 3.5 -i 11
ak135f model 0 1000 Depth (km) 2000 3000 4000 5000 6000 0 5 10 15 Velocity (km/s) 3.6 3.5 P S P S 3.5 P S 1 1 gmt psxy AK135F_AVG. csv -i2,0 - JX7c/-7c -R0/15/0/6371 - BWeSn +t"ak -135- f model" - Bxa5f5g2.5+l" Velocity ( km/s)" - Bya1000f500g250 +l" Depth ( km)" -W1p -V -P -X2.5c -Y2.5c -K > ak135f. ps 2 gmt psxy AK135F_AVG. csv -i3,0 -J -R -W1p -V -O >> ak135f. ps 1 1 *1 2 3.6 -i 3.4 P -K *2 *1 UNIX *2 12
S -i 4 -J -R -W -B -B -O Overlay -O P S -W -W 3 - W,, GMT v.4 3, -J 3 c i p 5 1. 0 255 1 0 255 2. RGB 3 0 255 3. HSV 3 hue - saturation - value, brightness - 0 360 0 360 0 1 GMT -K GMT h showpage 13
4. CMYK / 0 100 5. GMT gmtcolors 3 ( ) _( )[ 2 ]:( ) 20_10:0 20 10 20 10 20 10 10 10 20 10 10 10 : 0 20 10 20 10 : 10 10 10 10 25 3.5 -W P S RGB 3.6 P S 2 1 gmt psxy AK135F_AVG. csv -i2,0 - JX7c/-7c -R0/15/0/6371 - BWeSn +t"ak -135- f model" - Bxa5f5g2.5+l" Velocity ( km/s)" - Bya1000f500g250 +l" Depth ( km)" -W1p,255/0/0,12_4:0 -V -P -X2.5c -Y2.5c -K > ak135f. ps 2 gmt psxy AK135F_AVG.csv -i3,0 -J -R -W1p,0/0/255,4_4:0 -V -O >> ak135f.ps 14
0 ak135f model 1000 Depth (km) 2000 3000 4000 5000 6000 0 5 10 15 Velocity (km/s) 3.7 3.6 3.7 -W Docs 8.13 Specifying pen attributes linear - linear power log Docs 9.1.1 Cartesian linear transformation (-Jx -JX) psbasemap 3.2 pscoast 2 pscoast Docs CHAPTER 10 GMT Map Projections psbasemap 1 Docs 10.3.1 Mercator projection (-Jm -JM)... 3.8 3.7 1 gmt pscoast -Jm7c -R135 /136/34/35 -Bxa0.5f0.25g0.25 -Bya0.5f0.25g0 15
135 00' 35 00' 135 30' 136 00' 35 00' 34 30' 34 30' 34 00' 135 00' 135 30' 34 00' 136 00' 3.8 3.7.25 - BWESN -Dh -A1 - G200 -W1p -P -V -X2c -Y2c > abu. ps -J -R -B -W -P -V -X -Y -W GMT Docs 8.4 Standarized command line options -J m M x X 1 7 c -R x y -B -Bx... -By... -Bxya0.5f0.25g0.25 0.5 FORMAT GEO MAP 4 16
GMT : 135 23 15 135:23:15 -B m s -Bxa1mf20s 1 20 -D 5 f: full h: high i: intermediate l: low c: crude Docs 21.4 The Five Resolutions -A -A km 2 3.7 -A 10000 -G GMT -W 1 17
-S -S -G -W psxy Docs CHAPTER 10 psbasemap pscoast 3.3 psxy, pstext ABU 3 stn.dat 3.8 stn.dat ABU 34.860 135.574 *3 psxy 3.9 1 gmt pscoast -Jm7c -R135 /136/34/35 -Bxya0.5f0.25g0.25 -BWESN -Dh -A1 - G200 -W1p -P -V -X2c -Y2c -K > abu. ps 2 gmt psxy stn. dat -i2,1 -J -R -St0.4c -G0 -V -O >> abu. ps 3.9 pscoast -B -K psxy -i stn.dat 2 3 -i *3 18
135 00' 35 00' 135 30' 136 00' 35 00' 34 30' 34 30' 34 00' 135 00' 135 30' 34 00' 136 00' 3.9 3.9 1 -S psxy 3 t triangle 3 c pscoast -G psxy pscoast -O pstext 1. 2. Docs justification 3. 4. 5. pstext 19
T M B Strings L C R 3.10 justification 1. psxy x y -: y x GMT 2. justification 1. 3.10 2 1. TL LT 3. 4., -W 3 Docs CHAPTER 18 G. PostScript Fonts Used by GMT Font Name # -W 18 Helvetica 18p,Helvetica,255/0/0 3 / RGB 5. Docs 8.19 Character escape sequences pstext 20
135 00' 35 00' 135 30' 136 00' 35 00' ABU 34 30' 34 30' 34 00' 135 00' 135 30' 34 00' 136 00' 3.11 3.11 2 pstext 3.10 1 135.574 34.860 TC 0.0 16p,Helvetica,255/0/0 ABU ABU.inpt 6 1 2 1. 3 justification 2. 4 3. 5 4. 6 5. ABU 3.11 1 1 gmt pscoast -Jm7c -R135 /136/34/35 -Bxya0.5f0.25g0.25 -BWESN -Dh -A1 - G200 -W1p -P -V -X2c -Y2c -K > abu. ps 2 gmt psxy stn. dat -i2,1 -J -R -St0.4c -G0 -V -O -K >> abu. ps 3 gmt pstext ABU. inpt -J -R -F+j+a+f -O >> abu. ps 21
ABU 3.11 1 2 2 psxy -K 3 3 pstext -F Format -F +j justification justification +a angle +f font 3.10 3 5 2 pstext 1 pstext 2. 4. -F 14 Palatino +f14p,palatino,0 3.12 2 1 gmt pscoast -Jm7c -R135 /136/34/35 -Bxya0.5f0.25g0.25 -BWESN -Dh -A1 - G200 -W1p -P -V -X2c -Y2c -K > abu. ps 2 gmt psxy stn. dat -i2,1 -J -R -St0.4c -G0 -V -O -K >> abu. ps 3 gmt pstext ABU. inpt2 -J -R -F+j+a+f14p, Palatino,0 -O >> abu. ps ABU.inpt2 3.13 2 135.574 34.860 TC 0.0 ABU -F justification -F -F 22
3.8 3.10 3.13 1 awk UNIX *4 awk UNIX awk pstext Docs 11.7 A simple location map *4 Perl Ruby 23
4 Helvetica Times GMT UNIX UNIX GMT *1 4.1 GMT GMT gmt.conf GMT v.4 Docs 4.8 Incompatibilities between GMT 5 and GMT 4 ( ) FONT ANNOT PRIMARY 12p,Helvetica,black Docs CHAPTER 18 G. PostScript Fonts Used by GMT *1 Docs gmt.conf (environmental variable) parameter 24
2.5 FORMAT_GEO_MAP D 2.5 N FORMAT_GEO_MAP DF 0 0 2.5 175 177.5 180 177.5 175 2.5 S 175 E 177.5 E 180 177.5 W 175 W 2.5 FORMAT_GEO_MAP +D FORMAT_GEO_MAP +DF 2.5 N 0 0 2.5 175 177.5 180 182.5 185 2.5 FORMAT_GEO_MAP D 2.5 S 175 E 177.5 E 180 E 182.5 E 185 E FORMAT_GEO_MAP DF 2.5 N 0 0 2.5 185 182.5 180 177.5 175 2.5 S 185 W 182.5 W 180 W 177.5 W 175 W 4.1 FORMAT GEO MAP N S E W FONT LABEL FONT ANNOT PRIMARY 16p,Helvetica,black FONT TITLE FONT ANNOT PRIMARY 24p,Helvetica,black FORMAT GEO MAP N S W E 3-180 +180 + 0 360 - -360 0 25
34.6666666667 34.6611111111 34.6555555556 34.65 34.6444444444 34.6388888889 34.6333333333 34.6277777778 34.6222222222 34.6166666667 34.6111111111 34.6055555556 4.2 FORMAT_GEO_MAP D 34.6 135.4 135.433333333 135.466666667 34 40' 34 40' 34 39' 34 39' 34 39' 34 38' 34 38' 34 38' 34 37' 34 37' 34 37' 34 36' FORMAT_GEO_MAP ddd:mm 35 35 35 35 35 35 35 35 35 35 35 35 34 39'40" 34 39'20" 34 39'00" 34 38'40" 34 38'20" 34 38'00" 34 37'40" 34 37'20" 34 37'00" 34 36'40" 34 36'20" FORMAT_GEO_MAP ddd 35 135 135 135 FORMAT_GEO_MAP ddd:mm:ss 34 40'00" 34 36' 34 36'00" 135 24' 135 26' 135 28' 135 24' 135 26' 135 28' FORMAT GEO MAP 2 20 1 D ddd[:mm:ss][.xxx] [ ] 135 10 ddd:mm 135 10 10 ddd:mm:ss NSWE F F N, S, W, E N, S, W, E 4.1 4.2 gmt.conf FORMAT GEO OUT MAP DEGREE SYMBOL (degree) 26
ring, degree, colon, none 4 ring degree 2 colon none (ring) GMT ring degree Canvas ring degree MAP FRAME TYPE plain fancy inside 3 plain fancy inside fancy fancy MAP GRID CROSS SIZE PRIMARY 3 0 0 0 MAP GRID PEN PRIMARY dpi p dpi 0.25p,black PROJ ELLIPSOID WGS-84 gmt.conf http://vldb.gsi.go.jp/sokuchi/datum/tokyodatum.html PROJ LENGTH UNIT 3 GMT gmtdefaults 4.2 gmt.conf GMT Docs 27
8.2 GMT defaults GMT gmtset Times gmt gmtset FONT_LABEL,Times -Roman, FONT LABEL 2 1, 3, UNIX - 2 -- FONT_LABEL =, Times - Roman, 1 4.1 FORMAT GEO MAP gmt pscoast -Jm0.24i -R175/185/ -2.5/2.5 -Bxa2.5f2.5 -Bya2.5f2.5 - BnSWe -Dl -A1 - G200 -W1p -P -V -X0.8i -Y6i -K -- FORMAT_GEO_MAP =D > fig5-4-1.ps PROJ ELLIPSOID gmt.conf *2 *2 case sensitive case insensitive 28
GMT GMT Docs Docs CHAPTER 7 Docs CHAPETER 11 29