File: node61.html

package info (click to toggle)
gmt-doc 3.4-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 4,756 kB
  • ctags: 1,800
  • sloc: makefile: 30
file content (171 lines) | stat: -rw-r--r-- 5,722 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
<!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.2 Gridding of arbitrarily spaced data</TITLE>
<META NAME="description" CONTENT="3.2 Gridding of arbitrarily spaced data">
<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="node66.html">
<LINK REL="previous" HREF="node59.html">
<LINK REL="up" HREF="node58.html">
<LINK REL="next" HREF="node62.html">
</HEAD>

<BODY  bgcolor="#ffffff">
<!--Navigation Panel-->
<A NAME="tex2html1286"
  HREF="node62.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.gif"></A> 
<A NAME="tex2html1280"
  HREF="node58.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.gif"></A> 
<A NAME="tex2html1274"
  HREF="node60.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.gif"></A> 
<A NAME="tex2html1282"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.gif"></A> 
<A NAME="tex2html1284"
  HREF="node79.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.gif"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html1287"
  HREF="node62.html">3.2.1 Nearest neighbor gridding</A>
<B> Up:</B> <A NAME="tex2html1281"
  HREF="node58.html">3. SESSION THREE</A>
<B> Previous:</B> <A NAME="tex2html1275"
  HREF="node60.html">3.1.1 Exercises</A>
 &nbsp <B>  <A NAME="tex2html1283"
  HREF="node1.html">Contents</A></B> 
 &nbsp <B>  <A NAME="tex2html1285"
  HREF="node79.html">Index</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->

<H1><A NAME="SECTION00520000000000000000">
3.2 Gridding of arbitrarily spaced data</A>
</H1> 

<P>
Except in the situation above when a gridded file is available, we must
convert our data to the right format readable by <A NAME="tex2html203"
  HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> before we can
make contour plots and color-coded images.  We distinguish between
two scenarios:

<P>

<OL>
<LI>The (<I>x</I>, <I>y</I>, <I>z</I>) data are available on a regular
lattice grid.

<P>
</LI>
<LI>The (<I>x</I>, <I>y</I>, <I>z</I>) data are distributed unevenly
in the plane.

<P>
</LI>
</OL>

<P>
The former situation may require a simple reformatting (using
<A NAME="tex2html204"
  HREF="../xyz2grd.html"><I><B>xyz2grd</B></I></A><A NAME="2927"></A>), while the latter must be interpolated onto a
regular lattice; this process is known as gridding.
<A NAME="tex2html205"
  HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> supports three different approaches to gridding; here, we
will briefly discuss the two most common techniques.

<P>
All <A NAME="tex2html206"
  HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> gridding programs have in common the requirement that the
user must specify the grid domain and output filename: 
<BR>
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"><B>-R</B><I>xmin</I>/<I>xmax</I>/<I>ymin</I>/<I>ymax</I></TD>
<TD ALIGN="LEFT">The desired grid extent</TD>
</TR>
<TR><TD ALIGN="LEFT"><B>-I</B><I>xinc</I>[<B>m</B><IMG
 WIDTH="8" HEIGHT="31" ALIGN="MIDDLE" BORDER="0"
 SRC="img1.gif"
 ALT="$\vert$"><B>c</B>][/<I>yinc</I>[<B>m</B><IMG
 WIDTH="8" HEIGHT="31" ALIGN="MIDDLE" BORDER="0"
 SRC="img1.gif"
 ALT="$\vert$"><B>c</B>]]</TD>
<TD ALIGN="LEFT">The grid spacing (append <B>m</B> or <B>c</B> for minutes or seconds of arc)</TD>
</TR>
<TR><TD ALIGN="LEFT"><B>-G</B><I>gridfile</I></TD>
<TD ALIGN="LEFT">The output grid filename</TD>
</TR>
</TABLE> 

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

<UL>
<LI><A NAME="tex2html1288"
  HREF="node62.html">3.2.1 Nearest neighbor gridding</A>
<UL>
<LI><A NAME="tex2html1289"
  HREF="node63.html">3.2.1.1 Exercises</A>
</UL>
<LI><A NAME="tex2html1290"
  HREF="node64.html">3.2.2 Gridding with Splines in Tension</A>
<LI><A NAME="tex2html1291"
  HREF="node65.html">3.2.3 Preprocessing</A>
</UL>
<!--End of Table of Child-Links-->
<HR>
<!--Navigation Panel-->
<A NAME="tex2html1286"
  HREF="node62.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.gif"></A> 
<A NAME="tex2html1280"
  HREF="node58.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.gif"></A> 
<A NAME="tex2html1274"
  HREF="node60.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.gif"></A> 
<A NAME="tex2html1282"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.gif"></A> 
<A NAME="tex2html1284"
  HREF="node79.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.gif"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html1287"
  HREF="node62.html">3.2.1 Nearest neighbor gridding</A>
<B> Up:</B> <A NAME="tex2html1281"
  HREF="node58.html">3. SESSION THREE</A>
<B> Previous:</B> <A NAME="tex2html1275"
  HREF="node60.html">3.1.1 Exercises</A>
 &nbsp <B>  <A NAME="tex2html1283"
  HREF="node1.html">Contents</A></B> 
 &nbsp <B>  <A NAME="tex2html1285"
  HREF="node79.html">Index</A></B> 
<!--End of Navigation Panel-->
<ADDRESS>
Paul Wessel
2001-04-18
</ADDRESS>
</BODY>
</HTML>