Graphics Postprocessing Programs


 
Ghostscript and related scripts
Version 5.0
Ghostscript is used to view postscript files on a monitor.  To use it, type:
        gs <filename>
A window will appear with the document in it.  Advance to the next page in the document by pressing Enter from the
original terminal window.  To leave Ghostscript, type quit from the original terminal window.

Conversion programs are also available to convert to and from the postscript format.  Some of the available conversions are:
   Program     Coverts to/from
   -------------------------------------------------
   pdf2ps      Acrobat PDF to Postscript
   ps2pdf      Postscript to Acrobat PDF
   ps2ascii    Postscript to ASCII
   ps2epsi     Postscript to Encapsolated Postscript
Man pages are available for these programs.
 
 
Gifmerge
 
Gifmerge is a handy program for combining individual gifs into an animated sequence.  Options available for the sequence include the time delay between images and the number of loops to make.  The usage for gifmerge is:

gifmerge [-<r>,<g>,<b>] [-<delay>] [-l<loops>] [-d<disp>] *.gif > anim.gif

   -<r>,<g>,<b>   set transparency, ie -192,192,192, default: no transparency
   -notransp      set transparency off (after you used -r,g,b before)
   -<delay>       set delay of between images in 1/100th secs, ie -100
                  default 50 (0.5secs)
   -l<loops>      set loop counter, ie -l0 (forever) or -l1000,
                     default is no loops  (Note: l=Lower Case L)
   -d<disposal>   set disposal 0 = no action, 1 = no dispose,
                               2 = restore background (default)
                               3 = restore previous
   -pos<x>,<y>    set offset position for image
   -nopos         reset offset position (default)

The above would combine all gif files in the directory into the file anim.gif given the options specified.  Much more detailed information can be found at www.iis.ee.ethz.ch/~kiwi/GIFMerge/.
 
 
Making MPEG movies -- Vis5D
Version 6/20/2000
Some information on how to create MPEG movies on campus. The original page was prepared by Ms. Li Wang.
 
 
Ncgm2gif & ncgm2gif
 
This is a script that converts NCAR Graphics gmeta files into gif images.  To use it, type:
        ncgm2gif [options] <gmeta filename>
Options are specified as follows:
    -i             Prompt before overwriting a file
    -loop N        Set up the animation to loop N times (0 for continuous)
    -delay N       Delay time between frames
    -res {w}x{h}   Resolution of the resulting gif image

The original version of this program converts each individual image in the gmeta file into separate files.  These are then combined into one animated gif and the separate files deleted.  Some users in the department prefer to have the individual files left behind and modified the script to allow this to happen.  This modified version of the program is run by typing Ncgm2gif instead of ncgm2gif.
Typical values for image size are: -res 400x400
 
 
SDSC Image Tools
Version 3.0.0
This is a tool pack of image utility programs by the San Diego Super Computing Center.  They all run from the command line and are useful for modifying images from within the Unix environment.  Because they are command line driven, they are especially useful in scripting these changes.  Most of the programs have man pages associated with them for more information.  Programs in the package include:
  imadjust     imcopy       imformats    immono       imscale
  imcat        imdissolve   imgray       impaste      imshear
  imcltroll    imfile       imhist       imprint      imsplit
  imcomp       imfill       imkey        imroll       imstoryboard
  imconv       imflip       imlighten    imrotate
 
 
xv
Version 3.1a
xv is an image viewing and manipulating program.  It is useful for converting between graphics formats, cropping, rotating, and applying blur or sharpen filters.  Most of the functions are self explanitory from the buttons on the xv menu.  To run xv, type "xv <Image File> &" at the command line and an X window will appear of a default image or else the image name given on the command line.  Right click on the image to get to the menus.
 

Return to the General Information and Libraries

Back to the Atmospheric Science Program Homepage