File: node40.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 (225 lines) | stat: -rw-r--r-- 6,795 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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<!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>5.1.5 Linear Projection with Polar ()
Coordinates (-Jp -JP)</TITLE>
<META NAME="description" CONTENT="5.1.5 Linear Projection with Polar ()
Coordinates (-Jp -JP)">
<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="node39.html">
<LINK REL="up" HREF="node35.html">
<LINK REL="next" HREF="node41.html">
</HEAD>

<BODY  bgcolor="#ffffff">
<!--Navigation Panel-->
<A NAME="tex2html1551"
  HREF="node41.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.gif"></A> 
<A NAME="tex2html1545"
  HREF="node35.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.gif"></A> 
<A NAME="tex2html1541"
  HREF="node39.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.gif"></A> 
<A NAME="tex2html1547"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.gif"></A> 
<A NAME="tex2html1549"
  HREF="node149.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.gif"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html1552"
  HREF="node41.html">5.2 Conic Projections</A>
<B> Up:</B> <A NAME="tex2html1546"
  HREF="node35.html">5.1 Non-map Projections</A>
<B> Previous:</B> <A NAME="tex2html1542"
  HREF="node39.html">5.1.4 Geographical linear projection</A>
 &nbsp <B>  <A NAME="tex2html1548"
  HREF="node1.html">Contents</A></B> 
 &nbsp <B>  <A NAME="tex2html1550"
  HREF="node149.html">Index</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->

<H2><A NAME="SECTION001315000000000000000">
5.1.5 Linear Projection with Polar (<IMG
 WIDTH="25" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
 SRC="img2.gif"
 ALT="$\theta , r$">)
Coordinates (<B>-Jp </B> <B>-JP</B>)</A>
</H2>
<A NAME="6148"></A>
<A NAME="6149"></A>
<A NAME="6170"></A>

<P>

<P></P>
<DIV ALIGN="CENTER"><A NAME="fig:GMT_polar"></A><A NAME="6179"></A>
<TABLE>
<CAPTION ALIGN="BOTTOM"><STRONG>Figure 5.5:</STRONG>
Polar (Cylindrical) transformation of
(<IMG
 WIDTH="25" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
 SRC="img2.gif"
 ALT="$\theta , r$">) coordinates</CAPTION>
<TR><TD><IMG
 WIDTH="404" HEIGHT="404" BORDER="0"
 SRC="img62.gif"
 ALT="\begin{figure}\centering\epsfig{figure=eps/GMT_polar.eps}\end{figure}"></TD></TR>
</TABLE>
</DIV><P></P>

<P>
In many applications the data is better described in polar or
cylindrical (<I><IMG
 WIDTH="12" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
 SRC="img63.gif"
 ALT="$\theta$"></I>, <I>r</I>) coordinates rather than
the usual Cartesian coordinates (<I>x</I>, <I>y</I>).  The
relationship between the Cartesian and polar coordinates are
described by <!-- MATH
 $x = r \cdot \cos{\theta}, y = r \cdot \sin{\theta}$
 -->
<IMG
 WIDTH="154" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
 SRC="img64.gif"
 ALT="$x = r \cdot \cos{\theta}, y = r \cdot \sin{\theta}$">.
The polar transformation is simply defined by providing 
<BR>
<P>
<DL>
<DT><STRONG><IMG
 WIDTH="12" HEIGHT="13" ALIGN="BOTTOM" BORDER="0"
 SRC="img54.gif"
 ALT="$\bullet$"></STRONG></DT>
<DD>scale in inches/unit (<B>-Jp</B>) or full width of plot in inches (<B>-JP</B>)
</DD>
<DT><STRONG><IMG
 WIDTH="12" HEIGHT="13" ALIGN="BOTTOM" BORDER="0"
 SRC="img54.gif"
 ALT="$\bullet$"></STRONG></DT>
<DD>Optionally, insert <B>a</B> after <B>p<IMG
 WIDTH="8" HEIGHT="31" ALIGN="MIDDLE" BORDER="0"
 SRC="img21.gif"
 ALT="$\vert$">P</B> to indicate CW azimuths rather than CCW directions
</DD>
<DT><STRONG><IMG
 WIDTH="12" HEIGHT="13" ALIGN="BOTTOM" BORDER="0"
 SRC="img54.gif"
 ALT="$\bullet$"></STRONG></DT>
<DD>Optionally, append /<IMG
 WIDTH="43" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
 SRC="img65.gif"
 ALT="$origin$"> in degrees to indicate an angular offset [0]

<P>
</DD>
</DL>

<P>
As an example of this projection we will create a gridded data set
in polar coordinates <!-- MATH
 $z(\theta, r) = r^2 \cdot \cos{4\theta}$
 -->
<IMG
 WIDTH="124" HEIGHT="35" ALIGN="MIDDLE" BORDER="0"
 SRC="img66.gif"
 ALT="$z(\theta, r) = r^2 \cdot \cos{4\theta}$">
using <A NAME="tex2html302"
  HREF="../grdmath.html"><I><B>grdmath</B></I></A><A NAME="6186"></A>, a RPN calculator that operates on or
creates grdfiles.

<P>

<P>

<BR>

<P>
<BR CLEAR="ALL">
<HR>
<BR>
<PRE>
#!/bin/sh
#    $Id: GMT_polar.sh,v 1.1 2001/03/21 04:10:21 pwessel Exp $
#

grdmath -R0/360/2/4 -I6/0.1 X 4 MUL PI MUL 180 DIV COS Y 2 POW MUL = test.grd
grdcontour test.grd -JP3i -B30Ns -P -C2 -S4 &gt; GMT_polar.ps
</PRE>

<P>
<BR>

<BR>

<P>
<BR CLEAR="ALL">
<HR>
<P>
We used <A NAME="tex2html303"
  HREF="../grdcontour.html"><I><B>grdcontour</B></I></A><A NAME="6300"></A> to make a contour map of this data.  Because
the data file only contains values with <!-- MATH
 $2 \leq r \leq 4$
 -->
<IMG
 WIDTH="65" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
 SRC="img67.gif"
 ALT="$2 \leq r \leq 4$">, a donut
shaped plot appears in Figure&nbsp;<A HREF="node40.html#fig:GMT_polar">5.5</A>. <A NAME="6293"></A>
<A NAME="6294"></A>
<A NAME="6297"></A>

<HR>
<!--Navigation Panel-->
<A NAME="tex2html1551"
  HREF="node41.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.gif"></A> 
<A NAME="tex2html1545"
  HREF="node35.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.gif"></A> 
<A NAME="tex2html1541"
  HREF="node39.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.gif"></A> 
<A NAME="tex2html1547"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.gif"></A> 
<A NAME="tex2html1549"
  HREF="node149.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.gif"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html1552"
  HREF="node41.html">5.2 Conic Projections</A>
<B> Up:</B> <A NAME="tex2html1546"
  HREF="node35.html">5.1 Non-map Projections</A>
<B> Previous:</B> <A NAME="tex2html1542"
  HREF="node39.html">5.1.4 Geographical linear projection</A>
 &nbsp <B>  <A NAME="tex2html1548"
  HREF="node1.html">Contents</A></B> 
 &nbsp <B>  <A NAME="tex2html1550"
  HREF="node149.html">Index</A></B> 
<!--End of Navigation Panel-->
<ADDRESS>
Paul Wessel
2001-04-18
</ADDRESS>
</BODY>
</HTML>