Open hover2pi opened 5 years ago
This is somewhat complicated since there may be separate extraction methods, e.g. 'sum', 'bin', etc.
Maybe just write them to different files? Or just make different extensions in the HDUList? Different files may make more sense since the wavelength arrays will be different so a given file can just have WAVELENGTH
and FLUX
extensions rather than he more confusing WAVELENGTH_SUM
, FLUX_SUM
, WAVELENGTH_BIN
, etc. extensions.
Once the spectral extraction is finished, the user should be able to export a single FITS file containing a 1D spectrum for each order in each frame (
nints
ngrps
2).