igrins / plp

IGRINS pipeline package v3
18 stars 16 forks source link

Allow for indata *.fits files to be compressed with gzip #13

Closed henryroe closed 10 months ago

henryroe commented 8 years ago

FITS files typically compress nicely & to save disk space I would like to be able to store my raw IGRINS data in gzip'd form. (I usually do a gzip --best *.fits in my raw data directories.)

When reading in a fits file, ideally igrins-plp should seamlessly read either a gzip'd or non-gzip'd file.

I've a simple fix to enable this behavior that I will submit as a pull request. Basically, I've written a simple wrapper to the fits routines and then replace a bunch of import statements throughout the rest of the code to import my wrapper rather than astropy.io.fits. I think it's self explanatory.

kfkaplan commented 10 months ago

The latest version of the PLP (qlook and flexure branches currently) can read in .gz and .bz2 compressed fits files in indata. I am going to consider this issue solved. Contact me if you have any questions.