[更新情報]

▽Go to footer

目次

GMT program summary (gmt_man.html より抜粋)

NoProgramFunction
1blockmeanL2 (x,y,z) data filter/decimator
2blockmedianL1 (x,y,z) data filter/decimator
3blockmodeMode-estimating (x,y,z) data filter/decimator
4filter1dFilter 1-D data (time series)
5fitcircleFinds best-fitting great or small circles
6gmt_shell_functionsSimplifying GMT bash scripting
7gmt2rgbConvert Sun raster or grdfile to red, green, blue component grids
8gmtcolorsInformation on how to specify colors in GMT
9gmtconvertConvert table data from one format to another
10gmtdefaultsList the current default settings
11gmtgetGet present value of a GMT defaults parameter
12gmtlogoPlot a GMT logo as an overlay
13gmtmathReverse Polish calculator for table data
14gmtselectSelect table subsets based on multiple spatial criteria
15gmtsetEdit parameters in the .gmtdefaults file
16grd2cptMake color palette table from grdfile
17grd2xyzConvert 2-D gridded data to table
18grdblendBlend several gridded data sets into one
19grdclipLimit the z-range in gridded data sets
20grdcontourContouring of 2-D gridded data
21grdcutCut a sub-region from a grd file
22grdeditModify grd header information
23grdfftOperate on grdfiles in frequency domain
24grdfilterFilter 2-D data in space domain
25grdgradientCompute directional gradient from grdfiles
26grdhisteqHistogram equalization for grdfiles
27grdimageProduce images from 2-D gridded datar
28grdinfoGet information about grd files
29grdlandmaskCreates mask grdfile from coastline database
30grdmaskSet nodes outside a clip path to a constant
31grdmathReverse Polish calculator for grdfiles
32grdpastePaste together grdfiles along common edge
33grdprojectProject gridded data onto new coordinate system
34grdreformatConvert from one grdformat to another
35grdsampleResample a 2-D gridded data onto new grid
36grdtrackSampling of 2-D data along 1-D track
37grdtrendFits polynomial trends to grdfiles (z = f(x,y))
38grdvectorPlot vector fields from 2-D gridded data
39grdview3-D perspective imaging of 2-D gridded data
40grdvolumeCalculating volume under a surface within a contour
41greensplineGridding using Green's function splines
42isogmtRun GMT command or script in isolation mode
43makecptCreate GMT color palette tables
44mapprojectTransformation of coordinate systems
45minmaxReport extreme values in table datafiles
46nearneighborNearest-neighbor gridding scheme
47projectProject data onto lines/great circles
48ps2rasterCrop and convert PostScript to raster image, EPS and PDF
49psbasemapCreate a basemap frame
50psbboxReplace BoundingBox line in PostScript files
51psclipUse polygon files as clipping paths
52pscoastPlot coastlines, filled continents, rivers, and political borders
53pscontourDirect contouring or imaging of xyz-data by triangulation
54pshistogramPlot a histogram
55psimagePlot Sun rasterfiles on a map
56pslegendPlot legend on a map
57psmaskCreate overlay to mask specified regions of a map
58psrosePlot sector or rose diagrams
59psscalePlot grayscale or colorscale
60pstextPlot textstrings
61pswiggleDraw anomalies along track
62psxyPlot symbols, polygons, and lines in 2-D
63psxyzPlot symbols, polygons, and lines in 3-D
64sample1dResampling of 1-D data
65spectrum1dCompute spectral estimates from time-series
66splitxyzSplit xyz files into several segments
67surfaceContinuous curvature gridding algorithm
68trend1dFits polynomial or Fourier trends to y = f(x) series
69trend2dFits polynomial trends to z = f(x,y) series
70triangulatePerform optimal Delauney triangulation on xyz data
71triangulatePerform optimal Delauney triangulation on xyz data
72xyz2grdConvert table to 2-D grd file



GMT Version 4.5.7 Technical Reference and Cookbook からの抜粋

