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
|
<!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.1 The making of contour maps</TITLE>
<META NAME="description" CONTENT="6.1 The making of contour maps">
<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="node75.html">
<LINK REL="previous" HREF="node73.html">
<LINK REL="up" HREF="node73.html">
<LINK REL="next" HREF="node75.html">
</HEAD>
<BODY bgcolor="#ffffff">
<!--Navigation Panel-->
<A NAME="tex2html2066"
HREF="node75.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.gif"></A>
<A NAME="tex2html2060"
HREF="node73.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.gif"></A>
<A NAME="tex2html2054"
HREF="node73.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.gif"></A>
<A NAME="tex2html2062"
HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.gif"></A>
<A NAME="tex2html2064"
HREF="node149.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.gif"></A>
<BR>
<B> Next:</B> <A NAME="tex2html2067"
HREF="node75.html">6.2 Image presentations</A>
<B> Up:</B> <A NAME="tex2html2061"
HREF="node73.html">6. Cook-book</A>
<B> Previous:</B> <A NAME="tex2html2055"
HREF="node73.html">6. Cook-book</A>
  <B> <A NAME="tex2html2063"
HREF="node1.html">Contents</A></B>
  <B> <A NAME="tex2html2065"
HREF="node149.html">Index</A></B>
<BR>
<BR>
<!--End of Navigation Panel-->
<H1><A NAME="SECTION001410000000000000000">
6.1 The making of contour maps</A>
</H1>
<P>
<A NAME="9896"></A>
<P>
We want to create two contour maps of the low order geoid
using the Hammer equal area projection. Our gridded data
file is called <U>osu91a1f_16.grd</U> and contains a global 1<IMG
WIDTH="11" HEIGHT="15" ALIGN="BOTTOM" BORDER="0"
SRC="img61.gif"
ALT="$^{o}$">
by 1<IMG
WIDTH="11" HEIGHT="15" ALIGN="BOTTOM" BORDER="0"
SRC="img61.gif"
ALT="$^{o}$"> gridded geoid (we will see how to make gridded
files later). We would like to show one map centered on
Greenwich and one centered on the dateline. Positive contours
should be drawn with a solid pen and negative contours with
a dashed pen. Annotations should occur for every 50 m contour
level, and both contour maps should show the continents in
light gray in the background. Finally, we want a rectangular
frame surrounding the two maps. This is how it is done:
<P>
<P>
<BR>
<P>
<BR CLEAR="ALL">
<HR>
<BR>
<PRE>
gmtset GRID_CROSS_SIZE 0 ANOT_FONT_SIZE 10
psbasemap -R0/6.5/0/9 -Jx1i -B0 -P -K -U"Example 1 in Cookbook" >! example_01.ps
pscoast -R-180/180/-90/90 -JH0/6i -X0.25i -Y0.5i -O -K -Bg30 -Dc -G200 >> example_01.ps
grdcontour -R osu91a1f_16.grd -JH -C10 -A50f7 -G4i -L-1000/-1 -Wc0.25pta -Wa0.75pt2_2:0 -O -K \
-T0.1i/0.02i >> example_01.ps
grdcontour -R osu91a1f_16.grd -JH -C10 -A50f7 -G4i -L-1/1000 -O -K -T0.1i/0.02i >> example_01.ps
pscoast -R0/360/-90/90 -JH180/6i -Y4i -O -K -Bg30:."Low Order Geoid": -Dc -G200 >> example_01.ps
grdcontour osu91a1f_16.grd -JH -C10 -A50f7 -G4i -L-1000/-1 -Wc0.25pta -Wa0.75pt2_2:0 -O -K \
-T0.1i/0.02i:-+ >> example_01.ps
grdcontour osu91a1f_16.grd -JH -C10 -A50f7 -G4i -L-1/1000 -O -T0.1i/0.02i:-+ >> example_01.ps
\rm -f .gmtcommands
</PRE>
<P>
<BR>
<BR>
<P>
<BR CLEAR="ALL">
<HR>
<P>
The first command draws a box surrounding the maps. This is
followed by two sequences of
<A NAME="tex2html352"
HREF="../pscoast.html"><I><B>pscoast</B></I></A><A NAME="9988"></A>, <A NAME="tex2html353"
HREF="../grdcontour.html"><I><B>grdcontour</B></I></A>, <A NAME="tex2html354"
HREF="../grdcontour.html"><I><B>grdcontour</B></I></A>.
They differ in that the first is centered on Greenwich; the
second on the dateline. We use the limit option (<B>-L</B>)
in <A NAME="tex2html355"
HREF="../grdcontour.html"><I><B>grdcontour</B></I></A><A NAME="10008"></A> to select negative contours only and plot
those with a dashed pen, then positive contours only and draw
with a solid pen [Default]. The <B>-T</B> option causes tickmarks
pointing in the downhill direction to be drawn on the innermost,
closed contours. For the upper panel we also added - and + to
the local lows and highs. You can find this illustration as
Figure <A HREF="node74.html#fig:GMT_example_01">6.1</A>.
<P>
<P></P>
<DIV ALIGN="CENTER"><A NAME="fig:GMT_example_01"></A><A NAME="10018"></A>
<TABLE>
<CAPTION ALIGN="BOTTOM"><STRONG>Figure 6.1:</STRONG>
Contour maps of gridded data</CAPTION>
<TR><TD><IMG
WIDTH="374" HEIGHT="519" BORDER="0"
SRC="img98.gif"
ALT="\begin{figure}\centering\epsfig{figure=eps/GMT_example_01.eps}\end{figure}"></TD></TR>
</TABLE>
</DIV><P></P>
<P>
<A NAME="9981"></A>
<P>
<HR>
<!--Navigation Panel-->
<A NAME="tex2html2066"
HREF="node75.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.gif"></A>
<A NAME="tex2html2060"
HREF="node73.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.gif"></A>
<A NAME="tex2html2054"
HREF="node73.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.gif"></A>
<A NAME="tex2html2062"
HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.gif"></A>
<A NAME="tex2html2064"
HREF="node149.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.gif"></A>
<BR>
<B> Next:</B> <A NAME="tex2html2067"
HREF="node75.html">6.2 Image presentations</A>
<B> Up:</B> <A NAME="tex2html2061"
HREF="node73.html">6. Cook-book</A>
<B> Previous:</B> <A NAME="tex2html2055"
HREF="node73.html">6. Cook-book</A>
  <B> <A NAME="tex2html2063"
HREF="node1.html">Contents</A></B>
  <B> <A NAME="tex2html2065"
HREF="node149.html">Index</A></B>
<!--End of Navigation Panel-->
<ADDRESS>
Paul Wessel
2001-04-18
</ADDRESS>
</BODY>
</HTML>
|