Sophie

Sophie

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

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>2. Introduction</TITLE>
<META NAME="description" CONTENT="2. Introduction">
<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="node27.html">
<LINK REL="previous" HREF="node9.html">
<LINK REL="up" HREF="GMT_Docs.html">
<LINK REL="next" HREF="node26.html">
</HEAD>

<BODY  bgcolor="#ffffff">
<!--Navigation Panel-->
<A NAME="tex2html2812"
  HREF="node26.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html2806"
  HREF="GMT_Docs.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html2800"
  HREF="node24.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html2808"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html2810"
  HREF="node255.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html2813"
  HREF="node26.html">References</A>
<B> Up:</B> <A NAME="tex2html2807"
  HREF="GMT_Docs.html">GMT - Technical Reference</A>
<B> Previous:</B> <A NAME="tex2html2801"
  HREF="node24.html">1.1.14 Overview of GMT</A>
 &nbsp; <B>  <A NAME="tex2html2809"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html2811"
  HREF="node255.html">Index</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->

<H1><A NAME="SECTION001000000000000000000"></A>
<A NAME="ch:2"></A>
<BR>
2. Introduction
</H1>

<P>
Most scientists are familiar with the sequence:
<I>raw data <IMG
 WIDTH="20" HEIGHT="13" ALIGN="BOTTOM" BORDER="0"
 SRC="img21.png"
 ALT="$\rightarrow$"> processing <IMG
 WIDTH="20" HEIGHT="13" ALIGN="BOTTOM" BORDER="0"
 SRC="img21.png"
 ALT="$\rightarrow$"> final illustration</I>.
In order to finalize papers for submission to scientific journals,
prepare proposals, and create overheads and slides for various
presentations, many scientists spend large amounts of time and
money to create camera-ready figures.  This process can be tedious
and is often done manually, since available commercial or in-house
software usually can do only part of the job.  To expedite this
process we introduce the Generic Mapping Tools (<A NAME="tex2html859"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> for short),
which is a free<A NAME="tex2html849"
  HREF="footnode.html#foot12405"><SUP>2.1</SUP></A>, software package that can be used
to manipulate columns of tabular data, time-series, and gridded
data sets, and display these data in a variety of forms ranging
from simple <I>x</I>-<I>y</I> plots to maps and color, perspective,
and shaded-relief illustrations.  <A NAME="tex2html860"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> uses the <I>PostScript</I> page description language [<I>Adobe Systems Inc.</I>, 1990]<A NAME="12409"></A>.  With <I>PostScript</I>, multiple plot
files can easily be superimposed to create arbitrarily complex
images in gray tones or 24-bit true color.  Line drawings, bitmapped
images, and text can be easily combined in one illustration.
<I>PostScript</I> plot files are device-independent: The same file
can be printed at 300 dots per inch (dpi) on an ordinary laserwriter
or at 2470 dpi on a phototypesetter when ultimate quality is needed.
<A NAME="tex2html861"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> software is written as a set of <I>UNIX</I> tools<A NAME="tex2html850"
  HREF="footnode.html#foot12480"><SUP>2.2</SUP></A>and is totally self-contained and fully documented.  The system is offered free
of charge and is distributed over the computer
network (Internet) [<I>Wessel and Smith, 1991; 1995a,b; 1998</I>].

