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
|
<!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. Cook-book</TITLE>
<META NAME="description" CONTENT="6. Cook-book">
<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="node94.html">
<LINK REL="previous" HREF="node34.html">
<LINK REL="up" HREF="GMT_Docs.html">
<LINK REL="next" HREF="node74.html">
</HEAD>
<BODY bgcolor="#ffffff">
<!--Navigation Panel-->
<A NAME="tex2html2032"
HREF="node74.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.gif"></A>
<A NAME="tex2html2026"
HREF="GMT_Docs.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.gif"></A>
<A NAME="tex2html2020"
HREF="node72.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.gif"></A>
<A NAME="tex2html2028"
HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.gif"></A>
<A NAME="tex2html2030"
HREF="node149.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.gif"></A>
<BR>
<B> Next:</B> <A NAME="tex2html2033"
HREF="node74.html">6.1 The making of</A>
<B> Up:</B> <A NAME="tex2html2027"
HREF="GMT_Docs.html">The Generic Mapping Tools</A>
<B> Previous:</B> <A NAME="tex2html2021"
HREF="node72.html">5.5.7 Van der Grinten</A>
  <B> <A NAME="tex2html2029"
HREF="node1.html">Contents</A></B>
  <B> <A NAME="tex2html2031"
HREF="node149.html">Index</A></B>
<BR>
<BR>
<!--End of Navigation Panel-->
<H1><A NAME="SECTION001400000000000000000">
6. Cook-book</A>
</H1>
<P>
In this section we will be giving several examples of
typical usage of <A NAME="tex2html350"
HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> programs. In general, we will
start with a raw data set, manipulate the numbers in
various ways, then display the results in diagram or
map view. The resulting plots will have in common that
they are all made up of simpler plots that have been
overlaid to create a complex illustration. We will
mostly follow the following format:
<P>
<OL>
<LI>We explain what we want to achieve in plain
language.
<P>
</LI>
<LI>We present a cshell script that contains
all commands used to generate the illustration.
<P>
</LI>
<LI>We explain the rationale behind the commands.
<P>
</LI>
<LI>We present the illustration, 50% reduced in size, and without
the timestamp (<B>-U</B>).
</LI>
</OL>
<P>
A detailed discussion of each command is not given;
we refer you to the manual pages for command line
syntax, etc. We encourage you to run these scripts for yourself.
See Appendix D if you would like an electronic version
of all the shell-scripts (both <I>csh</I><A NAME="9903"></A> and <I>bash</I><A NAME="9908"></A> scripts
are available; only the <I>csh</I><A NAME="9913"></A>-scripts are discussed here) and support
data used below. Note that all examples explicitly specifies the
measurement units, so although we use inches you should be able
to run these scripts and get the same plots even if you have cm
as the default measure unit. The examples are all written to be ``quiet'',
that is no information is echoed to the screen. Thus,
these scripts are well suited for background execution.
Note that we also end each script by cleaning up after
ourselves. Because <I>awk</I><A NAME="9918"></A> is broken as designed on some
systems, and <I>nawk</I><A NAME="9923"></A> is not available on others we refer
to <I>$AWK</I><A NAME="9928"></A> in the scripts below; the <I>do_examples</I><A NAME="9933"></A>
scripts will set this when running all examples.
<P>
<BR><HR>
<!--Table of Child-Links-->
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A>
<UL>
<LI><A NAME="tex2html2034"
HREF="node74.html">6.1 The making of contour maps</A>
<LI><A NAME="tex2html2035"
HREF="node75.html">6.2 Image presentations</A>
<LI><A NAME="tex2html2036"
HREF="node76.html">6.3 Spectral estimation and xy-plots</A>
<LI><A NAME="tex2html2037"
HREF="node77.html">6.4 A 3-D perspective mesh plot</A>
<LI><A NAME="tex2html2038"
HREF="node78.html">6.5 A 3-D illuminated surface in black and white</A>
<LI><A NAME="tex2html2039"
HREF="node79.html">6.6 Plotting of histograms</A>
<LI><A NAME="tex2html2040"
HREF="node80.html">6.7 A simple location map</A>
<LI><A NAME="tex2html2041"
HREF="node81.html">6.8 A 3-D histogram</A>
<LI><A NAME="tex2html2042"
HREF="node82.html">6.9 Plotting time-series along tracks</A>
<LI><A NAME="tex2html2043"
HREF="node83.html">6.10 A geographical bar graph plot</A>
<LI><A NAME="tex2html2044"
HREF="node84.html">6.11 Making a 3-D RGB color cube</A>
<LI><A NAME="tex2html2045"
HREF="node85.html">6.12 Optimal triangulation of data</A>
<LI><A NAME="tex2html2046"
HREF="node86.html">6.13 Plotting of vector fields</A>
<LI><A NAME="tex2html2047"
HREF="node87.html">6.14 Gridding of data and trend surfaces</A>
<LI><A NAME="tex2html2048"
HREF="node88.html">6.15 Gridding, contouring, and masking of unconstrained areas</A>
<LI><A NAME="tex2html2049"
HREF="node89.html">6.16 Gridding of data, continued</A>
<LI><A NAME="tex2html2050"
HREF="node90.html">6.17 Images clipped by coastlines</A>
<LI><A NAME="tex2html2051"
HREF="node91.html">6.18 Volumes and Spatial Selections</A>
<LI><A NAME="tex2html2052"
HREF="node92.html">6.19 Color patterns on maps</A>
<LI><A NAME="tex2html2053"
HREF="node93.html">6.20 Custom map symbols</A>
</UL>
<!--End of Table of Child-Links-->
<HR>
<!--Navigation Panel-->
<A NAME="tex2html2032"
HREF="node74.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.gif"></A>
<A NAME="tex2html2026"
HREF="GMT_Docs.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.gif"></A>
<A NAME="tex2html2020"
HREF="node72.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.gif"></A>
<A NAME="tex2html2028"
HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.gif"></A>
<A NAME="tex2html2030"
HREF="node149.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.gif"></A>
<BR>
<B> Next:</B> <A NAME="tex2html2033"
HREF="node74.html">6.1 The making of</A>
<B> Up:</B> <A NAME="tex2html2027"
HREF="GMT_Docs.html">The Generic Mapping Tools</A>
<B> Previous:</B> <A NAME="tex2html2021"
HREF="node72.html">5.5.7 Van der Grinten</A>
  <B> <A NAME="tex2html2029"
HREF="node1.html">Contents</A></B>
  <B> <A NAME="tex2html2031"
HREF="node149.html">Index</A></B>
<!--End of Navigation Panel-->
<ADDRESS>
Paul Wessel
2001-04-18
</ADDRESS>
</BODY>
</HTML>
|