Re: reading images stored compressed in FITS files binary extensions [message #70389] |
Fri, 09 April 2010 06:26 |
Jeremy Bailin
Messages: 618 Registered: April 2008
|
Senior Member |
|
|
On Apr 8, 3:44 pm, wlandsman <wlands...@gmail.com> wrote:
> On Apr 8, 2:33 pm, Jeremy Bailin <astroco...@gmail.com> wrote:
>
>> Does anyone know what routine in the astronomy user's library (or any
>> other routine) can read in an image that's stored compressed in the
>> binary extension of a FITS file?
>
> This looks like a "pixel list" (PLIO) compressed file, which can be
> uncompressed with FPACK software
> ( http://heasarc.gsfc.nasa.gov/fitsio/fpack/).
>
> Once you have FPACK installed, you can read the file directly with
> readfits.prohttp://idlastro.gsfc.nasa.gov/ftp/pro/fits/readf its.pro)
> or mrdfits.pro. These procedures use a SPAWN with a bidirectional
> pipe to FPACK to stream the images into IDL variables.
>
> Cheers, --Wayne
Aha, works like a charm!
Thanks,
-Jeremy.
|
|
|
|