<P>
The original version 1.0 of <A NAME="tex2html862"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> was released in the summer of 1988
when the authors were graduate students at Lamont-Doherty Earth
Observatory<A NAME="12412"></A><A NAME="12413"></A> of Columbia University.
During our tenure as graduate
students, L-DEO changed its computing environment to a distributed
network of <I>UNIX</I> workstations, and we wrote <A NAME="tex2html863"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> to run in this
environment.  It became a success at L-DEO, and soon spread to
numerous other institutions in the US, Canada, Europe, and Japan.
The current version benefits from the many suggestions
contributed by users of the earlier versions, and now includes more
than 50 tools, more than 30 projections, and many other new, more
flexible features.  <A NAME="tex2html864"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> provides scientists with a variety of
tools for data manipulation and display, including routines to sample,
filter, compute spectral estimates, and determine trends in time
series, grid or triangulate arbitrarily spaced data, perform
mathematical operations (including filtering) on 2-D data sets
both in the space and frequency domain, sample surfaces along
arbitrary tracks or onto a new grid, calculate volumes, and find
trend surfaces.  The plotting programs will let the user make linear,
log<IMG
 WIDTH="17" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
 SRC="img2.png"
 ALT="$_{10}$">, and <I>x<IMG
 WIDTH="11" HEIGHT="15" ALIGN="BOTTOM" BORDER="0"
 SRC="img22.png"
 ALT="$^a$"></I>-<I>y<IMG
 WIDTH="11" HEIGHT="18" ALIGN="BOTTOM" BORDER="0"
 SRC="img23.png"
 ALT="$^b$"></I> diagrams, polar and
rectangular histograms, maps with filled continents and coastlines
choosing from many common map projections, contour plots, mesh plots,
monochrome or color images, and artificially illuminated
shaded-relief and 3-D perspective illustrations. 

<P>
<A NAME="12417"></A>
<A NAME="12418"></A>
<A NAME="12419"></A>
<A NAME="12420"></A>
<A NAME="12421"></A>
<A NAME="12422"></A>
<A NAME="tex2html865"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> is written in the highly portable ANSI C <A NAME="12423"></A> programming language
[<I>Kernighan and Ritchie</I>, 1988], is fully POSIX compliant<A NAME="12425"></A>
[<I>Lewine</I>, 1991], has no Year 2000 problems<A NAME="12427"></A>, and may be used
with any hardware running some flavor of <I>UNIX</I>, possibly with minor
modifications.  In writing <A NAME="tex2html866"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A>, we have followed the modular
design philosophy of <I>UNIX</I>: The <I>raw data <IMG
 WIDTH="20" HEIGHT="13" ALIGN="BOTTOM" BORDER="0"
 SRC="img21.png"
 ALT="$\rightarrow$"> processing <IMG
 WIDTH="20" HEIGHT="13" ALIGN="BOTTOM" BORDER="0"
 SRC="img21.png"
 ALT="$\rightarrow$">
final illustration</I> flow is broken down to a series of elementary
steps; each step is accomplished by a separate <A NAME="tex2html867"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> or <I>UNIX</I> tool.
This modular approach brings several benefits: (1) only a few
programs are needed, (2) each program is small and easy to update
and maintain, (3) each step is independent of the previous step
and the data type and can therefore be used in a variety of
applications, and (4) the programs can be chained together in
shell scripts or with pipes, thereby creating a process tailored
to do a user-specific task.  The  decoupling of the data retrieval
step from the subsequent massage and plotting is particularly
important, since each institution will typically have its own
data base formats.  To use <A NAME="tex2html868"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> with custom data bases, one has
only to write a data extraction tool which will put out data in a
form readable by <A NAME="tex2html869"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> (discussed below).  After writing the extractor,
all other <A NAME="tex2html870"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> modules will work as they are. 

<P>
<A NAME="tex2html871"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> makes full use of the <I>PostScript</I> page description language, and can produce color illustrations
if a color <I>PostScript</I> device is available.  One does not
necessarily have to have access to a top-of-the-line color printer
to take advantage of the color capabilities offered by <A NAME="tex2html872"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A>: Several
companies offer imaging services where the customer provides a
<I>PostScript</I> plot file and gets color slides or hardcopies in return.
Furthermore, general-purpose <I>PostScript</I> raster image processors
(RIPs) are now becoming available, letting the user create raster images
from <I>PostScript</I> and plot these bitmaps on raster devices like computer
screens, dot-matrix printers, large format raster plotters, and film
writers<A NAME="tex2html851"
  HREF="footnode.html#foot12481"><SUP>2.3</SUP></A>.
