File: psimage.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 (132 lines) | stat: -rw-r--r-- 5,468 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
<HTML>
<HEAD>
<TITLE>psimage</TITLE>
</HEAD>
<BODY>
<H1>psimage</H1>
<HR>
<PRE>
<!-- Manpage converted by man2html 3.0.1 -->
       psimage - To plot SUN rasterfiles on maps


</PRE>
<H2>SYNOPSIS</H2><PRE>
       <B>psimage</B>  <I>rasterfile</I>  [  <B>-W</B><I>xlength[/ylength]</I>  |  <B>-E</B><I>dpi</I>  <B>]</B> <B>[</B>
       <B>-C</B><I>xpos/ypos</I> <B>]</B> <B>[</B> <B>-F</B><I>pen</I> <B>]</B> <B>[</B> <B>-G[f|b]</B><I>r/g/b</I> <B>]</B> <B>[</B> <B>-I</B> <B>]</B> <B>[</B> <B>-K</B>  <B>]</B>  <B>[</B>
       <B>-M</B>  <B>]</B> <B>[</B> <B>-N</B><I>nxrep/nyrep</I><B>]</B> <B>[</B> <B>-O</B> <B>]</B> <B>[</B> <B>-P</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>-X</B><I>x-shift</I> <B>]</B> <B>[</B> <B>-Y</B><I>y-shift</I> <B>]</B> <B>[</B> <B>-c</B><I>copies</I> <B>]</B>


</PRE>
<H2>DESCRIPTION</H2><PRE>
       <B>psimage</B> reads a 1, 8, 24, or  32-bit  Sun  rasterfile  and
       plots  it  on a map.  Image can be scaled arbitrarily, and
       1-bit images can be (1) inverted, i.e., black pixels  (on)
       becomes  white  (off) and vice versa, or (2) colorized, by
       assigning different foreground and background colors,  and
       (3)  made  transparent where one of back- or foreground is
       painted only. As an option, the user may choose to convert
       colorimages  to  grayscale using TV's YIQ-transformation.'
       The user may also choose to  replicate  the  image  which,
       when preceeded by appropriate clip paths, may allow larger
       custom-designed fill patterns to be implemented  (the  <B>-Gp</B>
       mechanism  offered  in  most  GMT  programs  is limited to
       rasters smaller than 146 by 146).

       <I>rasterfile</I>
              This must be a Sun rasterfile. Depth can be  1,  8,
              24,  or  32-bit.  Old-style,  Standard, Run-length-
              encoded, and RGB  Sun  rasterfiles  are  supported.
              Other raster formats can be converted to Sun format
              via a  variety  of  public-domain  software  (e.g.,
              imconv, xv).

       <B>-E</B>     Sets  the  dpi of the image in dots pr inch, or use
              <B>-W</B>.

       <B>-W</B>     Sets the size of the image. If not given <I>ylength</I> is
              set to <I>xlength</I> * (ny/nx).  Alternatively, use <B>-E</B>.



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

       <B>-C</B>     Sets position of lower left corner of image  [0/0].

       <B>-F</B>     Draws a rectangular frame around the image with the
              given pen [no frame].

       <B>-Gb</B>    Sets background color  (replace  white  pixel)  for
              1-bit image templates.  Use - for transparency (and
              set <B>-Gf</B> to the desired color).

       <B>-Gf</B>    Sets foreground color  (replace  black  pixel)  for

       <B>-I</B>     Invert image before plotting (1-bit  images  only).
              This  is what is done when you use <B>-GP</B> in other <A HREF="GMT.html">GMT</A>
              programs.

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

       <B>-M</B>     Convert  color image to monochrome grayshades using
              the (television) YIQ-transformation.

       <B>-N</B>     Replicate the image <I>nxrep</I>  in  x  and  <I>nyrep</I>  in  y
              [Default is 1/1].

       <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>-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"].

       <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>-c</B>     Specifies the number of plot copies. [Default is 1]


</PRE>
<H2>EXAMPLES</H2><PRE>
       To  plot  the  image  contained  in  the  8-bit rasterfile
       scanned_face.ras, scaling it to 8 by 10 cm, try

       psimage scanned_face.ras <B>-W</B>8<B>c</B>/10<B>c</B> &gt; image.ps

       To replicate the image template 1_bit.ras over a  5  by  5
       inch  area, colorize it, and setting each piece to be 1 by
       1 cm, try

       psimage 1_bit.ras <B>-Gb</B>200/150/100 <B>-Gf</B>100/50/30 <B>-N</B>5<B>i</B>/5<B>i</B> <B>-W</B>1<B>c</B>
       &gt; image.ps


</PRE>
<H2>SEE ALSO</H2><PRE>
       <I>gmt</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">