File: node20.html

package info (click to toggle)
gmt-doc 3.4-1.1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,756 kB
  • ctags: 1,800
  • sloc: makefile: 30
file content (249 lines) | stat: -rw-r--r-- 9,834 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<!--Converted with LaTeX2HTML 99.2beta8 (1.46)
original version by:  Nikos Drakos, CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>1.4 GMT Defaults</TITLE>
<META NAME="description" CONTENT="1.4 GMT Defaults">
<META NAME="keywords" CONTENT="tutorial">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="LaTeX2HTML v99.2beta8">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">

<LINK REL="STYLESHEET" HREF="tutorial.css">

<LINK REL="next" HREF="node21.html">
<LINK REL="previous" HREF="node14.html">
<LINK REL="up" HREF="node8.html">
<LINK REL="next" HREF="node21.html">
</HEAD>

<BODY  bgcolor="#ffffff">
<!--Navigation Panel-->
<A NAME="tex2html683"
  HREF="node21.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.gif"></A> 
<A NAME="tex2html677"
  HREF="node8.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.gif"></A> 
<A NAME="tex2html671"
  HREF="node19.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.gif"></A> 
<A NAME="tex2html679"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.gif"></A> 
<A NAME="tex2html681"
  HREF="node79.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.gif"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html684"
  HREF="node21.html">1.5 GMT Units</A>
<B> Up:</B> <A NAME="tex2html678"
  HREF="node8.html">1. SESSION ONE</A>
<B> Previous:</B> <A NAME="tex2html672"
  HREF="node19.html">1.3.4.1 Examples</A>
 &nbsp <B>  <A NAME="tex2html680"
  HREF="node1.html">Contents</A></B> 
 &nbsp <B>  <A NAME="tex2html682"
  HREF="node79.html">Index</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->

<H1><A NAME="SECTION00340000000000000000">
1.4 </A><A NAME="tex2html67"
  HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> Defaults
</H1>
<A NAME="227"></A>
<A NAME="228"></A>

<P>
Numerous minor options (more than 50) can only be changed by
modifying the <A NAME="tex2html79"
  HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> defaults settings.  These settings control
such aspects of <A NAME="tex2html80"
  HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> as font types and sizes, pen thickness used
for basemaps, linear interpolants used when interpolation is needed
and many more (Figures <A HREF="node20.html#fig:GMT_Defaults_1a">1.2</A>, <A HREF="node20.html#fig:GMT_Defaults_1b">1.3</A>,
and <A HREF="node20.html#fig:GMT_Defaults_1c">1.4</A> show the parameters that affect plots).
The <A NAME="tex2html81"
  HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> defaults reside in a file named
<U>.gmtdefaults</U>.  A user will typically have a ``master''
<U>.gmtdefaults</U> file in the home directory, and possibly
more specialized <U>.gmtdefaults</U> files in certain sub-
directories.  If no such file exist in the current directory,
<A NAME="tex2html82"
  HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> will attempt to open the user's master defaults file.  If
it is not present then the site-specific <A NAME="tex2html83"
  HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> defaults are used.
These come preset from the <A NAME="tex2html84"
  HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> developers but may be modified
prior to <A NAME="tex2html85"
  HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> installation.  One typical change at this level
is to select SI units rather than the default US/British units.
It is recommended not to modify the system <A NAME="tex2html86"
  HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> defaults
substantially since some applications may rely on the presence of
a standard set of default values.  Users may create a new
<U>.gmtdefaults</U> file with the current <A NAME="tex2html87"
  HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> preset values
using the <A NAME="tex2html88"
  HREF="../gmtdefaults.html"><I><B>gmtdefaults</B></I></A><A NAME="2101"></A> utility.

<P>

<P></P>
<DIV ALIGN="CENTER"><A NAME="fig:GMT_Defaults_1a"></A><A NAME="2110"></A>
<TABLE>
<CAPTION ALIGN="BOTTOM"><STRONG>Figure 1.2:</STRONG>
Some <A NAME="tex2html69"
  HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> parameters that affect plot appearance</CAPTION>
<TR><TD><IMG
 WIDTH="345" HEIGHT="264" BORDER="0"
 SRC="img11.gif"
 ALT="\begin{figure}\centering\epsfig{figure=eps/GMT_Defaults_1a.eps}\end{figure}"></TD></TR>
</TABLE>
</DIV><P></P>

<P>
There are at least two good reasons why the <A NAME="tex2html89"
  HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> default options
are placed in a separate parameter file:

<P>

<OL>
<LI>It would not be practical to allow for command-line syntax
covering so many options, many of which are rarely or never
changed (such as the ellipsoid used for map projections).

