next up previous contents index
Next: P. Using both GMT Up: O. Annotation of Contours Previous: O.4.3 Using a different   Contents   Index

O.5 Putting it all together

Finally, we will make a more complex composite illustration that uses several of the label placement and label attribute settings discussed in the previous sections. We make a map showing the tsunami travel times (in hours) from a hypothetical catastrophic landslide in the Canary IslandsO.2. We lay down a color map based on the travel times and the shape of the seafloor, and travel time contours with curved labels as well as a few quoted lines. The final script is





R=-R-85/5/10/55
grdgradient topo5.grd -Nt1 -A45 -Gtopo5_int.grd
gmtset PLOT_DEGREE_FORMAT ddd:mm:ssF ANNOT_FONT_SIZE_PRIMARY +9p
project -E74W/41N -C17W/28N -G10 -Q > great_NY_Canaries.d
project -E74W/41N -C2.33/48.87N -G100 -Q > great_NY_Paris.d
km=`echo 17W 28N | mapproject -G74W/41N/k -fg --D_FORMAT=%.0f | cut -f3`
cat << EOF > ttt.cpt
0    lightred    3    lightred
3    lightyellow    6    lightyellow
6    lightgreen    100    lightgreen
EOF
grdimage ttt_atl.grd -Itopo5_int.grd -Cttt.cpt $R -JM5.5i -P -K > GMT_App_O_9.ps
grdcontour ttt_atl.grd -R -J -O -K -C0.5 -A1+u"hour"+v+s8+f17 -GL80W/31N/17W/26N,17W/28N/17W/50N \
    -S2 >> GMT_App_O_9.ps
psxy -R -J -W7p,white great_NY_Canaries.d -O -K  >> GMT_App_O_9.ps
pscoast -R -J -B20f5:."Tsunami Travel Times from the Canaries":WSne -N1/thick -O -K -Glightgray \
    -Wfaint -A500 >> GMT_App_O_9.ps
gmtconvert great_NY_*.d -E | psxy -R -J -O -K -Sa0.15i -Gred -Wthin >> GMT_App_O_9.ps
psxy -R -J -W1p great_NY_Canaries.d -O -K -W1p \
    -Sqn1:+f6+s8+l"Distance Canaries to New York = $km km"+ap+v >> GMT_App_O_9.ps
psxy -R -J great_NY_Paris.d -O -K -Sc0.08c -Gblack >> GMT_App_O_9.ps
psxy -R -J -W0.5p great_NY_Paris.d -O -K -SqD1000k:+an+o+gblue+kwhite+LDk+s7+f1 >> GMT_App_O_9.ps
cat << EOF | pstext -R -J -O -K -WwhiteOthin -Dj0.1i/0.1i >> GMT_App_O_9.ps
74W    41N    8    0    17    RT    New York
2.33E    48.87N    8    0    17    CT    Paris
17W    28N    8    0    17    CT    Canaries
EOF
psxy -R -J -O /dev/null >> GMT_App_O_9.ps
rm -f great_NY_Canaries.d great_NY_Paris.d ttt.cpt





with the complete illustration presented as Figure O.9.

Figure O.9: Tsunami travel times from the Canary Islands to places in the Atlantic, in particular New York. Should a catastrophic landslide occur it is possible that New York will experience a large tsunami about 8 hours after the event.
\begin{figure}\centering\epsfig{figure=eps/GMT_App_O_9.eps}\end{figure}


next up previous contents index
Next: P. Using both GMT Up: O. Annotation of Contours Previous: O.4.3 Using a different   Contents   Index
Paul Wessel 2004-10-01