Units
GMT uses two unit groups: dimension units (plot units) and distance units (Earth distances).
Dimension Units (Plot Units)
Use these for map widths, offsets, symbol sizes, pen widths, etc.
Code |
Unit |
Notes |
|---|---|---|
|
Centimeter |
Default for most dimensions |
|
Inch |
1 inch = 2.54 cm |
|
Point |
1 point = 1/72 inch |
Defaults: If no unit is given, GMT uses PROJ_LENGTH_UNIT (default is c).
Fonts and pen thicknesses default to p.
Distance Units
GMT supports various distance units for geographic calculations.
Code |
Unit |
Notes |
|---|---|---|
|
Degree |
Arc degree |
|
Minute of arc |
1/60 degree |
|
Second of arc |
1/3600 degree |
|
Meter |
Default distance unit |
|
Kilometer |
1000 meters |
|
Foot |
0.3048 meters |
|
US Survey Foot |
1200/3937 meters |
|
Statute Mile |
1.60934 km |
|
Nautical Mile |
1.852 km |