<P>
</LI>
<LI>It is convenient to keep separate <U>.gmtdefaults</U>
files for specific projects, so that one may achieve a special
effect simply by running <A NAME="tex2html90"
  HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> commands in a sub-directory whose
<U>.gmtdefaults</U> file has the desired settings.  For example,
when making final illustrations for a journal article one must often
standardize on font sizes and font types, etc.  Keeping all those
settings in a separate <U>.gmtdefaults</U> file simplifies this
process.  Likewise, <A NAME="tex2html91"
  HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> scripts that make slides often use a
different color scheme and font size than output intended for laser
printers.  Organizing these various scenarios into separate
<U>.gmtdefaults</U> files will minimize headaches associated
with micro-editing of illustrations.

<P>

<P></P>
<DIV ALIGN="CENTER"><A NAME="fig:GMT_Defaults_1b"></A><A NAME="2131"></A>
<TABLE>
<CAPTION ALIGN="BOTTOM"><STRONG>Figure 1.3:</STRONG>
More <A NAME="tex2html72"
  HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> parameters that affect plot appearance</CAPTION>
<TR><TD><IMG
 WIDTH="398" HEIGHT="231" BORDER="0"
 SRC="img12.gif"
 ALT="\begin{figure}\centering\epsfig{figure=eps/GMT_Defaults_1b.eps}\end{figure}"></TD></TR>
</TABLE>
</DIV><P></P>

<P>
</LI>
</OL>

<P>
As mentioned, <A NAME="tex2html92"
  HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> programs will attempt to open a file named
<U>.gmtdefaults</U>.  At times it may be desirable to override
that default.  As an alternative, we may supply another filename using
the <I>+filename</I> syntax, i.e., on the same command line as the
<A NAME="tex2html93"
  HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> command we append the name of the alternate <U>.gmtdefaults</U>
file with the plus sign as a prefix.
A perhaps less tedious method is to start each script with making a
copy of the current <U>.gmtdefaults</U>, then copy the desired
<U>.gmtdefaults</U> file to the current directory, and finally
undo the changes at the end of the script.  To change some of the
<A NAME="tex2html94"
  HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> parameters on the fly inside a script the gmtset utility can
be used.  E.g., to change the annotation font to 12 point Times-Bold
we run 
<BR>
<P>
<TT>gmtset ANOT_FONT Times-Bold ANOT_FONT_SIZE 12</TT> 
<BR>
<P>
In addition to these 29 parameters
that directly affect the plot there are numerous parameters than
modify units, scales, etc.  For a complete listing, see the
<A NAME="tex2html95"
  HREF="../gmtdefaults.html"><I><B>gmtdefaults</B></I></A><A NAME="2152"></A> man pages.

<P>

<P></P>
<DIV ALIGN="CENTER"><A NAME="fig:GMT_Defaults_1c"></A><A NAME="2161"></A>
<TABLE>
<CAPTION ALIGN="BOTTOM"><STRONG>Figure 1.4:</STRONG>
Even more <A NAME="tex2html75"
  HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> parameters that affect plot appearance</CAPTION>
<TR><TD><IMG
 WIDTH="386" HEIGHT="370" BORDER="0"
 SRC="img13.gif"
 ALT="\begin{figure}\centering\epsfig{figure=eps/GMT_Defaults_1c.eps}\end{figure}"></TD></TR>
</TABLE>
</DIV><P></P>

<P>
At the end of the script one can then reset the specific parameters
back to what they originally were.  We suggest that you go through
all the available parameters at least once so that you know what is
available to change via one of the proposed mechanisms.
<A NAME="256"></A>
<A NAME="257"></A>

<P>
<HR>
<!--Navigation Panel-->
<A NAME="tex2html683"
  HREF="node21.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.gif"></A> 
<A NAME="tex2html677"
  HREF="node8.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.gif"></A> 
<A NAME="tex2html671"
  HREF="node19.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.gif"></A> 
<A NAME="tex2html679"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.gif"></A> 
<A NAME="tex2html681"
  HREF="node79.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.gif"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html684"
  HREF="node21.html">1.5 GMT Units</A>
<B> Up:</B> <A NAME="tex2html678"
  HREF="node8.html">1. SESSION ONE</A>
<B> Previous:</B> <A NAME="tex2html672"
  HREF="node19.html">1.3.4.1 Examples</A>
 &nbsp <B>  <A NAME="tex2html680"
  HREF="node1.html">Contents</A></B> 
 &nbsp <B>  <A NAME="tex2html682"
  HREF="node79.html">Index</A></B> 
<!--End of Navigation Panel-->
<ADDRESS>
Paul Wessel
2001-04-18
</ADDRESS>
</BODY>
</HTML>