GMT Tutorial Presentation
GMT Tutorial Presentation
GMT Tutorial Presentation
2012
Sebastian Rost
Setup to run GMT
Please check if your ~/.cshrc file contains the following line:
# for GMT4.1
set path = ( $path /nfs/see-fs-01_app1/GMT4.1/bin )
You can do this by opening this by opening this file using your favourite
editor. E.g.:
If you made any changes to your ~/.cshrc file you have to reread it, so that the
computer knows about the changes. This takes only affect in the current konsole
where you type the source command.
http://homepages.see.leeds.ac.uk/~earsro/gmt_tutorial.html
(earsro-see-gw-01.leeds.ac.uk)39% cd
(earsro-see-gw-01.leeds.ac.uk)40% cp -r ~earsro/GMT_Tutorial/data .
map_basic.csh
#!/bin/csh
pscoast -R-180/180/-70/70 –JM0/14/7 -Ba60g30f15/a30g30f15WSen \
-X0.5 -Y2.0 -Dc -S100/100/200 -G100/205/100 -W1/0/255/0 \
-P -K >! map1.ps
gs -sDEVICE=x11 map1.ps
The general GMT command structure is:
There are 3 lines of text instruction, and they are of the format:
x y s a f j text string
where
Making colorscales
#! /bin/csh
set output = globe.ps
#-------------------------------------------------------------
# run the GMT program "pscoast" to make coastlines, and do it
# on a globe and let's center it on lat=-10.5 lon=-81 deg, and
# the size: R=1.0 inch.
#-------------------------------------------------------------
gs -sDEVICE=x11 $output
Adding the new plot
#-------------------------------------------------------------
# NEW PLOT!!!!
# run pscoast to make the zoom cartesian map, off to the
# lower right
#-------------------------------------------------------------