<!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="node129.html"> <LINK REL="previous" HREF="node127.html"> <LINK REL="up" HREF="node121.html"> <LINK REL="next" HREF="node129.html"> </HEAD> <BODY bgcolor="#ffffff"> <!--Navigation Panel--> <A NAME="tex2html4448" HREF="node129.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html4442" HREF="node121.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html4436" HREF="node127.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html4444" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html4446" HREF="node256.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html4449" HREF="node129.html">7.8 A 3-D histogram</A> <B> Up:</B> <A NAME="tex2html4443" HREF="node121.html">7. Creating GMT Graphics</A> <B> Previous:</B> <A NAME="tex2html4437" HREF="node127.html">7.6 Plotting of histograms</A> <B> <A NAME="tex2html4445" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html4447" HREF="node256.html">Index</A></B> <BR> <BR> <!--End of Navigation Panel--> <H1><A NAME="SECTION001570000000000000000"></A> <A NAME="24387"></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="tex2html1370" HREF="footnode.html#foot24392"><SUP>7.2</SUP></A>. We create the final location map (Figure <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" > $ps psxy -R -J -O -K -m fz.xy -Wthinner,- >> $ps $AWK '{print $1-360.0, $2, $3*0.01}' quakes.xym | psxy -R -J -O -K -H1 -Sci -Gwhite -Wthinnest >> $ps psxy -R -J -O -K -m isochron.xy -Wthin >> $ps psxy -R -J -O -K -m ridge.xy -Wthicker >> $ps psxy -R -J -O -K -Gwhite -Wthick -A >> $ps << END -14.5 15.2 -2 15.2 -2 17.8 -14.5 17.8 END psxy -R -J -O -K -Gwhite -Wthinner -A >> $ps << 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 >> $ps echo "-12.5 16.5 18 0 6 LM ISC Earthquakes" | pstext -R -J -O -K >> $ps pstext -R -J -O -Sthin -Gwhite >> $ps << 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="25047"></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="24397"></A> <P> <HR> <!--Navigation Panel--> <A NAME="tex2html4448" HREF="node129.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html4442" HREF="node121.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html4436" HREF="node127.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html4444" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html4446" HREF="node256.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html4449" HREF="node129.html">7.8 A 3-D histogram</A> <B> Up:</B> <A NAME="tex2html4443" HREF="node121.html">7. Creating GMT Graphics</A> <B> Previous:</B> <A NAME="tex2html4437" HREF="node127.html">7.6 Plotting of histograms</A> <B> <A NAME="tex2html4445" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html4447" HREF="node256.html">Index</A></B> <!--End of Navigation Panel--> <ADDRESS> Paul Wessel 2010-07-14 </ADDRESS> </BODY> </HTML>