>
> Hi.
>
> Is there any one know how to generate gif file directly via NcarGraphics?
> Now I can only produce hdf file at first and then convert hdf file to gif
> file.
>
> Thanks and Merry Chrismas
>
> Peizhong
Dear Peizhong,
By now you have probably received at least one answer to this
question, but since it comes up quite often, I'd thought I'd post an
answer to the group.
First of all, it is not possible to generate a GIF file directly from
NCAR Graphics. You need to convert your NCGM graphic to a raster file
(like "sun") using ctrans:
ctrans -d sun gmeta > gmeta.sun
Then, you can convert the raster file to a GIF file using a public
domain package from the San Diego Supercomputing Center called "Image
Tools". Check with your system administrator to see if Image Tools
has been installed at your site. If it hasn't, then it can be obtained
via anonymous FTP to ftp.sdsc.edu.
Once Image Tools is installed, you can use the "imconv" application to
convert your file:
imconv -infile gmeta.sun -outfile gmeta.gif
"imconv" allows you to convert between many different formats, so it
can really come in handy if you lots of different kind of raster files
you have to deal with. Here are some of the formats supported
by ImageTools:
bmp Windows bitmap image file
cur Windows cursor image file
eps Encapsulated PostScript file
gif Graphics Image File
hdf Hierarchical Data File
ico Windows icon image file
icon Sun Icon and Cursor file
iff Sun TAAC Image File Format
jpeg JPEG Image File Format
miff ImageMagick's MIFF file format
mpnt Apple Macintosh MacPaint file
pbm PBM Portable Bit Map file
pcx ZSoft IBM PC Paintbrush file
pic PIXAR picture file
pict Apple Macintosh QuickDraw/PICT file
pix Alias image file
ps Adobe PostScript file
ras Sun Rasterfile
rgb SGI RGB image file
rla Wavefront raster image file
rle Utah Run length encoded image file
si SoftImage's image file format
synu SDSC Synu image file
tga Truevision Targa image file
tiff Tagged image file
viff Khoros Visualization image file
x AVS X image file
xbm X11 bitmap file
xpm X11 pixmap file
xwd X Window System window dump image file
This question is also in our FAQ which can be reached via the URL:
http://ngwww.ucar.edu/info/ng4.0.html
Happy New Year to everybody!
--NCAR Graphics Support
This archive was generated by hypermail 2b29 : Wed Jun 28 2000 - 09:45:34 MDT