[daip] FITS images and BITPIX
Bill Cotton
bcotton at nrao.edu
Sun Oct 1 16:12:29 EDT 2006
Lorant,
The sign on BITPIX is very important, +32 means the pixel values
are 32 bit scaled integers; -32 means they are IEEE floating point,
possibly scaled values. FITS2jpeg is based on cfitsio so should
handle any legitimate FITS image.
-Bill
Lorant Sjouwerman writes:
> This message is in MIME format. The first part should be readable text,
> while the remaining parts are likely unreadable without MIME-aware tools.
>
> --8323328-698942049-1159557936=:12162
> Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed
> Content-Transfer-Encoding: 8BIT
>
> Eric, Bill,
>
> I write out FITS images using FITAB. I want to make thumbnails
> in gif or jpg (eg using "FITS2jpeg") - something that shows up
> standard in a web browser.
>
> I tried "convert" but it blanks all pixels. It turns out that
> the image FITS header has "BITPIX -32", ie negative 32. This
> seems to be the upsetting statement, as when I edit it to 32,
> "convert" does a better job (I see the image)
>
> I have two main questions :
>
> 1) Can I set BITPIX to be positive before writing out
>
> 2) Does "FITS2jpeg" handle this better than "convert"
> (Bill's package doesn't seem to be installed at the AOC)
>
> I have hundreds of images so doing it by hand is out of the
> question. Also I plan to do this using "system" in AIPS and
> thus like to avoid fooling around with "sed -e s/.." etc
>
> Thanks a bunch
>
>
> Regards,
>
> Loránt Sjouwerman - Scientific Services - lsjouwerman at nrao.edu
> --------------------------------------------------------------
> c/o NRAO Array Operations Center Phone: +1-505-835-7332
> P.O. Box 0 (1003 Lopezville Rd) Switch: +1-505-835-7000
> Socorro NM 87801 Fax: +1-505-835-7027
> --8323328-698942049-1159557936=:12162--
More information about the Daip
mailing list