Skip to content

wishlist: optionally read gzipped or bzip2ed files #7

@broukema

Description

@broukema

FITS files are often highly compressible. With astropy, it's possible to read a gzipped or bzip2ed file with

import astropy.io.fits as fits;  tt = fits.open('file.fits.bz2')

instead of

tt = fitsio.FITS('data/pixweight-dr10-128-new.fits'

It would be good to make this an option in cosmodesi mpytools, without making it obligatory (astropy is a big package so making it obligatory would unnecessarily force the user to install, identify and trace more packages).

I had a quick browse at the code here and tried a quick hack, but it looks like implementing this would require more than changing just one or two lines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions