File: psxyz.html

package info (click to toggle)
gmt-doc 3.4-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 4,756 kB
  • ctags: 1,800
  • sloc: makefile: 30
file content (342 lines) | stat: -rw-r--r-- 17,274 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
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
<HTML>
<HEAD>
<TITLE>psxyz</TITLE>
</HEAD>
<BODY>
<H1>psxyz</H1>
<HR>
<PRE>
<!-- Manpage converted by man2html 3.0.1 -->
       psxyz - Plot lines, polygons, and symbols in 3-D


</PRE>
<H2>SYNOPSIS</H2><PRE>
       <B>psxyz</B>                  <I>files</I>                  <B>-J</B><I>parameters</I>
       <B>-R</B><I>west/east/south/north/zmin/zmax</I><B>[r]</B>  <B>[</B>  <B>-B</B><I>tickinfo</I>  <B>]</B>   <B>[</B>
       <B>-C</B><I>cptfile</I>  <B>]</B> <B>[</B> <B>-E</B><I>azimuth/elevation</I> <B>]</B> <B>[</B> <B>-G</B><I>fill</I> <B>]</B> <B>[</B> <B>-H[</B><I>nrec</I><B>]</B>
       <B>]</B> <B>[</B> <B>-K</B> <B>]</B> <B>[</B> <B>-L</B> <B>]</B> <B>[</B> <B>-M[</B><I>flag</I><B>]</B> <B>]</B> <B>[</B> <B>-N</B> <B>]</B>  <B>[</B>  <B>-O</B>  <B>]</B>  <B>[</B>  <B>-P</B>  <B>]</B>  <B>[</B>
       <B>-S[</B><I>symbol</I><B>][</B><I>size</I><B>]</B> <B>]</B> <B>[</B> <B>-U[</B><I>/dx/dy/</I><B>][</B><I>label</I><B>]</B> <B>]</B> <B>[</B> <B>-V</B> <B>]</B> <B>[</B> <B>-W[</B><I>pen</I><B>]</B>
       <B>]</B> <B>[</B> <B>-X</B><I>x-shift</I> <B>]</B> <B>[</B> <B>-Y</B><I>y-shift</I> <B>]</B>  <B>[</B>  <B>-Z</B><I>zlevel</I>  <B>]</B>  <B>[</B>  <B>-:</B>  <B>]</B>  <B>[</B>
       <B>-c</B><I>copies</I> <B>]</B> <B>[</B> <B>-bi[s][</B><I>n</I><B>]</B> <B>]</B>


</PRE>
<H2>DESCRIPTION</H2><PRE>
       <B>psxyz</B>  reads  (x,y,z)  triplets  from  <I>files</I>  [or standard
       input] and generates <I>PostScript</I> code that will plot lines,
       polygons, or symbols at those locations in 3-D.  If a sym
       bol is selected and no symbol size given, then psxyz  will
       interpret  the  fourth  column of the input data as symbol
       size. Symbols whose size is &lt;= 0 are skipped. If  no  sym
       bols  are  specified  then  the symbol code (see <B>-S</B> below)
       must be present as last column in the input. Multiple seg
       ment files may be plotted using the <B>-M</B> option.  If no sym
       bols are selected, a line will  be  drawn.  To  explicitly
       close  polygons,  use <B>-L</B>. Select a shade with <B>-G</B>. If <B>-G</B> is
       set, <B>-W</B> will control whether the polygon outline is  drawn
       or  not. If a symbol is selected, <B>-G</B> and <B>-W</B> determines the
       fill color  and  outline/no  outline,  respectively.   The
       <I>PostScript</I> code is written to standard output.

       <I>files</I>  List one or more file-names. If no files are given,
              <B>psxyz</B> will read standard input.

       <B>-J</B>     Selects the map projection. Scale  is  UNIT/degree,
              1:xxxxx,  or  width  in UNIT (upper case modifier).
              UNIT is cm, inch,  or  m,  depending  on  the  MEA
              SURE_UNIT  setting in .<A HREF="gmtdefaults.html">gmtdefaults</A>, but this can be
              overridden on the command line by appending the  c,
              i, or m to the scale/width value.

              <B>CYLINDRICAL</B> <B>PROJECTIONS:</B>

              <B>-Jc</B><I>lon0/lat0/scale</I> (Cassini)
              <B>-Jj</B><I>lon0/scale</I> (Miller)
              <B>-Jm</B><I>scale</I>  (Mercator - Greenwich and Equator as ori
              gin)
              <B>-Jm</B><I>lon0/lat0/scale</I> (Mercator -  Give  meridian  and
              standard parallel)
              <B>-Joa</B><I>lon0/lat0/azimuth/scale</I>   (Oblique  Mercator  -
              point and azimuth)
              <B>-Job</B><I>lon0/lat0/lon1/lat1/scale</I> (Oblique  Mercator  -
              two points)
              <B>-Joc</B><I>lon0/lat0/lonp/latp/scale</I>  (Oblique  Mercator -
              point and pole)
              <B>-Jt</B><I>lon0/scale</I> (TM - Transverse Mercator, with Equa
              tor as y = 0)
              <B>-Jt</B><I>lon0/lat0/scale</I> (TM - Transverse  Mercator,  set
              origin)
              <B>-Ju</B><I>zone/scale</I> (UTM - Universal Transverse Mercator)
              <B>-Jy</B><I>lon0/lats/scale</I> (Basic Cylindrical Projection)

              <B>AZIMUTHAL</B> <B>PROJECTIONS:</B>

              <B>-Ja</B><I>lon0/lat0/scale</I> (Lambert).
              <B>-Je</B><I>lon0/lat0/scale</I> (Equidistant).
              <B>-Jf</B><I>lon0/lat0/horizon/scale</I> (Gnomonic).
              <B>-Jg</B><I>lon0/lat0/scale</I> (Orthographic).
              <B>-Js</B><I>lon0/lat0/</I>[<I>slat/</I>]<I>scale</I> (General Stereographic)

              <B>CONIC</B> <B>PROJECTIONS:</B>

              <B>-Jb</B><I>lon0/lat0/lat1/lat2/scale</I> (Albers)
              <B>-Jd</B><I>lon0/lat0/lat1/lat2/scale</I> (Equidistant)
              <B>-Jl</B><I>lon0/lat0/lat1/lat2/scale</I> (Lambert)

              <B>MISCELLANEOUS</B> <B>PROJECTIONS:</B>

              <B>-Jh</B><I>lon0/scale</I> (Hammer)
              <B>-Ji</B><I>lon0/scale</I> (Sinusoidal)
              <B>-Jk</B>[<B>f|s</B>]<I>lon0/scale</I> (Eckert IV (f) and VI (s))
              <B>-Jn</B><I>lon0/scale</I> (Robinson)
              <B>-Jr</B><I>lon0/scale</I> (Winkel Tripel)
              <B>-Jv</B><I>lon0/scale</I> (Van der Grinten)
              <B>-Jw</B><I>lon0/scale</I> (Mollweide)

              <B>NON-GEOGRAPHICAL</B> <B>PROJECTIONS:</B>

              <B>-Jp</B>[<B>a</B>]<I>scale</I>[<I>/origin</I>] (polar (theta,r)  coordinates,
              optional <B>a</B> for azimuths and offset theta [0])
              <B>-Jx</B><I>x-scale</I>[<B>l|p</B><I>pow</I>][<I>/y-scale</I>[<B>l|p</B><I>pow</I>]]  (Linear, log,
              and power scaling)
              More details can be found  in  the  <B><A HREF="psbasemap.html">psbasemap</A></B>  man
              pages.

       <B>-Jz</B>    Sets the vertical scaling (for 3-D maps). Same syn
              tax as <B>-Jx</B>.

       <B>-R</B>     <I>west,</I> <I>east,</I> <I>south,</I> and <I>north</I> specify the Region  of
              interest. To specify boundaries in degrees and min
              utes [and  seconds],  use  the  dd:mm[:ss]  format.
              Append  <B>r</B> if lower left and upper right map coordi
              nates are given instead of wesn.