Because the publication costs of color illustrations are high,
<A NAME="tex2html873"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> offers 90 common bit and hachure patterns, including many geologic
map symbol types, as well as complete graytone shading operations.
Additional bit and hachure patterns may also be designed by the user.
With these tools, it is possible to generate publication-ready
monochrome originals on a common laserwriter. 

<P>
<A NAME="tex2html874"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> is thoroughly documented and comes with a technical reference and
cookbook which explains the purpose of the package and its many features,
and provides numerous examples to help new users quickly become familiar
with the operation and philosophy of the system.  The cookbook contains
the shell scripts that were used for each example; <I>PostScript</I> files of each illustration are also provided.  All programs have
individual manual pages which can be installed as part of the on-line
documentation under the <I>UNIX</I> <I>man</I><A NAME="12550"></A> utility or as web pages.  In addition, the
programs offer friendly help messages which make them essentially
self-teaching - if a user enters invalid or ambiguous command arguments,
the program will print a warning to the screen with a synopsis of the
valid arguments.  All the documentation is available for web browsing
and may be installed at the user's site.

<P>
The processing and display routines within <A NAME="tex2html875"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> are completely general
and will handle any (<I>x,y</I>) or (<I>x,y,z</I>) data as input.
For many purposes the (<I>x,y</I>) coordinates will be (longitude,
latitude) but in most cases they could equally well be any other
variables (e.g., wavelength, power spectral density).  Since the <A NAME="tex2html876"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> plot tools will map these (<I>x,y</I>) coordinates to positions on a
plot or map using a variety of transformations (linear, log-log, and
several map projections), they can be used with any data that are
given by two or three coordinates.  In order to simplify and standardize
input and output, <A NAME="tex2html877"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> uses two file formats only.  Arbitrary sequences
of (<I>x,y</I>) or (<I>x,y,z</I>) data are read from multi-column ASCII
tables, i.e., each file consists of several records, in which each
coordinate is confined to a separate column<A NAME="tex2html852"
  HREF="footnode.html#foot12437"><SUP>2.4</SUP></A>.  This format is
straightforward and allows the user to perform almost any simple
(or complicated) reformatting or processing task using standard
<I>UNIX</I> utilities such as <I>cut</I><A NAME="12563"></A>, <I>paste</I><A NAME="12566"></A>, <I>grep</I><A NAME="12569"></A>,
<I>sed</I><A NAME="12572"></A> and <I>awk</I><A NAME="12575"></A>.
Two-dimensional data that have been sampled on an equidistant grid are
read and written by <A NAME="tex2html878"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> in a binary grid file using the functions
provided with the netCDF<A NAME="12443"></A> library (a free, public-domain software
library available separately from UCAR, the University Corporation
of Atmospheric Research [<I>Treinish and Gough</I>, 1987]).  This XDR<A NAME="12445"></A>
(External Data Representation) based format is architecture independent,
which allows the user to transfer the binary data files from one
computer system to another<A NAME="tex2html853"
  HREF="footnode.html#foot12446"><SUP>2.5</SUP></A>.
<A NAME="tex2html879"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> contains programs that will read ASCII
(<I>x,y,z</I>) files and produce grid files.  One such program,
<A NAME="tex2html880"
  HREF="../man/surface.html"><I><B>surface</B></I></A><A NAME="12585"></A>, includes new modifications to the gridding algorithm
developed by <I>Smith and Wessel</I> [1990] using continuous splines
in tension. 

<P>
Most of the programs will produce some form of output, which falls
into four categories.  Several of the programs may produce more than
one of these types of output:
<P>

<OL>
<LI>1-D ASCII Tables -- For example, a (<IMG
 WIDTH="25" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
 SRC="img24.png"
 ALT="$x,y$">) series may be filtered and
