There are 17 GMT programs that directly create or modify plots (Table 2.1); the remaining 43 are mostly concerned with data processing. This session will focus on the task of plotting lines, symbols, and text on maps. We will build on the skills we acquired while familiarizing ourselves with the various GMT map projections as well as how to select a data domain and boundary annotations.
|
Plotting lines and symbols, psxy is one of the most frequently used programs in GMT. In addition to the common command line switches it has numerous specific options, and expects different file formats depending on what symbol has been selected. These circumstances makes psxy harder to master than most GMT tools. Table 2.2 shows a complete list of the options.
|
The symbols can either be transparent (using -–W only, not -–G) or solid (-–G, with optional outline using -–W). The -–S option takes the code for the desired symbol and optional size information. If no symbol is given it is expected to be in the last column of the input file. The size is optional since individual sizes for symbols may be provided by the input data. The 15 symbols available to us are
|
Because some symbols require more input data than others, and because the
size of symbols as well as their color can be determined from the input data,
the format of data can be confusing. The general format for the input data
is (optional items are in brackets []):
[
] [
] [
] [
] [
]
The only required input columns are the first two which must contain the longitude and latitude (or x and y). The remaining items apply when one (or more) of the following conditions are met:
Before we try some examples we need to discuss two key switches; they specify pen attributes and symbol or polygon fill.