N.B.: This command was deprecated long ago and is not included in GrADS version 1.9 or later.
The wi
(write image) command dumps an exact copy of the
contents of the GrADS graphics screen directly to an image file. This
feature is implemented by means of an interface to the ImageMagick library. The syntax is:
wi filename.fmt
where filename
can be any meaningful file name,
and fmt
is one of the ImageMagick supported
formats: gif, bmp, cgm, eps, fax, ico, jpeg, pcx, hdf, and
many more.
wi
does not work when running GrADS in batch mode (-b option). A similar
command that does work in batch mode is printim
.
wi
command, because wi
takes
a snapshot of the current state of this window. If another window is
partially covering your graphics window, your image file will contain
the combination of these 2 windows.
To try out wi
, display something on the graphics screen,
and then at the ga-> prompt enter:
wi test.gif
for writing a GIF filewi test.jpeg
for writing a JPEG filewi test.bmp
for writing a Windows BMP file
wi
has been reported to produce black and white GIF
output on VGA systems with more than 256 colors. The workaround is to
write a JPEG image, or to change your Windows display to 256 colors.