comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: reading images stored compressed in FITS files binary extensions
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: reading images stored compressed in FITS files binary extensions [message #70389] Fri, 09 April 2010 06:26
Jeremy Bailin is currently offline  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.
Re: reading images stored compressed in FITS files binary extensions [message #70396 is a reply to message #70389] Thu, 08 April 2010 12:44 Go to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
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.pro http://idlastro.gsfc.nasa.gov/ftp/pro/fits/readfits.pro )
or mrdfits.pro. These procedures use a SPAWN with a bidirectional
pipe to FPACK to stream the images into IDL variables.

Cheers, --Wayne
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: FILE_DELETE on Mac OS ignores write permissions
Next Topic: Extracting variables from ascii files that are not in columnar format

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 23:06:52 PDT 2025

Total time taken to generate the page: 1.44312 seconds