desihub / fastspecfit

Fast spectral synthesis and emission-line fitting of DESI spectra.
https://fastspecfit.readthedocs.org
BSD 3-Clause "New" or "Revised" License
13 stars 2 forks source link

Stacked spectra input option #91

Closed dirkscholte closed 1 year ago

dirkscholte commented 1 year ago

An option to input spectra for which we just have a flux + ivar + wl_bins would be really useful! For stacking mostly( but maybe someone wants to throw some other spectra in as well).

In this case MW-foreground correction etc would already be done before entering fastspecfit and cameras coadded into a single spectrum. Once the input format is determined we can write an output option in the stacking code that can write out the stacked spectrum in that format.

I know you already pointed me to some code for this in the templates folder - I had a bit of a struggle getting it to work. 😅

moustakas commented 1 year ago

Initial version implemented in #113. Let's open new issues for any outstanding issues or features.