Sophie

Sophie

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

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>7.7 A simple location map</TITLE>
<META NAME="description" CONTENT="7.7 A simple location map">
<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="next" HREF="node128.html">
<LINK REL="previous" HREF="node126.html">
<LINK REL="up" HREF="node120.html">
<LINK REL="next" HREF="node128.html">
</HEAD>

<BODY  bgcolor="#ffffff">
<!--Navigation Panel-->
<A NAME="tex2html4400"
  HREF="node128.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html4394"
  HREF="node120.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html4388"
  HREF="node126.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html4396"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html4398"
  HREF="node255.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html4401"
  HREF="node128.html">7.8 A 3-D histogram</A>
<B> Up:</B> <A NAME="tex2html4395"
  HREF="node120.html">7. Creating GMT Graphics</A>
<B> Previous:</B> <A NAME="tex2html4389"
  HREF="node126.html">7.6 Plotting of histograms</A>
 &nbsp; <B>  <A NAME="tex2html4397"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html4399"
  HREF="node255.html">Index</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->

<H1><A NAME="SECTION001570000000000000000"></A>
<A NAME="23798"></A>
<BR>
7.7 A simple location map
</H1>

<P>
Many scientific papers start out by showing a location map
of the region of interest. This map will typically also
contain certain features and labels.  This example will
present a location map for the equatorial Atlantic ocean,
where fracture zones and mid-ocean ridge segments have been
plotted.  We also would like to plot earthquake locations
and available isochrons.  We have obtained one file,
<U>quakes.xym</U>, which contains the position and magnitude of
available earthquakes in the region.  We choose to use
magnitude/100 for the symbol-size in inches.  The digital
fracture zone traces (<U>fz.xy</U>) and isochrons (0 isochron as
<U>ridge.xy</U>, the rest as <U>isochrons.xy</U>) were digitized from
available maps<A NAME="tex2html1340"
  HREF="footnode.html#foot23803"><SUP>7.2</SUP></A>.
We create the final location map
(Figure&nbsp;<A HREF="#fig:GMT_example_07">7.7</A>) with the following script:

<P>
<BR CLEAR="ALL">
<HR>
<BR>
<PRE>#!/bin/sh
#               GMT EXAMPLE 07
#
# Purpose:      Make a basemap with earthquakes and isochrons etc
# GMT progs:    pscoast, pstext, psxy
# Unix progs:   $AWK, echo, rm
#
ps=example_07.ps
pscoast -R-50/0/-10/20 -JM9i -K -GP300/26 -Dl -Wthinnest -B10 -U"Example 7 in Cookbook" &gt; $ps
psxy -R -J -O -K -m fz.xy -Wthinner,- &gt;&gt; $ps
$AWK '{print $1-360.0, $2, $3*0.01}' quakes.xym | psxy -R -J -O -K -H1 -Sci -Gwhite -Wthinnest &gt;&gt; $ps
psxy -R -J -O -K -m isochron.xy -Wthin &gt;&gt; $ps
psxy -R -J -O -K -m ridge.xy -Wthicker &gt;&gt; $ps
psxy -R -J -O -K -Gwhite -Wthick -A &gt;&gt; $ps &lt;&lt; END
-14.5   15.2
 -2     15.2
 -2     17.8
-14.5   17.8
END
psxy -R -J -O -K -Gwhite -Wthinner -A &gt;&gt; $ps &lt;&lt; END
-14.35  15.35
 -2.15  15.35
 -2.15  17.65
-14.35  17.65
END
echo "-13.5 16.5" | psxy -R -J -O -K -Sc0.08i -Gwhite -Wthinner &gt;&gt; $ps
echo "-12.5 16.5 18 0 6 LM ISC Earthquakes" | pstext -R -J -O -K &gt;&gt; $ps
pstext -R -J -O -Sthin -Gwhite &gt;&gt; $ps &lt;&lt; END
-43 -5 30 0 1 CM SOUTH
-43 -8 30 0 1 CM AMERICA
 -7 11 30 0 1 CM AFRICA
END
rm -f .gmt*
</PRE>
<BR CLEAR="ALL">
<HR>
<DIV ALIGN="CENTER"><A NAME="fig:GMT_example_07"></A><A NAME="24458"></A>
<TABLE>
<CAPTION ALIGN="BOTTOM"><STRONG>Figure 7.7:</STRONG>
A typical location map.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER"><IMG
 WIDTH="573" HEIGHT="348" ALIGN="BOTTOM" BORDER="0"
 SRC="img164.png"
 ALT="\includegraphics[scale=0.5]{scripts/example_07}"></DIV></TD></TR>
</TABLE>
</DIV>

<P>
The same figure could equally well be made in color, which
could be rasterized and made into a slide for a meeting
presentation.  The script is similar to the one outlined
above, except we would choose a color for land and oceans,
and select colored symbols and pens rather than black and white.

<P>
<A NAME="23808"></A>

<P>
<HR>
<!--Navigation Panel-->
<A NAME="tex2html4400"
  HREF="node128.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html4394"
  HREF="node120.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html4388"
  HREF="node126.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html4396"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html4398"
  HREF="node255.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html4401"
  HREF="node128.html">7.8 A 3-D histogram</A>
<B> Up:</B> <A NAME="tex2html4395"
  HREF="node120.html">7. Creating GMT Graphics</A>
<B> Previous:</B> <A NAME="tex2html4389"
  HREF="node126.html">7.6 Plotting of histograms</A>
 &nbsp; <B>  <A NAME="tex2html4397"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html4399"
  HREF="node255.html">Index</A></B> 
<!--End of Navigation Panel-->
<ADDRESS>
Paul Wessel
2010-01-14
</ADDRESS>
</BODY>
</HTML>