desihub / redrock

Redshift fitting for spectroperfectionism
BSD 3-Clause "New" or "Revised" License
21 stars 13 forks source link

keep template version keywords in REDSHIFTS HDU as well #308

Open sbailey opened 1 month ago

sbailey commented 1 month ago

Currently rrdesi -o redrock.fits output keeps the template version keywords in HDU 0, while the redshift table itself is in HDU 1 EXTNAME=REDSHIFTS. This is inconvenient because

redshifts = astropy.table.Table.read('redrock.fits')

does not pickup the TEMNAMnn / TEMVERnn keywords needed to know which templates to load for these outputs.

Consider also adding these to HDU 1, while leaving them as duplicated in HDU 0 so that we don't break any code that is reading them from HDU 0.