fkirmani / diffimageml

scrum sprint for ML transient detection/classification in difference images
BSD 3-Clause "New" or "Revised" License
2 stars 4 forks source link

Make sure fits file reading is correct in general #46

Closed jpierel14 closed 3 years ago

jpierel14 commented 3 years ago

There's some code about reading .fits vs. .fz that doesn't seem to be right in general

jpierel14 commented 3 years ago

@koconnor4

srodney commented 3 years ago

generalized to look for 'SCI' extension, and when that's not available, use the first HDU with a data array. See f10f763