I've begun porting the code I previously wrote in IDL for building spectral templates (of all classes except QSOs) to python in desisim. I'm starting with the ELGs as the "hardest" class because I want there to be flexibility in how the emission-line spectrum is constructed, without losing the (empirical) relationship between the emission-line spectrum (especially [OII]) and the underlying stellar continuum. Eventually this code (or an intermediate piece of code) will need to interface with desisim.targets() for generating mock datasets.
I've begun porting the code I previously wrote in IDL for building spectral templates (of all classes except QSOs) to python in desisim. I'm starting with the ELGs as the "hardest" class because I want there to be flexibility in how the emission-line spectrum is constructed, without losing the (empirical) relationship between the emission-line spectrum (especially [OII]) and the underlying stellar continuum. Eventually this code (or an intermediate piece of code) will need to interface with desisim.targets() for generating mock datasets.