[AstroPy] Access to compressed data in FITS file.

Éric Depagne eric at depagne.org
Mon May 23 10:13:31 EDT 2011


Hi Taro, 

> The PyFITS manual discusses how to deal with compressed data:
> 
> http://stsdas.stsci.edu/download/wikidocs/The_PyFITS_Handbook.pdf
> 
> Is this not enough?

I had already looked at it (sect 7.4.1 and 7.4.2  deals with compressed data), 
but what puzzles me is that the ouput of their series of command has nothing 
to do with mine.

For instance, my f.info() give me the following :
In [20]: f.info()
Filename: file.fitz
No.    Name         Type      Cards   Dimensions   Format
0    PRIMARY     PrimaryHDU      68  (0,)          uint8
1                BinTableHDU     36  2032R x 3C    ['1PB(1291)', '1D', '1D']
2                BinTableHDU     36  2032R x 3C    ['1PB(1273)', '1D', '1D']
3                BinTableHDU     36  2032R x 3C    [1PB(1264), 1D, 1D]
4                BinTableHDU     36  2032R x 3C    [1PB(1271), 1D, 1D]


And their f[1].data output is different from mine in the sense that they do not 
have a FITS_rec (at least that's my understanding) but directly the 
numpy.array

So I wonder what my file is !

Éric.
-- 
Un clavier azerty en vaut deux
----------------------------------------------------------
Éric Depagne                            eric at depagne.org



More information about the AstroPy mailing list