SB2
is a Python package to create composite spectra for binary stars.
SB2
constructs spectra in natural units (i.e. Watts/Å) using GaiaDR2 distances. This is done using a library of luminosity normalized spectra. This library was created from a combination of the MaStar survey from SDSS-IV and the Pickles+1998 library. The Pickles library was used for OBAF stars while MaStar and SDSS was used for the GKM, C, WD stars.
SB2
was created as a part of the v2.0.0 release of PyHammer. More details of how the luminosity normalized spectra were created can be found in the corresponding paper Roulston+2020 (in prep.).
The program simply takes input of the spectral types (with paths) and then computes if the luminosity values are within a specific range. If they are, the SB2 is created. The user can change any of these parameters to allow SB2s to always be made.
The code can also take additional user templates provided/created templates as long as they are in the same units.
import makeSB2temp as SB2
this_SB2 = SB2("C2","WD3")
this_SB2.plotCompositeSB2()
this_SB2.saveCompositeSB2()