Table 4.1: The 17 standardized GMT command line switches.

OptionMeaning
-BDefines tickmarks, annotations, and labels for basemaps and axes
-HSpecifies that input/output tables have header record(s)
-JSelects a map projection or coordinate transformation
-KAllows more plot code to be appended to this plot later
-OAllows this plot code to be appended to an existing plot
-PSelects Portrait plot orientation [Default is landscape]
-RDefines the extent of the map/plot region
-UPlots a time-stamp, by default in the lower left corner of page
-VSelects verbose operation; reporting on progress
-XSets the x-coordinate for the plot origin on the page
-YSets the y-coordinate for the plot origin on the page
-bSelects binary input and/or output
-cSpecifies the number of plot copies
-fSpecifies the data format on a per column basis
-gIdentify data gaps based on supplied criteria
-mSpecifies data in multiple segment format
-:Assumes input geographic data are (lat,lon) and not (lon,lat)

Table 4.2: Interval type codes.

FlagDescription
aAnnotation tick spacing
fFrame tick spacing
gGrid tick spacing

Table 4.7: GMT text escape sequences.

CodeEffect
@~ Turns symbol font on or off
@+ Turns superscript on or off
@- Turns subscript on or off
@# Turns small caps on or off
@_ Turns underline on or off
@%fontno%Switches to another font; @%% resets to previous font
@:size: Switches to another font size; @:: resets to previous size
@;color; Switches to another font color; @;; resets to previous color
@! Creates one composite character of the next two characters
@@ Prints the @ sign itself



>gmtdefaults -D による表示内容

