Next: P. Special Operations 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.nc -Nt1 -A45 -Gtopo5_int.nc
    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 -Sc/1 ttt_atl.nc -Itopo5_int.nc -Cttt.cpt $R -JM5.3i -P -K > GMT_App_O_9.ps
    grdcontour ttt_atl.nc -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 -Wfatter,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 -Wthick great_NY_Canaries.d -O -K \
            -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 -Wthinner 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 -Wwhite,Othin -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

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.

Next: P. Special Operations Up: O. Annotation of Contours Previous: O.4.3 Using a different Contents Index