</PRE>
<H2>OPTIONS</H2><PRE>
       No space between the option flag and the associated  argu
       ments.
              for details.

       <B>-C</B>     Give a color palette file. If -S is set, let symbol
              color  be  determined  by the t-value in the fourth
              column. Additional fields are shifted over  by  one
              column  (optional  size would be in 5th rather than
              4th field, etc.).  If -S is  not  set,  then  psxyz
              expects  a  multisegment polygon file (requires -M)
              where each segment header contains a -Z<I>val</I>  string.
              The  <I>val</I>  controls  the  polygon  color via the cpt
              file.

       <B>-E</B>     Sets  the   viewpoint's   azimuth   and   elevation
              [180/90].'

       <B>-G</B>     Select filling of polygons and symbols.  Append the
              shade (0-255),  color  (r/g/b),  or  <B>P</B>|<B>p</B><I>dpi</I>/<I>pattern</I>
              (polygons only) [Default is no fill].  Note when <B>-M</B>
              is chosen, <I>psxyz</I> will search for <B>-G</B> and <B>-W</B>  strings
              in  all  the  subheaders  and  let any found values
              over-ride the command line settings.

       <B>-H</B>     Input  file(s)  has  Header  record(s).  Number  of
              header records can be changed by editing your .gmt
              defaults file. If used, <B><A HREF="GMT.html">GMT</A></B>  default  is  1  header
              record.

       <B>-K</B>     More   <I>PostScript</I>   code  will  be  appended  later
              [Default terminates the plot system].

       <B>-L</B>     Force closed polygons: will connect  the  endpoints
              of the line-sement(s) and draw polygons.

       <B>-M</B>     Multiple  segment file. Segments are separated by a
              record whose first character is <I>flag</I>.  [Default  is
              '&gt;'].

       <B>-N</B>     Do  NOT  skip  symbols that fall outside map border
              [Default plots points inside border only].

       <B>-O</B>     Selects Overlay plot mode  [Default  initializes  a
              new plot system].

       <B>-P</B>     Selects  Portrait  plotting  mode  [<B><A HREF="GMT.html">GMT</A></B>  Default is
              Landscape, see gmtdefaults to change this].

       <B>-S</B>     Plot symbols. <I>size</I> is symbol size in the  unit  set
              in .gmtdefaults (unless <B>c</B>, <B>i</B>, <B>m</B>, or <B>p</B> is appended).
              The uppercase symbols <B>A,</B> <B>C,</B> <B>D,</B> <B>H,</B> <B>I,</B> <B>S,</B> <B>T</B> are  nor
              malized  to have the same area as a circle of given
              size, while the corresponding lowercase symbols are
              circumscribed by the circle.  Choose between:
              the input data. Cannot be used in conjunction  with
              <B>-b</B>.  Optionally, append <B>c</B>, <B>i</B>, <B>m</B>, <B>p</B> to indicate that
              the size information in the input data is in  units
              of   cm,   inch,  meter,  or  point,  respectively.
              [Default is MEASURE_UNIT].

       <B>-Sa</B>    st<B>a</B>r. <I>size</I> is diameter of circumscribing circle.

       <B>-Sb</B>    (<B>b</B>)ar extending from <I>base</I> to y. <I>size</I> is bar  width.
              Append  <B>u</B>  if  <I>size</I> is in x-units [Default is plot-
              distance units]. By default, <I>base</I> = 0. Append b<I>base</I>
              to change this value.

       <B>-Sc</B>    (<B>c</B>)ircle. <I>size</I> is diameter of circle.

       <B>-Sd</B>    (<B>d</B>)iamond.  <I>size</I> is diameter of circumscribing cir
              cle.

       <B>-Se</B>    <B>e</B>llipse.  Direction  (in  degrees  counterclockwise
              from  horizontal),  major_axis, and minor_axis must
              be found in columns 4, 5, and 6.

       <B>-SE</B>    Same as <B>-Se</B>, 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  (<B>-Se</B> leaves the directions
              unchanged.) Furthermore, the axes lengths  must  be
              given in km instead of plot-distance units.

       <B>-Sf</B>    <B>f</B>ront. <B>-Sf</B><I>gap/size</I>[<I>dir</I>][<I>type</I>][:<I>offset</I>]. Supply dis
              tance gap between symbols and symbol size.  If  <I>gap</I>
              is  negative,  it is interpreted to mean the number
              of symbols along the front instead. Append  <I>dir</I>  to
              plot symbols on the <B>l</B>eft or <B>r</B>ight side of the front
              [Default is centered]. Append <I>type</I> to specify which
              symbol to plot: <B>b</B>ox, <B>c</B>ircle, <B>f</B>ault, <B>s</B>lip, or <B>t</B>rian
              gle. [Default is fault].  Slip  means  left-lateral
              or  right-lateral  strike-slip  arrows (centered is
              not an option). Append :<I>offset</I> to offset the  first
              symbol  from  the  beginning  of  the front by that
              amount [0].

       <B>-Sh</B>    <B>h</B>exagon. <I>size</I> is diameter of circumscribing circle.

       <B>-Si</B>    <B>i</B>nverted triangle. <I>size</I> is diameter of circumscrib
              ing circle.

       <B>-Sl</B>    <B>l</B>etter or text string (less  than  64  characters).
              Give  size, and append /<I>string</I> 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,

       <B>-So</B>    c(<B>o</B>)lumn (3-D) extending from <I>base</I> to z. <I>size</I>  sets
              base  width  (Use  <I>xsize/ysize</I>  if  not  the same).
              Append <B>u</B> if <I>size</I> is in x-units  [Default  is  plot-
              distance units]. By default, <I>base</I> = 0. Append b<I>base</I>
              to change this value.

       <B>-Sp</B>    (<B>p</B>)oint. No size needs to be specified.

       <B>-Ss</B>    (<B>s</B>)quare. <I>size</I> is diameter of  circumscribing  cir
              cle.

       <B>-St</B>    (<B>t</B>)riangle. <I>size</I> is diameter of circumscribing cir
              cle.

       <B>-Su</B>    c(<B>u</B>)be (3-D). <I>size</I> sets length of all sides. Append
              <B>u</B>  if  <I>size</I> is in x-units [Default is plot-distance
              units].

       <B>-Sv</B>    (<B>v</B>)ector. Direction and length  must  be  found  in
              columns      4      and      5.      <I>size</I>     means
              <I>arrowwidth/headlength/headwidth</I>  in  [[Default   is
              0.075<B>c</B>/0.3<B>c</B>/0.25<B>c</B>   (or   0.03<B>i</B>/0.12<B>i</B>/0.1<B>i</B>)].    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  <B>n</B><I>norm</I>,
              where  vectors  shorter  than  <I>norm</I> will have their
              attributes scaled by length/<I>norm</I>.

       <B>-SV</B>    Same as <B>-Sv</B>, except azimuth should be given instead
              of  direction.  The  azimuth will be mapped into an
              angle based  on  the  chosen  map  projection  (<B>-Sv</B>
              leaves the directions unchanged.)

       <B>-Sw</B>    pie  <B>w</B>edge.  Start  and stop directions (in degrees
              counter-clockwise from horizontal)  for  pie  slice
              must be found in columns 4 and 5.

       <B>-Sx</B>    (<B>x</B>)cross.  <I>size</I>  is diameter of circumscribing cir
              cle.

       <B>-U</B>     Draw Unix System time stamp on plot. User may spec
              ify where the lower left corner of the stamp should
              fall on the page relative to lower left  corner  of
              plot.  Optionally, append a label, or <B>c</B> (which will
              plot  the  command  string.).  The  GMT  parameters
              UNIX_TIME  and UNIX_TIME_POS can affect the appear
              ance; see the <B><A HREF="gmtdefaults.html">gmtdefaults</A></B> man page for details.

       <B>-V</B>     Selects verbose  mode,  which  will  send  progress
              reports to stderr [Default runs "silently"].

              line of symbol with selected pen.

       <B>-X</B> <B>-Y</B>  Shift origin of plot by (<I>x-shift,y-shift</I>).  Prepend
              <B>a</B> for absolute coordinates; the  default  (<B>r</B>)  will
              reset plot origin.

       <B>-Z</B>     For  3-D  projections:  Sets  the  z-level  of  the
              basemap [0].

       <B>-:</B>     Toggles  between  (longitude,latitude)  and  (lati
              tude,longitude)  input/output.  [Default is (longi
              tude,latitude)].  Applies to geographic coordinates
              only.

       <B>-c</B>     Specifies the number of plot copies. [Default is 1]

       <B>-bi</B>    Selects binary input. Append <B>s</B> for single precision
              [Default  is  double].   Append <I>n</I> for the number of
              columns in the binary  file(s).   [Default  is  the
              required number of columns given the settings].


</PRE>
<H2>EXAMPLES</H2><PRE>
       To  plot  blue  columns (width = 1.25 cm) at the positions
       listed in the file heights.xyz on a 3-D projection of  the
       space  (0-10), (0-10), (0-100), with tickmarks every 2, 2,
       and 10, viewing it from the southeast at 30 degree  eleva
       tion, try:

       psxyz  heights.xyz  <B>-R</B>0/10/0/10/0/100  <B>-Jx</B>1.25<B>c</B>  <B>-Jz</B>0.125<B>c</B>
       <B>-So</B>1.25<B>c</B> <B>-G</B>0/0/255  <B>-B</B>2:XLABEL:/2:YLABEL:/10:ZLABEL::."3-D
       PLOT":15 <B>-E</B>135/30 <B>-Uc</B> <B>-W</B> <B>-P</B> &gt; heights.ps


</PRE>
<H2>BUGS</H2><PRE>
       No hidden line removal is employed for polygons and lines.
       Symbols, however, are first sorted according to their dis
       tance from the viewpoint so that nearby symbols will over
       print more distant ones should they project  to  the  same
       x,y position.
       <B>psxyz</B>  cannot  handle filling of polygons that contain the
       south or north pole. For such a polygon, make a  copy  and
       split  it  into  two  and make each explicitly contain the
       polar point. The two polygons will  combine  to  give  the
       desired effect when filled; to draw outline use the origi
       nal polygon.
       The <B>-N</B> option does not adjust the BoundingBox  information
       so you may have to post-process the PostScript outout with
       epstool or ps2epsi to obtain a correct BoundingBox.


</PRE>
<H2>SEE ALSO</H2><PRE>
       <I>gmt</I>(l), <I><A HREF="psbasemap.html">psbasemap</A></I>(l), <I><A HREF="psxy.html">psxy</A></I>(l)


</PRE>
<HR>
<ADDRESS>
Man(1) output converted with
<a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>
</ADDRESS>
</BODY>
</HTML>
<body bgcolor="#ffffff">