Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > 5764c67416561ab82b35afcf9c650e17 > files > 688

GMT-doc-4.5.2-1.fc13.noarch.rpm

<!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="node247.html">
<LINK REL="up" HREF="node238.html">
<LINK REL="next" HREF="node252.html">
</HEAD>

<BODY  bgcolor="#ffffff">
<!--Navigation Panel-->
<A NAME="tex2html6210"
  HREF="node252.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html6204"
  HREF="node238.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html6200"
  HREF="node250.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html6206"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html6208"
  HREF="node255.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html6211"
  HREF="node252.html">P. Special Operations</A>
<B> Up:</B> <A NAME="tex2html6205"
  HREF="node238.html">O. Annotation of Contours</A>
<B> Previous:</B> <A NAME="tex2html6201"
  HREF="node250.html">O.4.3 Using a different</A>
 &nbsp; <B>  <A NAME="tex2html6207"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html6209"
  HREF="node255.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="tex2html1921"
  HREF="footnode.html#foot32823"><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 &gt; great_NY_Canaries.d
project -E74W/41N -C2.33/48.87N -G100 -Q &gt; great_NY_Paris.d
km=`echo 17W 28N | mapproject -G74W/41N/k -fg --D_FORMAT=%.0f | cut -f3`
cat &lt;&lt; EOF &gt; 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 &gt; 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 &gt;&gt; GMT_App_O_9.ps
psxy -R -J -Wfatter,white great_NY_Canaries.d -O -K  &gt;&gt; GMT_App_O_9.ps
pscoast -R -J -B20f5:."Tsunami travel times from the Canaries":WSne -N1/thick -O -K -Glightgray \
        -Wfaint -A500 &gt;&gt; GMT_App_O_9.ps
gmtconvert great_NY_*.d -E | psxy -R -J -O -K -Sa0.15i -Gred -Wthin &gt;&gt; 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 &gt;&gt; GMT_App_O_9.ps
psxy -R -J great_NY_Paris.d -O -K -Sc0.08c -Gblack &gt;&gt; GMT_App_O_9.ps
psxy -R -J -Wthinner great_NY_Paris.d -O -K -SqD1000k:+an+o+gblue+kwhite+LDk+s7+f1 &gt;&gt; GMT_App_O_9.ps
cat &lt;&lt; EOF | pstext -R -J -O -K -Wwhite,Othin -Dj0.1i/0.1i &gt;&gt; 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 &gt;&gt; GMT_App_O_9.ps
</PRE>
<BR CLEAR="ALL">
<HR>
<P>
with the complete illustration presented as Figure&nbsp;<A HREF="#fig:GMT_App_O_9">O.9</A>.

<DIV ALIGN="CENTER"><A NAME="fig:GMT_App_O_9"></A><A NAME="32990"></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="tex2html6210"
  HREF="node252.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html6204"
  HREF="node238.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html6200"
  HREF="node250.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html6206"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html6208"
  HREF="node255.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html6211"
  HREF="node252.html">P. Special Operations</A>
<B> Up:</B> <A NAME="tex2html6205"
  HREF="node238.html">O. Annotation of Contours</A>
<B> Previous:</B> <A NAME="tex2html6201"
  HREF="node250.html">O.4.3 Using a different</A>
 &nbsp; <B>  <A NAME="tex2html6207"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html6209"
  HREF="node255.html">Index</A></B> 
<!--End of Navigation Panel-->
<ADDRESS>
Paul Wessel
2010-01-14
</ADDRESS>
</BODY>
</HTML>