the filtered values output.  ASCII output is written to the standard output stream. 

<P>
</LI>
<LI>2-D binary (netCDF or user-defined) grid files - Programs that grid
ASCII (<IMG
 WIDTH="36" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
 SRC="img25.png"
 ALT="$x,y,z$">) data or operate on existing grid files produce this type of output. 

<P>
</LI>
<LI><I>PostScript</I> - The plotting programs all use the <I>PostScript</I> page description language to define plots.  These commands are stored as ASCII
text and can be edited should you want to customize the plot beyond the options
available in the programs themselves. 

<P>
</LI>
<LI>Reports - Several <A NAME="tex2html854"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> programs read input files and report statistics
and other information.  Nearly all programs have an optional ``verbose''
operation, which reports on the progress of computation.  All programs feature
usage messages, which prompt the user if incorrect commands have been given.
Such text is written to the standard error stream and can therefore be
separated from ASCII table output. 

<P>
</LI>
</OL> 

<P>
<A NAME="tex2html881"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> is available over the Internet at no charge.  To obtain a copy, read
the relevant information on the <A NAME="tex2html882"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> home page gmt.soest.hawaii.edu,
or email
<A NAME="tex2html883"
  HREF="mailto:listserv@hawaii.edu">listserv@hawaii.edu</A>
a note containing the single message 
<BR><A NAME="12458"></A>
<A NAME="12459"></A>
<A NAME="12460"></A>
<A NAME="12461"></A>
<A NAME="12462"></A>

<P>
<B>information gmt-group</B> 
<BR>
<P>
The listserver will mail you back a shell-script that you may run to obtain
all necessary programs, libraries, and support data.  After you obtain the
<A NAME="tex2html884"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> archive, you will find that it contains information on how to install
<A NAME="tex2html885"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> on your hardware platform and how to obtain additional files that you
may need or want.  The archive also contains a license agreement and
registration file.  We also maintain two electronic mailing lists you may
subscribe to in order to stay informed about bug fixes and upgrades (See
Chapter&nbsp;<A HREF="node120.html#ch:7">7</A>).

<P>
For those without net-access that need to obtain <A NAME="tex2html886"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A>: Geoware
<A NAME="tex2html887"
  HREF="http://www.geoware-online.com">(http://www.geoware-online.com)</A>
makes and distributes CD-R and DVD-R media with the <A NAME="tex2html888"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> package, compatible supplements, and
several Gb of useful Earth and ocean science data sets.  For more information send e-mail to
<A NAME="tex2html889"
  HREF="mailto:geoware@geoware-online.com">geoware@geoware-online.com</A>. 

<P>
<A NAME="tex2html890"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> has served a multitude of scientists very well, and their responses
have prompted us to develop these programs even further.  It is our
hope that the new version will satisfy these users and attract new
users as well.  We present this system to the community in order to
promote sharing of research software among investigators in the US
and abroad. 

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

<UL>
<LI><A NAME="tex2html2814"
  HREF="node26.html">References</A>
</UL>
<!--End of Table of Child-Links-->
<HR>
<!--Navigation Panel-->
<A NAME="tex2html2812"
  HREF="node26.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html2806"
  HREF="GMT_Docs.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html2800"
  HREF="node24.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html2808"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html2810"
  HREF="node255.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html2813"
  HREF="node26.html">References</A>
<B> Up:</B> <A NAME="tex2html2807"
  HREF="GMT_Docs.html">GMT - Technical Reference</A>
<B> Previous:</B> <A NAME="tex2html2801"
  HREF="node24.html">1.1.14 Overview of GMT</A>
 &nbsp; <B>  <A NAME="tex2html2809"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html2811"
  HREF="node255.html">Index</A></B> 
<!--End of Navigation Panel-->
<ADDRESS>
Paul Wessel
2010-01-14
</ADDRESS>
</BODY>
</HTML>