hover2pi / specialsoss

SPECtral Image AnaLysis for SOSS
MIT License
1 stars 1 forks source link

Export file of extracted 1D spectra #8

Open hover2pi opened 5 years ago

hover2pi commented 5 years ago

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 (nintsngrps2).

hover2pi commented 4 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.