psimage man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

PSIMAGE(1)		     Generic Mapping Tools		    PSIMAGE(1)

NAME
       psimage - To plot images (EPS files or Sun raster files) on maps

SYNOPSIS
       psimage	imagefile  [ -W[-]width[/height] | -Edpi ] [ -Cxpos/ypos[/jus‐
       tify] ] [ -Fpen ] [ -G[b|f|t]color ] [ -I ] [ -K ] [ -M ] [ -Nnx[/ny] ]
       [  -O  ]	 [  -P	]  [  -U[just/dx/dy/][c|label] ] [ -V ] [ -X[a|c|r][x-
       shift[u]] ] [ -Y[a|c|r][y-shift[u]] ] [ -ccopies ]

DESCRIPTION
       psimage reads an Encapsulated PostScript file or a 1, 8, 24, or	32-bit
       Sun  raster  file and plots it on a map.	 The image can be scaled arbi‐
       trarily, and 1-bit raster images can be (1) inverted, i.e., black  pix‐
       els  (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  colored  raster  images  to
       grayscale  using TV's YIQ-transformation.  In case of 8-, 24- or 32-bit
       Sun raster files, the user can select which color to be made  transpar‐
       ent.   The user may also choose to replicate the image which, when pre‐
       ceded by appropriate clip paths, may allow larger custom-designed  fill
       patterns	 to be implemented (the -Gp mechanism offered in most GMT pro‐
       grams is limited to rasters smaller than 146 by 146).

       imagefile
	      This must be an Encapsulated PostScript  (EPS)  file  or	a  Sun
	      raster  file.  An EPS file must contain an appropriate Bounding‐
	      Box.  A raster file can have a depth of 1, 8, 24,	 or  32	 bits.
	      Old-style,  Standard,  Run-length-encoded,  and  RGB  Sun raster
	      files are supported.  Other raster formats can be	 converted  to
	      Sun  format  via a variety of public-domain software (e.g., con‐
	      vert, xv).

       -E     Sets the dpi of the image in dots per inch, or use -W.

       -W     Sets the width (and height) of the  image	 in  plot  coordinates
	      (inches, cm, etc.).  If height is not given, the original aspect
	      ratio of the image is maintained.	 If width is negative  we  use
	      the  absolute  value and interpolate image to the device resolu‐
	      tion using the PostScript image  operator.   Alternatively,  use
	      -E.

OPTIONS
       No space between the option flag and the associated arguments.

       -C     Sets  position  of  the  image  in plot coordinates (inches, cm,
	      etc.) from the current origin of the  plot.   By	default,  this
	      defines  the position of the lower left corner of the image, but
	      this can be changed by specifying justification [0/0/BL].

       -F     Draws a rectangular frame around the image with  the  given  pen
	      [no frame].  (See SPECIFYING PENS below).

       -K     More  PostScript code will be appended later [Default terminates
	      the plot system].

       -M     Convert color image to monochrome grayshades using the  (televi‐
	      sion) YIQ-transformation.

       -N     Replicate	 the  image  nx times horizontally and ny times verti‐
	      cally.  If ny is omitted, it will be identical to nx [Default is
	      1/1].

       -O     Selects  Overlay	plot mode [Default initializes a new plot sys‐
	      tem].

       -P     Selects Portrait plotting mode [Default is Landscape, see gmtde‐
	      faults to change this].

       -U     Draw Unix System time stamp on plot.  By adding just/dx/dy/, the
	      user may specify the justification of the stamp  and  where  the
	      stamp  should  fall on the page relative to lower left corner of
	      the plot.	 For example, BL/0/0 will align the lower left	corner
	      of  the  time  stamp  with  the  lower  left corner of the plot.
	      Optionally, append a label, or c (which will  plot  the  command
	      string.).	  The  GMT  parameters	UNIX_TIME,  UNIX_TIME_POS, and
	      UNIX_TIME_FORMAT can affect the appearance; see the  gmtdefaults
	      man page for details.  The time string will be in the locale set
	      by the environment variable TZ (generally local time).

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

       -X -Y  Shift  plot origin relative to the current origin by (x-shift,y-
	      shift) and optionally append the length unit (c, i, m, p).   You
	      can  prepend a to shift the origin back to the original position
	      after plotting, or prepend  r [Default]  to  reset  the  current
	      origin  to the new location.  If -O is used then the default (x-
	      shift,y-shift) is (0,0), otherwise it is (r1i, r1i)  or  (r2.5c,
	      r2.5c).  Alternatively, give c to align the center coordinate (x
	      or y) of the plot with the center of the page based  on  current
	      page size.

       -c     Specifies the number of plot copies. [Default is 1].

       These  options  are  for	 1-bit	Sun  raster images only.  They have no
       effect when plotting other images or PostScript files.

       -Gb    Sets background color (replace white  pixel)  of	1-bit  images.
	      Use - for transparency (and set -Gf to the desired color).  (See
	      SPECIFYING COLOR below).

       -Gf    Sets foreground color (replace black  pixel)  of	1-bit  images.
	      Use - for transparency (and set -Gb to the desired color).  (See
	      SPECIFYING COLOR below).

       -I     Invert 1-bit image before plotting. This is what	is  done  when
	      you use -GP in other GMT programs.

       These options are for 8-, 24-, and 32-bit Sun raster images only.  They
       have no effect when plotting 1-bit images or PostScript files.

       -Gt    Assigns the color that is to be made  transparent.   Sun	Raster
	      files  do not support transparency, so indicate here which color
	      to be made transparent.  (See SPECIFYING COLOR below).

   SPECIFYING PENS
       pen    The attributes of lines and symbol outlines as defined by pen is
	      a	 comma	delimetered  list of width, color and texture, each of
	      which is optional.  width can be indicated as a measure (points,
	      centimeters, inches) or as faint, thin[ner|nest], thick[er|est],
	      fat[ter|test], or obese.	color specifies a gray shade or	 color
	      (see  SPECIFYING	COLOR  below).	 texture  is  a combination of
	      dashes `-' and dots `.'.

   SPECIFYING COLOR
       color  The color of lines, areas and patterns can  be  specified	 by  a
	      valid  color  name;  by  a gray shade (in the range 0-255); by a
	      decimal color code (r/g/b, each in range	0-255;	h-s-v,	ranges
	      0-360,  0-1,  0-1; or c/m/y/k, each in range 0-1); or by a hexa‐
	      decimal color code (#rrggbb, as used in HTML).  See the  gmtcol‐
	      ors manpage for more information and a full list of color names.

EXAMPLES
       To  plot the image contained in the 8-bit raster file scanned_face.ras,
       scaling it to 8 by 10 cm (thereby possibly changing the aspect  ratio),
       and making the white color transparent, use

       psimage scanned_face.ras -W 8c/10c -Gtwhite > image.ps

       To  include  an	Encapsulated  PostScript file tiger.eps with its upper
       right corner 2 inch to the right and 1 inch up from the	current	 loca‐
       tion,  and  have its width scaled to 3 inches, while keeping the aspect
       ratio, use

       psimage tiger.eps -C 2i/1i/TR -W 3i > image.ps

       To replicate the 1-bit raster image  template  1_bit.ras,  colorize  it
       (brown background and red foreground), and setting each of 5 by 5 tiles
       to be 1 cm wide, use

       psimage 1_bit.ras -Gb brown -Gf red -N 5 -W 1c > image.ps

SEE ALSO
       GMT(1), gmtcolors(5), psxy(1)

GMT 4.5.14			  1 Nov 2015			    PSIMAGE(1)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net