GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PSIMAGE (1)

NAME

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

CONTENTS

Synopsis
Description
Options
     Specifying Pens
     Specifying Color
Examples

SYNOPSIS

psimage imagefile [ -W[-]width[/height] | -Edpi ] [ -Cxpos/ypos[/justify] ] [ -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 arbitrarily, and 1-bit raster 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 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 transparent. The user may also choose to replicate the image which, when preceded by appropriate clip paths, may allow larger custom-designed fill patterns to be implemented (the -Gp mechanism offered in most GMT programs 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 BoundingBox. 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., convert, 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 resolution 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 (television) YIQ-transformation.
-N Replicate the image nx times horizontally and ny times vertically. If ny is omitted, it will be identical to nx [Default is 1/1].
-O Selects Overlay plot mode [Default initializes a new plot system].
-P Selects Portrait plotting mode [Default is Landscape, see gmtdefaults 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 hexadecimal color code (#rrggbb, as used in HTML). See the gmtcolors 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 location, 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)
Search for    or go to Top of page |  Section 1 |  Main Index


GMT 4.5.14 PSIMAGE (1) 1 Nov 2015

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.