#
#	GMT-SYSTEM 4.5.7 Defaults file
#
#-------- Plot Media Parameters -------------
PAGE_COLOR		= white
PAGE_ORIENTATION	= landscape
PAPER_MEDIA		= a4
#-------- Basemap Annotation Parameters ------
ANNOT_MIN_ANGLE		= 20
ANNOT_MIN_SPACING	= 0
ANNOT_FONT_PRIMARY	= Helvetica
ANNOT_FONT_SIZE_PRIMARY	= 14p
ANNOT_OFFSET_PRIMARY	= 0.2c
ANNOT_FONT_SECONDARY	= Helvetica
ANNOT_FONT_SIZE_SECONDARY	= 16p
ANNOT_OFFSET_SECONDARY	= 0.2c
DEGREE_SYMBOL		= ring
HEADER_FONT		= Helvetica
HEADER_FONT_SIZE	= 36p
HEADER_OFFSET		= 0.5c
LABEL_FONT		= Helvetica
LABEL_FONT_SIZE		= 24p
LABEL_OFFSET		= 0.3c
OBLIQUE_ANNOTATION	= 1
PLOT_CLOCK_FORMAT	= hh:mm:ss
PLOT_DATE_FORMAT	= yyyy-mm-dd
PLOT_DEGREE_FORMAT	= ddd:mm:ss
Y_AXIS_TYPE		= hor_text
#-------- Basemap Layout Parameters ---------
BASEMAP_AXES		= WESN
BASEMAP_FRAME_RGB	= black
BASEMAP_TYPE		= fancy
FRAME_PEN		= 1.25p
FRAME_WIDTH		= 0.2c
GRID_CROSS_SIZE_PRIMARY	= 0c
GRID_PEN_PRIMARY	= 0.25p
GRID_CROSS_SIZE_SECONDARY	= 0c
GRID_PEN_SECONDARY	= 0.5p
MAP_SCALE_HEIGHT	= 0.2c
POLAR_CAP		= 85/90
TICK_LENGTH		= 0.2c
TICK_PEN		= 0.5p
X_AXIS_LENGTH		= 25c
Y_AXIS_LENGTH		= 15c
X_ORIGIN		= 2.5c
Y_ORIGIN		= 2.5c
UNIX_TIME		= FALSE
UNIX_TIME_POS		= BL/-2c/-2c
UNIX_TIME_FORMAT	= %Y %b %d %H:%M:%S
#-------- Color System Parameters -----------
COLOR_BACKGROUND	= black
COLOR_FOREGROUND	= white
COLOR_NAN		= 128
COLOR_IMAGE		= adobe
COLOR_MODEL		= rgb
HSV_MIN_SATURATION	= 1
HSV_MAX_SATURATION	= 0.1
HSV_MIN_VALUE		= 0.3
HSV_MAX_VALUE		= 1
#-------- PostScript Parameters -------------
CHAR_ENCODING		= ISOLatin1+
DOTS_PR_INCH		= 300
GLOBAL_X_SCALE		= 1
GLOBAL_Y_SCALE		= 1
N_COPIES		= 1
PS_COLOR		= rgb
PS_IMAGE_COMPRESS	= lzw
PS_IMAGE_FORMAT		= ascii
PS_LINE_CAP		= butt
PS_LINE_JOIN		= miter
PS_MITER_LIMIT		= 35
PS_VERBOSE		= FALSE
TRANSPARENCY		= 0
#-------- I/O Format Parameters -------------
D_FORMAT		= %.12lg
FIELD_DELIMITER		= tab
GRIDFILE_FORMAT		= nf
GRIDFILE_SHORTHAND	= FALSE
INPUT_CLOCK_FORMAT	= hh:mm:ss
INPUT_DATE_FORMAT	= yyyy-mm-dd
IO_HEADER		= FALSE
N_HEADER_RECS		= 1
NAN_RECORDS		= pass
OUTPUT_CLOCK_FORMAT	= hh:mm:ss
OUTPUT_DATE_FORMAT	= yyyy-mm-dd
OUTPUT_DEGREE_FORMAT	= D
XY_TOGGLE		= FALSE
#-------- Projection Parameters -------------
ELLIPSOID		= WGS-84
MAP_SCALE_FACTOR	= default
MEASURE_UNIT		= cm
#-------- Calendar/Time Parameters ----------
TIME_FORMAT_PRIMARY	= full
TIME_FORMAT_SECONDARY	= full
TIME_EPOCH		= 2000-01-01T12:00:00
TIME_IS_INTERVAL	= OFF
TIME_INTERVAL_FRACTION	= 0.5
TIME_LANGUAGE		= us
TIME_UNIT		= d
TIME_WEEK_START		= Sunday
Y2K_OFFSET_YEAR		= 1950
#-------- Miscellaneous Parameters ----------
HISTORY			= TRUE
INTERPOLANT		= akima
LINE_STEP		= 0.025c
VECTOR_SHAPE		= 0
VERBOSE			= FALSE



プロット記号( man の psxy より抜粋)

注意:Sq は省略してあります.

The uppercase symbols A, C, D, G, H, I, N, S, T are normalized to have the same area as a circle with diameter size, while the size of the corresponding lowercase symbols refers to the diameter of a circumscribed circle. Choose between these symbol codes:

