next up previous contents index
Next: 1.6 GMT Common Command Up: 1. SESSION ONE Previous: 1.4 GMT Defaults   Contents   Index

1.5 GMT Units

GMT programs can accept dimensional quantities in cm (c), inch (i), meter (m), or point (p). There are two ways to ensure that GMT understands which unit you intend to use.

  1. Append the desired unit abbreviation to the dimension you supply. This way is explicit and clearly communicates what you intend, e.g., -X4c means 4 cm.

  2. Set the parameter MEASURE_UNIT to the desired unit. Then, all dimensions without explicit unit will be interpreted accordingly, i.e., -X5i will always means 5 inches while -X5 depends on the chosen MEASURE_UNIT.

The latter method is less secure as other users may have a different unit set and your script may not work as intended for them. We therefore recommend you always supply the desired unit explicitly.


next up previous contents index
Next: 1.6 GMT Common Command Up: 1. SESSION ONE Previous: 1.4 GMT Defaults   Contents   Index
Paul Wessel 2006-02-28