<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <!--Converted with LaTeX2HTML 2002-2-1 (1.71) original version by: Nikos Drakos, CBLU, University of Leeds * revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan * with significant contributions from: Jens Lippmann, Marek Rouchal, Martin Wilck and others --> <HTML> <HEAD> <TITLE>O.5 Putting it all together</TITLE> <META NAME="description" CONTENT="O.5 Putting it all together"> <META NAME="keywords" CONTENT="GMT_Docs"> <META NAME="resource-type" CONTENT="document"> <META NAME="distribution" CONTENT="global"> <META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1"> <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"> <LINK REL="STYLESHEET" HREF="GMT_Docs.css"> <LINK REL="previous" HREF="node248.html"> <LINK REL="up" HREF="node239.html"> <LINK REL="next" HREF="node253.html"> </HEAD> <BODY bgcolor="#ffffff"> <!--Navigation Panel--> <A NAME="tex2html6258" HREF="node253.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html6252" HREF="node239.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html6248" HREF="node251.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html6254" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html6256" HREF="node256.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html6259" HREF="node253.html">P. Special Operations</A> <B> Up:</B> <A NAME="tex2html6253" HREF="node239.html">O. Annotation of Contours</A> <B> Previous:</B> <A NAME="tex2html6249" HREF="node251.html">O.4.3 Using a different</A> <B> <A NAME="tex2html6255" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html6257" HREF="node256.html">Index</A></B> <BR> <BR> <!--End of Navigation Panel--> <H1><A NAME="SECTION003250000000000000000"> O.5 Putting it all together</A> </H1> <P> 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 Islands<A NAME="tex2html1951" HREF="footnode.html#foot33412"><SUP>O.2</SUP></A>. 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 <P> <BR CLEAR="ALL"> <HR> <BR> <PRE>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 </PRE> <BR CLEAR="ALL"> <HR> <P> with the complete illustration presented as Figure <A HREF="#fig:GMT_App_O_9">O.9</A>. <DIV ALIGN="CENTER"><A NAME="fig:GMT_App_O_9"></A><A NAME="33579"></A> <TABLE> <CAPTION ALIGN="BOTTOM"><STRONG>Figure O.9:</STRONG> 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.</CAPTION> <TR><TD> <DIV ALIGN="CENTER"><IMG WIDTH="667" HEIGHT="466" ALIGN="BOTTOM" BORDER="0" SRC="img305.png" ALT="\includegraphics{scripts/GMT_App_O_9}"></DIV></TD></TR> </TABLE> </DIV> <P> <HR> <!--Navigation Panel--> <A NAME="tex2html6258" HREF="node253.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html6252" HREF="node239.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html6248" HREF="node251.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html6254" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html6256" HREF="node256.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html6259" HREF="node253.html">P. Special Operations</A> <B> Up:</B> <A NAME="tex2html6253" HREF="node239.html">O. Annotation of Contours</A> <B> Previous:</B> <A NAME="tex2html6249" HREF="node251.html">O.4.3 Using a different</A> <B> <A NAME="tex2html6255" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html6257" HREF="node256.html">Index</A></B> <!--End of Navigation Panel--> <ADDRESS> Paul Wessel 2010-07-14 </ADDRESS> </BODY> </HTML>