−S- x-dash (-). size is the length of a short horizontal line segment.
−S+ plus (+). size is diameter of circumscribing circle.
−Sa star. size is diameter of circumscribing circle.
−Sb Vertical bar extending from base to y. size is bar width. Append u if size is in x-units [Default is plot-distance units]. By default, base = ymin. Append bbase to change this value.
−SB Horizontal bar extending from base to x. size is bar width. Append u if size is in y-units [Default is plot-distance units]. By default, base = xmin. Append bbase to change this value.
−Sc circle. size is diameter of circle.
−Sd diamond. size is diameter of circumscribing circle.
−Se ellipse. Direction (in degrees counter-clockwise from horizontal), major_axis, and minor_axis must be found in columns 3, 4, and 5.
−SE Same as −Se, except azimuth (in degrees east of north) should be given instead of direction. The azimuth will be mapped into an angle based on the chosen map projection (−Se leaves the directions unchanged.) Furthermore, the axes lengths must be given in km instead of plot-distance units. An exception occurs for a linear projection in which we assume the ellipse axes are given in the same units as −R.
−Sf front. −Sfgap/size[dir][type][:offset]. Supply distance gap between symbols and symbol size. If gap is negative, it is interpreted to mean the number of symbols along the front instead. Append dir to plot symbols on the left or right side of the front [Default is centered]. Append type to specify which symbol to plot: box, circle, fault, slip, or triangle. [Default is fault]. Slip means left-lateral or right-lateral strike-slip arrows (centered is not an option). Append :offset to offset the first symbol from the beginning of the front by that amount [Default is 0].
−Sg octagon. size is diameter of circumscribing circle.
−Sh hexagon. size is diameter of circumscribing circle.
−Si inverted triangle. size is diameter of circumscribing circle.
−Sj Rotated rectangle. Direction (in degrees counter-clockwise from horizontal), x-dimension, and y-dimension must be found in columns 3, 4, and 5.
−SJ Same as −Sj, except azimuth (in degrees east of north) should be given instead of direction. The azimuth will be mapped into an angle based on the chosen map projection (−Sj leaves the directions unchanged.) Furthermore, the dimensions must be given in km instead of plot-distance units. An exception occurs for a linear projection in which we assume the dimensions are given in the same units as −R.
−Sk kustom symbol. Append /size, and we will look for a definition file called .def in (1) the current directory or (2) in ~/.gmt or (3) in $GMT_SHAREDIR/custom. The symbol as defined in that file is of size 1.0 by default; the appended size will scale symbol accordingly. Users may add their own custom *.def files; see CUSTOM SYMBOLS below.
−Sl letter or text string (less than 64 characters). Give size, and append /string after the size. Note that the size is only approximate; no individual scaling is done for different characters. Remember to escape special characters like *. Optionally, you may append %font to select a particular font [Default is ANNOT_FONT_PRIMARY].
−Sm math angle arc, optionally with one or two arrow heads. The size is the radius of the arc. Start and stop directions (in degrees counter-clockwise from horizontal) for arc must be found in columns 3 and 4. Use −Smf to add arrow head at first angle, −Sml for arrow head at last angle, and −Smb for both [Default is no arrow heads].
−Sn pentagon. size is diameter of circumscribing circle.
−Sp point. No size needs to be specified (1 pixel is used).
−Sr rectangle. No size needs to be specified, but the x- and y-dimensions must be found in columns 3 and 4.
−Ss square. size is diameter of circumscribing circle.
−St triangle. size is diameter of circumscribing circle.
−Sv vector. Direction (in degrees counter-clockwise from horizontal) and length must be found in columns 3 and 4. size, if present, will be interpreted as arrowwidth/headlength/headwidth [Default unit is 0.075c/0.3c/0.25c (or 0.03i/0.12i/0.1i)]. By default arrow attributes remains invariant to the length of the arrow. To have the size of the vector scale down with decreasing size, append nnorm, where vectors shorter than norm will have their attributes scaled by length/norm. To center vector on balance point, use −Svb; to align point with the vector head, use −Svh; to align point with the vector tail, use −Svt [Default]. To give the head point’s coordinates instead of direction and length, use −Svs. Upper case B, H, T, S will draw a double-headed vector [Default is single head].
−SV Same as −Sv, except azimuth (in degrees east of north) should be given instead of direction. The azimuth will be mapped into an angle based on the chosen map projection (−Sv leaves the directions unchanged.)
−Sw pie wedge. Start and stop directions (in degrees counter-clockwise from horizontal) for pie slice must be found in columns 3 and 4.
−SW Same as −Sw, except azimuths (in degrees east of north) should be given instead of the two directions. The azimuths will be mapped into angles based on the chosen map projection (−Sw leaves the directions unchanged.)
−Sx cross (x). size is diameter of circumscribing circle.
−Sy y-dash (|). size is the length of a short vertical line segment.



inserted by FC2 system