> I am using the NCAR Graphics version 4.2.2 for plotting the MM5 outputs.
Could s
> ome one please let me know how to convert the NCAR graphics image '.cgm' file
in
> to JPG and GIF format? At present I am able to convert the image only into
the p
> ostscript format by using the command
> ctrans -d ps.color graphics.cgm > graphics.ps
> I would like to find out a method to convert the .cgm file into JPG and GIF
form
> ats. Thank you.
Ideally ctrans could be used to directly produce a .gif raster
(bitmap) file from the ncar cgm metafile, but that is not an available
option so a generally used procedure is to first use ctrans to create
a raster file in an available format (such as sun, sgi or xwd format)
and then convert that to the .gif raster format. This requires having
a program which can do such conversion. Below is an example of
creating a raster plot of specified size which uses the San Diego
Supercomputer Center's imcopy for this conversion
# note that the ctrans default size is 512x512
xsize="600"
ysize="600"
resolution="${xsize}x${xsize}"
/var/ncar4.0.1/bin/ctrans -res $resolution -d sgi -outfile plot.sgi gmeta
/usr/local/bin/imcopy -xsize $xsize -ysize $ysize plot.sgi plot.gif
-- MAIL| Dr. John W. (Jack) Glendening Meteorologist SENT| Naval Research Lab - Monterey glendening@nrlmry.navy.mil FROM| 7 Grace Hopper Ave Monterey, CA 93943 831-656-4725
This archive was generated by hypermail 2b29 : Wed Jan 23 2002 - 14:45:31 MST