File: node82.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 (191 lines) | stat: -rw-r--r-- 6,656 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
<!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>6.9 Plotting time-series along tracks</TITLE>
<META NAME="description" CONTENT="6.9 Plotting time-series along tracks">
<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="next" HREF="node83.html">
<LINK REL="previous" HREF="node81.html">
<LINK REL="up" HREF="node73.html">
<LINK REL="next" HREF="node83.html">
</HEAD>

<BODY  bgcolor="#ffffff">
<!--Navigation Panel-->
<A NAME="tex2html2178"
  HREF="node83.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.gif"></A> 
<A NAME="tex2html2172"
  HREF="node73.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.gif"></A> 
<A NAME="tex2html2166"
  HREF="node81.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.gif"></A> 
<A NAME="tex2html2174"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.gif"></A> 
<A NAME="tex2html2176"
  HREF="node149.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.gif"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html2179"
  HREF="node83.html">6.10 A geographical bar</A>
<B> Up:</B> <A NAME="tex2html2173"
  HREF="node73.html">6. Cook-book</A>
<B> Previous:</B> <A NAME="tex2html2167"
  HREF="node81.html">6.8 A 3-D histogram</A>
 &nbsp <B>  <A NAME="tex2html2175"
  HREF="node1.html">Contents</A></B> 
 &nbsp <B>  <A NAME="tex2html2177"
  HREF="node149.html">Index</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->

<H1><A NAME="SECTION001490000000000000000"></A>
<A NAME="10838"></A>
<BR>
6.9 Plotting time-series along tracks
</H1>

<P>
A common application in many scientific disciplines involves
plotting one or several time-series as as ``wiggles'' along
tracks.  Marine geophysicists often display magnetic anomalies
in this manner, and seismologists use the technique when
plotting individual seismic traces.  In our example we will
show how a set of Geosat sea surface slope profiles from the
south Pacific can be plotted as ``wiggles'' using the
<A NAME="tex2html404"
  HREF="../pswiggle.html"><I><B>pswiggle</B></I></A><A NAME="10855"></A> program. We will embellish the plot with track
numbers, the location of the Pacific-Antarctic Ridge, recognized
fracture zones in the area, and a ``wiggle'' scale.  The
Geosat tracks are stored in the files <U>*.xys</U>, the ridge in
<U>ridge.xy</U>, and all the fracture zones are stored in the multiple
segment file <U>fz.xy</U>.  We extract the profile id (which is the
first part of the file name for each profile) and the last point
in each of the track files to construct an input file for
<A NAME="tex2html405"
  HREF="../pstext.html"><I><B>pstext</B></I></A><A NAME="10867"></A> that will label each profile with the track
number.  We know the profiles trend approximately N40<IMG
 WIDTH="11" HEIGHT="15" ALIGN="BOTTOM" BORDER="0"
 SRC="img61.gif"
 ALT="$^{o}$">E
so we want the labels to have that same orientation (i.e., the
angle with the baseline must be 50<IMG
 WIDTH="11" HEIGHT="15" ALIGN="BOTTOM" BORDER="0"
 SRC="img61.gif"
 ALT="$^{o}$">).  We do this by
extracting the last record from each track, paste this file
with the <U>tracks.lis</U> file, and use <I>$AWK</I><A NAME="10878"></A> to create the
format needed for <A NAME="tex2html406"
  HREF="../pstext.html"><I><B>pstext</B></I></A><A NAME="10884"></A>.  Note we offset the positions
by -0.05 inch with <B>-D</B> in order to have a small gap
between the profile and the label:

<P>

<P>

<BR>

<P>
<BR CLEAR="ALL">
<HR>
<BR>
<PRE>
pswiggle track_*.xys -R185/250/-68/-42 -U"Example 9 in Cookbook" -K -Jm0.13i -Ba10f5 -G0 -Z2000 \
   -W0.25p -S240/-67/500/@~m@~rad &gt;! example_09.ps
psxy -R -Jm -O -K ridge.xy -W1.25p &gt;&gt; example_09.ps
psxy -R -Jm -O -K -M fz.xy -W0.5pta &gt;&gt; example_09.ps
if (-e tmp) then
    \rm -f tmp
endif
foreach file (track_*.xys)    # Make label file
    tail -1 $file &gt;&gt;! tmp
end
ls track_*.xys | $AWK -F. '{print $2}' &gt;! tracks.lis
paste tmp tracks.lis | $AWK '{print $1, $2, 10, 50, 1, 7, $4}' | pstext -R -Jm -D-0.05i/-0.05i -O \
   &gt;&gt; example_09.ps
\rm -f tmp tracks.lis .gmtcommands
</PRE>

<P>
<BR>

<BR>

<P>
<BR CLEAR="ALL">
<HR>
<P>
The output shows the sea-surface slopes along 42 descending
Geosat tracks in the Eltanin and Udintsev fracture zone
region in a Mercator projection (Figure&nbsp;<A HREF="node82.html#fig:GMT_example_09">6.9</A>).

<P></P>
<DIV ALIGN="CENTER"><A NAME="fig:GMT_example_09"></A><A NAME="10941"></A>
<TABLE>
<CAPTION ALIGN="BOTTOM"><STRONG>Figure 6.9:</STRONG>
Time-series as ``wiggles'' along a track</CAPTION>
<TR><TD><IMG
 WIDTH="542" HEIGHT="388" BORDER="0"
 SRC="img109.gif"
 ALT="\begin{figure}\centering\epsfig{figure=eps/GMT_example_09.eps}\end{figure}"></TD></TR>
</TABLE>
</DIV><P></P>

<P>
<A NAME="10935"></A>

<P>
<HR>
<!--Navigation Panel-->
<A NAME="tex2html2178"
  HREF="node83.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.gif"></A> 
<A NAME="tex2html2172"
  HREF="node73.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.gif"></A> 
<A NAME="tex2html2166"
  HREF="node81.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.gif"></A> 
<A NAME="tex2html2174"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.gif"></A> 
<A NAME="tex2html2176"
  HREF="node149.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.gif"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html2179"
  HREF="node83.html">6.10 A geographical bar</A>
<B> Up:</B> <A NAME="tex2html2173"
  HREF="node73.html">6. Cook-book</A>
<B> Previous:</B> <A NAME="tex2html2167"
  HREF="node81.html">6.8 A 3-D histogram</A>
 &nbsp <B>  <A NAME="tex2html2175"
  HREF="node1.html">Contents</A></B> 
 &nbsp <B>  <A NAME="tex2html2177"
  HREF="node149.html">Index</A></B> 
<!--End of Navigation Panel-->
<ADDRESS>
Paul Wessel
2001-04-18
</ADDRESS>
</BODY>
</HTML>