imcgreer / simqso

Module for generating simulated quasar spectra
BSD 3-Clause "New" or "Revised" License
12 stars 11 forks source link

write/read metadata to/from existing FITS file and HDU name? #22

Closed moustakas closed 6 years ago

moustakas commented 6 years ago

It would be very helpful if the sqgrids.QsoSimObject.write method could optionally write to an existing FITS file and to a specified HDU name. Similarly, it would be great if the corresponding read method could read a particular HDU / extension name.

In case it's useful, in DESI we use this simple wrapper on various astropy convenience methods -- https://github.com/desihub/desispec/blob/master/py/desispec/io/util.py#L147-L209

Thanks!