Common Options

Standardized Command Line Options

Option

Description

-Binformation

Specify map frame and axes parameters

-Jparameters

Select map projection

-Rwest/east/south/north[/zmin/zmax][+r][+uunit]

Specify region of interest

-U[label][+c][+jjust][+odx/dy][+ttext]

Display time-stamp on plot

-V[verbosity]

Run in verbose mode

-X[a|c|f|r]xshift

Shift plot origin in x-direction

-Y[a|c|f|r]yshift

Shift plot origin in y-direction

-a[col=]name[,]

Associate aspatial data with columns

-birecord[+b|l]

Select binary input

-borecord[+b|l]

Select binary output

-c[row,col|index]

Advance plot focus to selected (or next) subplot panel

-d[i|o]nodata[+ccol]

Replace nodata in columns with NaN

-e[~]“pattern” | -e[~]/regexp/[i]

Filter data records that match the given pattern

-f[i|o]colinfo

Set column content of input or output

-gx|y|z|d|X|Y|Dgap[u][+a][+ccol][+n|p]

Segment data by detecting gaps

-h[i|o][n][+c][+d][+msegheader][+rremark][+ttitle]

ASCII tables have header record[s]

-icols[+l][+ddivide][+sscale|d|k][+ooffset][,][,t[word]]

Selection of input columns and optional transformations

-je|f|g

Mode of spherical distance calculation

-l[label][modifiers]

Add an item to the automatic plot legend

-n[b|c|l|n][+a][+bBC][+c][+tthreshold]

Set grid interpolation mode

-ocols[,…][,t[word]]

Selection of output columns and optional transformations

-p[x|y|z]azim[/elev[/zlevel]][+wlon0/lat0[/z0]][+vx0/y0]

Control 3-D perspective view

-q[i|o][~]rows[+ccol][+a|t|s]

Selection of input or output rows

-r[g|p]

Sets grid registration

-s[cols][+a|r]

Control treatment of NaN records

-t[transp[/transp2]][+f][+s]

Set layer transparency

-wy|a|w|d|h|m|s|cperiod[/phase][+ccol]

Convert selected coordinate to repeating cycles

-x[[-]n]

Set number of cores in multi-threaded modules

-:[i|o]

Expect y/x input (or output) rather than x/y

Standardized Command Line Options available in GMT Classic Mode Only

In GMT classic mode, options -c and -l are NOT available, but the following common options are:

Option

Description

-K

Append more PostScript later

-O

This is an overlay plot

-P

Select Portrait orientation