Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > os > by-pkgid > 4b194777eaf705e440bb2ce282d32772 > files > 655

GMT-doc-4.5.3-3.fc14.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>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="node220.html">
<LINK REL="up" HREF="node217.html">
<LINK REL="next" HREF="node222.html">
</HEAD>

<BODY  bgcolor="#ffffff">
<!--Navigation Panel-->
<A NAME="tex2html5801"
  HREF="node222.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html5795"
  HREF="node217.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html5791"
  HREF="node220.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html5797"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html5799"
  HREF="node256.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html5802"
  HREF="node222.html">K.4.1 The crude resolution</A>
<B> Up:</B> <A NAME="tex2html5796"
  HREF="node217.html">K. The GMT High-Resolution</A>
<B> Previous:</B> <A NAME="tex2html5792"
  HREF="node220.html">K.3 The long and</A>
 &nbsp; <B>  <A NAME="tex2html5798"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html5800"
  HREF="node256.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="tex2html1845"
  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="32371"></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="32375"></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="tex2html5803"
  HREF="node222.html">K.4.1 The crude resolution (<B>-Dc</B>)</A>
<LI><A NAME="tex2html5804"
  HREF="node223.html">K.4.2 The low resolution (<B>-Dl</B>)</A>
<LI><A NAME="tex2html5805"
  HREF="node224.html">K.4.3 The intermediate resolution (<B>-Di</B>)</A>
<LI><A NAME="tex2html5806"
  HREF="node225.html">K.4.4 The high resolution (<B>-Dh</B>)</A>
<LI><A NAME="tex2html5807"
  HREF="node226.html">K.4.5 The full resolution (<B>-Df</B>)</A>
</UL>
<!--End of Table of Child-Links-->
<HR>
<!--Navigation Panel-->
<A NAME="tex2html5801"
  HREF="node222.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html5795"
  HREF="node217.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html5791"
  HREF="node220.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html5797"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html5799"
  HREF="node256.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html5802"
  HREF="node222.html">K.4.1 The crude resolution</A>
<B> Up:</B> <A NAME="tex2html5796"
  HREF="node217.html">K. The GMT High-Resolution</A>
<B> Previous:</B> <A NAME="tex2html5792"
  HREF="node220.html">K.3 The long and</A>
 &nbsp; <B>  <A NAME="tex2html5798"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html5800"
  HREF="node256.html">Index</A></B> 
<!--End of Navigation Panel-->
<ADDRESS>
Paul Wessel
2010-07-14
</ADDRESS>
</BODY>
</HTML>