File: node59.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 (235 lines) | stat: -rw-r--r-- 9,563 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
226
227
228
229
230
231
232
233
234
235
<!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>3.1 Contouring gridded data sets</TITLE>
<META NAME="description" CONTENT="3.1 Contouring gridded data sets">
<META NAME="keywords" CONTENT="tutorial">
<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="tutorial.css">

<LINK REL="next" HREF="node61.html">
<LINK REL="previous" HREF="node58.html">
<LINK REL="up" HREF="node58.html">
<LINK REL="next" HREF="node60.html">
</HEAD>

<BODY  bgcolor="#ffffff">
<!--Navigation Panel-->
<A NAME="tex2html1259"
  HREF="node60.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.gif"></A> 
<A NAME="tex2html1253"
  HREF="node58.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.gif"></A> 
<A NAME="tex2html1247"
  HREF="node58.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.gif"></A> 
<A NAME="tex2html1255"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.gif"></A> 
<A NAME="tex2html1257"
  HREF="node79.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.gif"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html1260"
  HREF="node60.html">3.1.1 Exercises</A>
<B> Up:</B> <A NAME="tex2html1254"
  HREF="node58.html">3. SESSION THREE</A>
<B> Previous:</B> <A NAME="tex2html1248"
  HREF="node58.html">3. SESSION THREE</A>
 &nbsp <B>  <A NAME="tex2html1256"
  HREF="node1.html">Contents</A></B> 
 &nbsp <B>  <A NAME="tex2html1258"
  HREF="node79.html">Index</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->

<H1><A NAME="SECTION00510000000000000000">
3.1 Contouring gridded data sets</A>
</H1>

<P>
<A NAME="tex2html195"
  HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> comes with several utilities that can create gridded data
sets; we will discuss two such programs later this session.  First,
we will assume that we already have gridded data sets.  In the
supplemental <A NAME="tex2html196"
  HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> archive there is a program that serves as a data
extractor from several public domain global gridded data sets.
Among these data are ETOPO5, crustal ages, gravity and geoid,
and DEM for the continental US.  Here, we will use <A NAME="tex2html197"
  HREF="../grdraster.html"><I><B>grdraster</B></I></A><A NAME="2857"></A>
to extract a <A NAME="tex2html198"
  HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A>-ready grid that we will next use for contouring:

<P>
<PRE>
grdraster 1 -R-66/-60/30/35 -Gbermuda.grd -V
</PRE> 

<P>
We first use the <A NAME="tex2html199"
  HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> program <A NAME="tex2html200"
  HREF="../grdinfo.html"><I><B>grdinfo</B></I></A><A NAME="2872"></A> to see what's in this file:

<P>
<PRE> 
grdinfo bermuda.grd
</PRE> 

<P>
The file contains bathymetry for the Bermuda region and has depth
values from -5475 to -89 meters.  We want to make a contour map of
this data; this is a job for <A NAME="tex2html201"
  HREF="../grdcontour.html"><I><B>grdcontour</B></I></A><A NAME="2881"></A>.  As with previous
plot commands we need to set up the map projection with <B>-J</B>.
Here, however, we do not have to specify the region since that is by
default assumed to be the extent of the grid file.
To generate any plot we will in addition need to supply information
about which contours to draw.  Unfortunately, <A NAME="tex2html202"
  HREF="../grdcontour.html"><I><B>grdcontour</B></I></A><A NAME="2891"></A>
is a complicated program with too many options.  We put a positive
spin on this situation by touting its flexibility.  Here are the most
useful options:

<P>
<BR><P></P>
<DIV ALIGN="CENTER"><A NAME="1737"></A>
<TABLE>
<CAPTION><STRONG>Table 3.1:</STRONG>
The most useful options in <A NAME="tex2html192"
  HREF="../grdcontour.html"><I><B>grdcontour</B></I></A><A NAME="2910"></A></CAPTION>
