gmt


Introduction:

GMT is an open source collection of command-line tools for
manipulating geographic and Cartesian data sets and producing
PostScript images of the results.

Operations include filtering, trend fitting, gridding and projecting.
The output can be simple x–y plots, contour maps, artificially illuminated
surfaces or 3D perspective views.

GMT supports over 30 map projections and transformations and requires
support data such as GSHHG coastlines, rivers, and political boundaries
and optionally DCW country polygons.

Web site:


http://gmt.soest.hawaii.edu

Reference:

  1. P Wessel, W Smith, R Scharroo, J Luis, F Wobbe,
    The Generic Mapping Tools, GMT Tutorial Release 5.3.3,
    March 22, 2017.

  2. http://gmt.soest.hawaii.edu/projects/gmt/wiki/Documentation

Usage:

On any ARC cluster, check the installation details
by typing "module spider gmt".

GMT must be loaded by a module command before it can be used.
One version of the appropriate commands for use on BlueRidge is:

module purge
module load gcc/4.7.2
module load hdf5/1.8.8
module load netcdf/4.2
module load gmt/5.0.0
    

Examples:

In the following batch file, GMT is called twice, to make two plots.

#! /bin/bash
#
#PBS -l walltime=00:05:00
#PBS -l nodes=1:ppn=1
#PBS -W group_list=blueridge
#PBS -q open_q
#PBS -j oe

cd $PBS_O_WORKDIR

module purge
module load gcc/4.7.2
module load hdf5/1.8.8
module load netcdf/4.2
module load gmt/5.0.0
#
gmt pscoast -R-130/-70/24/52 -JB-100/35/33/45/6i -Ba -B+t"Conic Projection" -N1/thickest -N2/thinnest -A500 -Ggray -Wthinnest -P > GMT_tut_4.ps
#
gmt pscoast -Rg -JG280/30/6i -Bag -Dc -A5000 -Gwhite -SDarkTurquoise -P > GMT_tut_5.ps
#

A complete set of files to carry out a similar process are available in
gmt_example.tar