GMT The Generic Mapping Tools

Download Report

Transcript GMT The Generic Mapping Tools

GMT: The Generic Mapping Tools Paul Wessel, Walter H.F. Smith and the GMT team

What is GMT?

       GMT stands for G eneric M apping T ools 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 2005–2010.

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 GEON Workshop 2005 2

The Origin of GMT

   Conceived in the pre-web era  Intended for paper illustrations Influenced by late 1980ies trends    UNIX-style “filters” written in POSIX C Standard file format in ASCII or netCDF Adobe PostScript as plot format Plain command-line interface   Very flexible and integrates with shell tools Others may add GUIs, i.e. iGMT, or Web portals GEON Workshop 2005 3

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 GEON Workshop 2005 4

GEON Workshop 2005

GMT Software Requirements

5

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 GEON Workshop 2005 7

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 8

GEON Workshop 2005 9

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

GEON Workshop 2005

All GMT tools work together

The GMT Cake Bake 14

GEON Workshop 2005

Using the GMT Map Engine

15

(Some) GMT Shortcomings

  Lack of high-level API  Too much of GMT functionality is encoded directly in the executables, necessitating system calls Legacy Problems    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 GEON Workshop 2005 16

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 GEON Workshop 2005 17

Questions?

GEON Workshop 2005 18