<!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>K.4 The Five Resolutions</TITLE> <META NAME="description" CONTENT="K.4 The Five Resolutions"> <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="node222.html"> <LINK REL="up" HREF="node219.html"> <LINK REL="next" HREF="node224.html"> </HEAD> <BODY bgcolor="#ffffff"> <!--Navigation Panel--> <A NAME="tex2html5903" HREF="node224.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html5897" HREF="node219.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html5893" HREF="node222.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html5899" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html5901" HREF="node258.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html5904" HREF="node224.html">K.4.1 The crude resolution</A> <B> Up:</B> <A NAME="tex2html5898" HREF="node219.html">K. The GMT High-Resolution</A> <B> Previous:</B> <A NAME="tex2html5894" HREF="node222.html">K.3 The long and</A> <B> <A NAME="tex2html5900" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html5902" HREF="node258.html">Index</A></B> <BR> <BR> <!--End of Navigation Panel--> <H1><A NAME="SECTION002840000000000000000"> K.4 The Five Resolutions</A> </H1> <P> We will demonstrate the power of the new database by starting with a regional hemisphere map centered near Papua New Guinea and zoom in on a specified point. The map regions will be specified in projected km from the projection center, e.g., we may want the map to go from -2000 km to +2000 km in the longitudinal and the latitudinal direction. However, <A NAME="tex2html1915" HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> programs expects degrees in the <B>-R</B> option that specifies the desired region. Given the chosen map projection we can automate this process by using a simple shell script that we call <I>getbox.sh</I><A NAME="32880"></A>: <P> <BR CLEAR="ALL"> <HR> <BR> <PRE>range=`(echo -$2 -$2; echo $2 $2) | mapproject $1 -R0/360/-90/90 -I -Fk -C` echo $range | awk '{printf "-R%f/%f/%f/%fr\n",$1,$2,$3,$4}' </PRE> <BR CLEAR="ALL"> <HR> <P> Also, as we zoom in on the projection center we want to draw the outline of the next map region on the plot. To do that we need the geographical coordinates of the four corners of the region rectangle. Again, we automate this task by adding the simple script <I>getrect.sh</I><A NAME="32884"></A>: <P> <BR CLEAR="ALL"> <HR> <BR> <PRE>(echo -$1 -$1; echo -$1 $1; echo $1 $1; echo $1 -$1) | mapproject -R -J -I -Fk -C </PRE> <BR CLEAR="ALL"> <HR> <P> <BR><HR> <!--Table of Child-Links--> <A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A> <UL> <LI><A NAME="tex2html5905" HREF="node224.html">K.4.1 The crude resolution (<B>-Dc</B>)</A> <LI><A NAME="tex2html5906" HREF="node225.html">K.4.2 The low resolution (<B>-Dl</B>)</A> <LI><A NAME="tex2html5907" HREF="node226.html">K.4.3 The intermediate resolution (<B>-Di</B>)</A> <LI><A NAME="tex2html5908" HREF="node227.html">K.4.4 The high resolution (<B>-Dh</B>)</A> <LI><A NAME="tex2html5909" HREF="node228.html">K.4.5 The full resolution (<B>-Df</B>)</A> </UL> <!--End of Table of Child-Links--> <HR> <!--Navigation Panel--> <A NAME="tex2html5903" HREF="node224.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html5897" HREF="node219.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html5893" HREF="node222.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html5899" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html5901" HREF="node258.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html5904" HREF="node224.html">K.4.1 The crude resolution</A> <B> Up:</B> <A NAME="tex2html5898" HREF="node219.html">K. The GMT High-Resolution</A> <B> Previous:</B> <A NAME="tex2html5894" HREF="node222.html">K.3 The long and</A> <B> <A NAME="tex2html5900" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html5902" HREF="node258.html">Index</A></B> <!--End of Navigation Panel--> <ADDRESS> Paul Wessel 2011-02-27 </ADDRESS> </BODY> </HTML>