File: node136.html

package info (click to toggle)
gmt-doc 3.4-1.1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,756 kB
  • ctags: 1,800
  • sloc: makefile: 30
file content (180 lines) | stat: -rw-r--r-- 5,434 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<!--Converted with LaTeX2HTML 99.2beta8 (1.46)
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 HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="LaTeX2HTML v99.2beta8">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">

<LINK REL="STYLESHEET" HREF="GMT_Docs.css">

<LINK REL="previous" HREF="node135.html">
<LINK REL="up" HREF="node132.html">
<LINK REL="next" HREF="node137.html">
</HEAD>

<BODY  bgcolor="#ffffff">
<!--Navigation Panel-->
<A NAME="tex2html2963"
  HREF="node137.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.gif"></A> 
<A NAME="tex2html2957"
  HREF="node132.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.gif"></A> 
<A NAME="tex2html2953"
  HREF="node135.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.gif"></A> 
<A NAME="tex2html2959"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.gif"></A> 
<A NAME="tex2html2961"
  HREF="node149.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.gif"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html2964"
  HREF="node137.html">K.4.1 The crude resolution</A>
<B> Up:</B> <A NAME="tex2html2958"
  HREF="node132.html">K. The GMT High-Resolution</A>
<B> Previous:</B> <A NAME="tex2html2954"
  HREF="node135.html">K.3 The long and</A>
 &nbsp <B>  <A NAME="tex2html2960"
  HREF="node1.html">Contents</A></B> 
 &nbsp <B>  <A NAME="tex2html2962"
  HREF="node149.html">Index</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->

<H1><A NAME="SECTION002640000000000000000">
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 direction
and -1500 km to +1500 km in the latitudinal direction.
However, <A NAME="tex2html722"
  HREF="http://www.soest.hawaii.edu/gmt"><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 cshell script that we
call <I>getbox</I><A NAME="15689"></A>:

<P>

<P>

<BR>

<P>
<BR CLEAR="ALL">
<HR>
<BR>
<PRE>
range=`(echo $2 $4; echo $3 $5) | mapproject $1 -R0/360/-90/90 -I -Fk -C`
echo $range | awk '{printf "-R%f/%f/%f/%fr\n",$1,$2,$3,$4}'
</PRE>

<P>
<BR>

<BR>

<P>
<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</I><A NAME="15793"></A>:

<P>

<P>

<BR>

<P>
<BR CLEAR="ALL">
<HR>
<BR>
<PRE>
(echo $2 $4; echo $3 $4; echo $3 $5; echo $2 $5) | mapproject $1 -R0/360/-90/90 -I -Fk -C
</PRE>

<P>
<BR>

<BR>

<P>
<BR CLEAR="ALL">
<HR>
<P>
<BR><HR>
<!--Table of Child-Links-->
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A>

<UL>
<LI><A NAME="tex2html2965"
  HREF="node137.html">K.4.1 The crude resolution (<B>-Dc</B>)</A>
<LI><A NAME="tex2html2966"
  HREF="node138.html">K.4.2 The low resolution (<B>-Dl</B>)</A>
<LI><A NAME="tex2html2967"
  HREF="node139.html">K.4.3 The intermediate resolution (<B>-Di</B>)</A>
<LI><A NAME="tex2html2968"
  HREF="node140.html">K.4.4 The high resolution (<B>-Dh</B>)</A>
<LI><A NAME="tex2html2969"
  HREF="node141.html">K.4.5 The full resolution (<B>-Df</B>)</A>
</UL>
<!--End of Table of Child-Links-->
<HR>
<!--Navigation Panel-->
<A NAME="tex2html2963"
  HREF="node137.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.gif"></A> 
<A NAME="tex2html2957"
  HREF="node132.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.gif"></A> 
<A NAME="tex2html2953"
  HREF="node135.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.gif"></A> 
<A NAME="tex2html2959"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.gif"></A> 
<A NAME="tex2html2961"
  HREF="node149.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.gif"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html2964"
  HREF="node137.html">K.4.1 The crude resolution</A>
<B> Up:</B> <A NAME="tex2html2958"
  HREF="node132.html">K. The GMT High-Resolution</A>
<B> Previous:</B> <A NAME="tex2html2954"
  HREF="node135.html">K.3 The long and</A>
 &nbsp <B>  <A NAME="tex2html2960"
  HREF="node1.html">Contents</A></B> 
 &nbsp <B>  <A NAME="tex2html2962"
  HREF="node149.html">Index</A></B> 
<!--End of Navigation Panel-->
<ADDRESS>
Paul Wessel
2001-04-18
</ADDRESS>
</BODY>
</HTML>