<TR><TD>
<DIV ALIGN="CENTER"><TABLE CELLPADDING=3 BORDER="1">
<TR><TD ALIGN="CENTER" COLSPAN=1><FONT SIZE="-1">
<I>Option</I></FONT></TD>
<TD ALIGN="CENTER" COLSPAN=1><FONT SIZE="-1"> <I>Purpose</I></FONT></TD>
</TR>
<TR><TD ALIGN="LEFT"><FONT SIZE="-1">   
</FONT><FONT SIZE="-1"><B>-A</B></FONT><FONT SIZE="-1"><I>anot_int</I> </FONT></TD>
<TD ALIGN="LEFT"><FONT SIZE="-1"> Annotation interval </FONT></TD>
</TR>
<TR><TD ALIGN="LEFT"><FONT SIZE="-1">  
</FONT><FONT SIZE="-1"><B>-C</B></FONT><FONT SIZE="-1"><I>cont_int</I> </FONT></TD>
<TD ALIGN="LEFT"><FONT SIZE="-1"> Contour interval </FONT></TD>
</TR>
<TR><TD ALIGN="LEFT"><FONT SIZE="-1">  
</FONT><FONT SIZE="-1"><B>-G</B></FONT><FONT SIZE="-1"><I>gap</I> </FONT></TD>
<TD ALIGN="LEFT"><FONT SIZE="-1"> Sets distance between contour annotations </FONT></TD>
</TR>
<TR><TD ALIGN="LEFT"><FONT SIZE="-1">  
</FONT><FONT SIZE="-1"><B>-L</B></FONT><FONT SIZE="-1"><I>low</I>/</FONT><FONT SIZE="-1"><I>high</I> </FONT></TD>
<TD ALIGN="LEFT"><FONT SIZE="-1"> Only draw contours within the </FONT><FONT SIZE="-1"><I>low</I> to </FONT><FONT SIZE="-1"><I>high</I> range </FONT></TD>
</TR>
<TR><TD ALIGN="LEFT"><FONT SIZE="-1">  
</FONT><FONT SIZE="-1"><B>-N</B></FONT><FONT SIZE="-1"><I>unit</I> </FONT></TD>
<TD ALIGN="LEFT"><FONT SIZE="-1"> Append </FONT><FONT SIZE="-1"><I>unit</I> to contour annotations </FONT></TD>
</TR>
<TR><TD ALIGN="LEFT"><FONT SIZE="-1">  
</FONT><FONT SIZE="-1"><B>-Q</B></FONT><FONT SIZE="-1"><I>cut</I> </FONT></TD>
<TD ALIGN="LEFT"><FONT SIZE="-1"> Do not draw contours with fewer than </FONT><FONT SIZE="-1"><I>cut</I> points </FONT></TD>
</TR>
<TR><TD ALIGN="LEFT"><FONT SIZE="-1">  
</FONT><FONT SIZE="-1"><B>-S</B></FONT><FONT SIZE="-1"><I>smooth</I> </FONT></TD>
<TD ALIGN="LEFT"><FONT SIZE="-1"> Resample contours every </FONT><FONT SIZE="-1"><I>x_inc</I>/</FONT><FONT SIZE="-1"><I>smooth</I> increment </FONT></TD>
</TR>
<TR><TD ALIGN="LEFT"><FONT SIZE="-1">  
</FONT><FONT SIZE="-1"><B>-T</B>[</FONT><FONT SIZE="-1"><B>+</B><IMG
 WIDTH="8" HEIGHT="31" ALIGN="MIDDLE" BORDER="0"
 SRC="img1.gif"
 ALT="$\vert$"></FONT><FONT SIZE="-1"><B>-</B>][</FONT><FONT SIZE="-1"><I>gap</I>/</FONT><FONT SIZE="-1"><I>length</I>][:</FONT><FONT SIZE="-1"><I>LH</I>] </FONT></TD>
<TD ALIGN="LEFT"><FONT SIZE="-1"> Draw tick-marks in downhill direction for innermost closed contours </FONT></TD>
</TR>
<TR><TD ALIGN="LEFT"><FONT SIZE="-1">  
 </FONT></TD>
<TD ALIGN="LEFT"><FONT SIZE="-1"> Add tick spacing and length, and characters to plot at the center of closed contours. </FONT></TD>
</TR>
<TR><TD ALIGN="LEFT"><FONT SIZE="-1">  
</FONT><FONT SIZE="-1"><B>-W</B>[</FONT><FONT SIZE="-1"><B>a</B><IMG
 WIDTH="8" HEIGHT="31" ALIGN="MIDDLE" BORDER="0"
 SRC="img1.gif"
 ALT="$\vert$"></FONT><FONT SIZE="-1"><B>c</B>]</FONT><FONT SIZE="-1"><I>pen</I> </FONT></TD>
<TD ALIGN="LEFT"><FONT SIZE="-1"> Set contour and annotation pens </FONT></TD>
</TR>
<TR><TD ALIGN="LEFT"><FONT SIZE="-1">  
</FONT><FONT SIZE="-1"><B>-Z</B></FONT><FONT SIZE="-1"><I>factor</I>[/</FONT><FONT SIZE="-1"><I>offset</I>] </FONT></TD>
<TD ALIGN="LEFT"><FONT SIZE="-1"> [Subtract </FONT><FONT SIZE="-1"><I>offset</I>] and multiply data by </FONT><FONT SIZE="-1"><I>factor</I> prior to processing </FONT></TD>
</TR>
</TABLE><FONT SIZE="-1">

<A NAME="tbl:grdcontour"></A></FONT></DIV></TD></TR>
</TABLE>
</DIV><P></P>
<BR> 

<P>
We will first make a plain contour map using 1 km as annotation
interval and 250 m as contour interval.  We choose a 7-inch-wide
Mercator plot and annotate the borders every 2<IMG
 WIDTH="11" HEIGHT="15" ALIGN="BOTTOM" BORDER="0"
 SRC="img25.gif"
 ALT="$^{o}$">:

<P>
<PRE> 
grdcontour bermuda.grd -JM7i -C250 -A1000 -P -B2 | ghostview -
</PRE>

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

<UL>
<LI><A NAME="tex2html1261"
  HREF="node60.html">3.1.1 Exercises</A>
</UL>
<!--End of Table of Child-Links-->
<HR>
<!--Navigation Panel-->
<A NAME="tex2html1259"
  HREF="node60.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.gif"></A> 
<A NAME="tex2html1253"
  HREF="node58.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.gif"></A> 
<A NAME="tex2html1247"
  HREF="node58.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.gif"></A> 
<A NAME="tex2html1255"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.gif"></A> 
<A NAME="tex2html1257"
  HREF="node79.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.gif"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html1260"
  HREF="node60.html">3.1.1 Exercises</A>
<B> Up:</B> <A NAME="tex2html1254"
  HREF="node58.html">3. SESSION THREE</A>
<B> Previous:</B> <A NAME="tex2html1248"
  HREF="node58.html">3. SESSION THREE</A>
 &nbsp <B>  <A NAME="tex2html1256"
  HREF="node1.html">Contents</A></B> 
 &nbsp <B>  <A NAME="tex2html1258"
  HREF="node79.html">Index</A></B> 
<!--End of Navigation Panel-->
<ADDRESS>
Paul Wessel
2001-04-18
</ADDRESS>
</BODY>
</HTML>