Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > 5764c67416561ab82b35afcf9c650e17 > files > 543

GMT-doc-4.5.2-1.fc13.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<!--Converted with LaTeX2HTML 2002-2-1 (1.71)
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>7. Creating GMT Graphics</TITLE>
<META NAME="description" CONTENT="7. Creating GMT Graphics">
<META NAME="keywords" CONTENT="GMT_Docs">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">

<META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">

<LINK REL="STYLESHEET" HREF="GMT_Docs.css">

<LINK REL="next" HREF="node151.html">
<LINK REL="previous" HREF="node84.html">
<LINK REL="up" HREF="GMT_Docs.html">
<LINK REL="next" HREF="node121.html">
</HEAD>

<BODY  bgcolor="#ffffff">
<!--Navigation Panel-->
<A NAME="tex2html4272"
  HREF="node121.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html4266"
  HREF="GMT_Docs.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html4260"
  HREF="node119.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html4268"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html4270"
  HREF="node255.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html4273"
  HREF="node121.html">7.1 The making of</A>
<B> Up:</B> <A NAME="tex2html4267"
  HREF="GMT_Docs.html">GMT - Technical Reference</A>
<B> Previous:</B> <A NAME="tex2html4261"
  HREF="node119.html">6.4.7 Van der Grinten</A>
 &nbsp; <B>  <A NAME="tex2html4269"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html4271"
  HREF="node255.html">Index</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->

<H1><A NAME="SECTION001500000000000000000"></A>
<A NAME="ch:7"></A>
<BR>
7. Creating GMT Graphics
</H1>

<P>
In this section we will be giving several examples of
typical usage of <A NAME="tex2html1292"
  HREF="http://gmt.soest.hawaii.edu"><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 an annotated Bourne shell 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&nbsp;<A HREF="node196.html#app:D">D</A> if you would like an electronic version
of all the shell-scripts (both <I>sh</I><A NAME="24183"></A> and <I>csh</I><A NAME="24186"></A> scripts
are available, as or DOS batch files; only the <I>sh</I><A NAME="24189"></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.

<P>
Note that we also end each script by cleaning up after
ourselves. Because <I>awk</I><A NAME="24192"></A> is broken as designed on some
systems, and <I>nawk</I><A NAME="24195"></A> is not available on others we refer
to <I>$AWK</I><A NAME="24198"></A> in the scripts below; the <I>do_examples.sh</I><A NAME="24201"></A>
scripts will set this when running all examples. 

<P>
Finally, be aware that for practical purposes the output <I>PostScript</I> file name is stored as the variable <TT>ps</TT>.

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

<UL>
<LI><A NAME="tex2html4274"
  HREF="node121.html">7.1 The making of contour maps</A>
<LI><A NAME="tex2html4275"
  HREF="node122.html">7.2 Image presentations</A>
<LI><A NAME="tex2html4276"
  HREF="node123.html">7.3 Spectral estimation and xy-plots</A>
<LI><A NAME="tex2html4277"
  HREF="node124.html">7.4 A 3-D perspective mesh plot</A>
<LI><A NAME="tex2html4278"
  HREF="node125.html">7.5 A 3-D illuminated surface in black and white</A>
<LI><A NAME="tex2html4279"
  HREF="node126.html">7.6 Plotting of histograms</A>
<LI><A NAME="tex2html4280"
  HREF="node127.html">7.7 A simple location map</A>
<LI><A NAME="tex2html4281"
  HREF="node128.html">7.8 A 3-D histogram</A>
<LI><A NAME="tex2html4282"
  HREF="node129.html">7.9 Plotting time-series along tracks</A>
<LI><A NAME="tex2html4283"
  HREF="node130.html">7.10 A geographical bar graph plot</A>
<LI><A NAME="tex2html4284"
  HREF="node131.html">7.11 Making a 3-D RGB color cube</A>
<LI><A NAME="tex2html4285"
  HREF="node132.html">7.12 Optimal triangulation of data</A>
<LI><A NAME="tex2html4286"
  HREF="node133.html">7.13 Plotting of vector fields</A>
<LI><A NAME="tex2html4287"
  HREF="node134.html">7.14 Gridding of data and trend surfaces</A>
<LI><A NAME="tex2html4288"
  HREF="node135.html">7.15 Gridding, contouring, and masking of unconstrained areas</A>
<LI><A NAME="tex2html4289"
  HREF="node136.html">7.16 Gridding of data, continued</A>
<LI><A NAME="tex2html4290"
  HREF="node137.html">7.17 Images clipped by coastlines</A>
<LI><A NAME="tex2html4291"
  HREF="node138.html">7.18 Volumes and Spatial Selections</A>
<LI><A NAME="tex2html4292"
  HREF="node139.html">7.19 Color patterns on maps</A>
<LI><A NAME="tex2html4293"
  HREF="node140.html">7.20 Custom plot symbols</A>
<LI><A NAME="tex2html4294"
  HREF="node141.html">7.21 Time-series of RedHat stock price</A>
<LI><A NAME="tex2html4295"
  HREF="node142.html">7.22 World-wide seismicity the last 7 days</A>
<LI><A NAME="tex2html4296"
  HREF="node143.html">7.23 All great-circle paths lead to Rome</A>
<LI><A NAME="tex2html4297"
  HREF="node144.html">7.24 Data selection based on geospatial criteria</A>
<LI><A NAME="tex2html4298"
  HREF="node145.html">7.25 Global distribution of antipodes</A>
<LI><A NAME="tex2html4299"
  HREF="node146.html">7.26 General vertical perspective projection</A>
<LI><A NAME="tex2html4300"
  HREF="node147.html">7.27 Plotting Sandwell/Smith Mercator img grids</A>
<LI><A NAME="tex2html4301"
  HREF="node148.html">7.28 Mixing UTM and geographic data sets</A>
<LI><A NAME="tex2html4302"
  HREF="node149.html">7.29 Gridding spherical surface data using splines</A>
<LI><A NAME="tex2html4303"
  HREF="node150.html">7.30 Trigonometric functions plotted in graph mode</A>
</UL>
<!--End of Table of Child-Links-->
<HR>
<!--Navigation Panel-->
<A NAME="tex2html4272"
  HREF="node121.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html4266"
  HREF="GMT_Docs.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html4260"
  HREF="node119.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html4268"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html4270"
  HREF="node255.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html4273"
  HREF="node121.html">7.1 The making of</A>
<B> Up:</B> <A NAME="tex2html4267"
  HREF="GMT_Docs.html">GMT - Technical Reference</A>
<B> Previous:</B> <A NAME="tex2html4261"
  HREF="node119.html">6.4.7 Van der Grinten</A>
 &nbsp; <B>  <A NAME="tex2html4269"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html4271"
  HREF="node255.html">Index</A></B> 
<!--End of Navigation Panel-->
<ADDRESS>
Paul Wessel
2010-01-14
</ADDRESS>
</BODY>
</HTML>