Вы находитесь на странице: 1из 18

GMT: The Generic Mapping Tools

Paul Wessel, Walter H.F. Smith and the GMT team

What is GMT?

GMT stands for Generic Mapping Tools GMT is jointly developed by Paul Wessel (UH) and Walter H. F. Smith (NOAA), with voluntary community support from around the world GMT was initiated in 1987 and has been supported by NSF since 1993. GMT 5 funded for 20052010. GMT is used by 10,000+ users worldwide GMT is open-source and platform independent GMT does data processing and static visualization GMT consists of 60+ individual programs with several supplemental units
2

GEON Workshop 2005

The Origin of GMT

Conceived in the pre-web era

Intended for paper illustrations


UNIX-style filters written in POSIX C Standard file format in ASCII or netCDF Adobe PostScript as plot format

Influenced by late 1980ies trends

Plain command-line interface

Very flexible and integrates with shell tools Others may add GUIs, i.e. iGMT, or Webportals
3

GEON Workshop 2005

Why is GMT popular?

Price is right! Easy to install; runs on all platforms Architecture-independent file formats

ASCII and netCDF

Quality PostScript graphics Extensible via supplements Developers are scientists and users Low-tech with a wide range
4

GEON Workshop 2005

GMT Software Requirements

GEON Workshop 2005

What can GMT do?

Data Processing and Manipulation

Relies on UNIX tools for basic tasks

PostScript Plot Generation

Tools can convert PS to raster images

GMT is neither a GIS nor an image processing package


GEON Workshop 2005
6

Data Processing & Manipulation

Filter time series Filter 2-D data Trend fitting Gridding xyz data Resampling Arbitrary math ops Cut/paste grids Blend grids

Directional derivatives Grid masking Data projections Optimal triangulations Subset extraction Spectral estimation RGB from z grids
7

GEON Workshop 2005

PostScript Plot Generation

x-y diagrams of lines, polygons, symbols


Plot text, labels, and map legends Rectangular or polar histograms Basemaps with coastlines, rivers, and borders Contour maps Color images Perspective views (2.5 D) with illumination Vector fields

GEON Workshop 2005

GEON Workshop 2005

GMT Symbols and Patterns


1. Standard Geometrical shapes

GEON Workshop 2005

10

GMT Symbols and Patterns


2. User-defined symbols

GEON Workshop 2005

11

GMT Symbols and Patterns


3. Faults, Fronts, and other demarcations

GEON Workshop 2005

12

GMT Symbols and Patterns


4. Pattern fill

GEON Workshop 2005

13

All GMT tools work together


The GMT Cake Bake

GEON Workshop 2005

14

Using the GMT Map Engine

GEON Workshop 2005

15

(Some) GMT Shortcomings

Lack of high-level API

Too much of GMT functionality is encoded directly in the executables, necessitating system calls
2-D grids stored as 1-D arrays in netCDF Geographical boundary conditions not implemented throughout Splines-in-tension gridding code needs to be transposed
16

Legacy Problems

GEON Workshop 2005

Anticipated GMT Improvements

Design and implementation of GMT 5 API

Callable high-level functions from C/C++, Fortran, Python, Visual Basic, Java, Perl, etc. Complete documentation of the GMT API

Correction of legacy problems Introduction of new features


True perspective view Generalized custom symbols with multiple attributes Easier data exchange with GIS Web-based GMT Map-maker
17

GEON Workshop 2005

Questions?

GEON Workshop 2005

18

Вам также может понравиться