[fitsbits] Re: conversion fits -> gif

Michal Szymanski msz at bulge.astrouw.edu.pl
Thu Nov 21 02:28:02 EST 2002


>> does anyone know of a simple standalone utility to convert from fits -> gif
>> ?
>
> I have a simple C program that reads a FTS file, computes IRAF-like zscale
> parameters and pipes the "raw" data to the only "external" used, namely
> "raw2gif" from giflib-3.0 suite of apps.

As there seems to be more people interested, here is the pointer:

ftp://ftp.astrouw.edu.pl/pub/msz/fts2gif.tar.gz

Contents of fts2gif.tar.gz:

  README      - simple description
  fts2gif.c   - source of my program
  raw2gif     - Redhat 6.x/7.x binary from giflib-3.0 package
  raw2gif.sol - Solaris binary (rename it to "raw2gif")

"fts2gif" does not require any library (other than libc and libm) to
compile. It is probably its only advantage :) It does require, however,
"raw2gif" app from giflib-3.0 library. Included are binaries for
Linux and Solaris. Other than that, it is really a *simple* app.
And remember, it reads the whole image into a double array for
IRAF's zscale analysis, so it can use a lot of memory for big images.

Standard disclaimer applies :)

regards, Michal.

-- 
  Michal Szymanski (msz at astrouw.edu.pl)
  Warsaw University Observatory, Warszawa, POLAND



More information about the fitsbits mailing list