gmtsph-JA : Global grid data mapping using GMT5 with azimuthal equidistant projection.

26 Nov 2018

Installation

gmtsph-JA is a shell script that plots global grid data using GMT5 with azimuthal equidistant projection. The propose of this script is to enable a quick look of a .nc or .grid file, and hopefully ease our every work a little bit. For specified needs, a proper script is still needed. To use it, simply copy the shell scripts dispOption.sh and gmtsph-JA.sh into any directory that is included in your $PATH, then reopen the terminal.

Setup

Please go to the end of gmtsph-JA.sh, where you will see lines as

imgcat $jpgfile #open the output file in terminal, this requires the iTerm.app and imgcat.sh
open $jpgfile #'open' is a command in-build within MacOS

Please use either of them as you see fit. Or for Ubuntu users, you may want to use the command see. I don’t know the corresponding command for other Linux distributions. But you see the gist here.

Usage

gmtsph-JA -i<grid-data> [-r<xmin>/<xmax>/<ymin>/<ymax>] [-l<clon>/<clat>/<horizon>] [-u<unit>] [-c<cpt-file>] [-a<x-label>,<y-label>] [-v<c-tick>] [-g] [-s] [-G<grad-data>] [-p<polygon-file>]

Options

The only argument you need to input is name of the grid file to get a glance of the file. To get a better look, the following options need to be set.

Example

The following is used to draw the example.nc. Names of the output files are taken from the input grid file. Moreover, the script will output a png (no background) and a eps file.

gmtsph-JA -i exmaple.nc

The output should be as below.

example image for gmtsph-JA