Skip to content
/ SB2 Public

Package to create composite SB2 spectra from input spectral types using MaStar from SDSS-IV and the Pickles+1998 spectral libraries.

License

Notifications You must be signed in to change notification settings

broulston/SB2

Repository files navigation

SB2

GitHub release GitHub commits GitHub issues license Python Supported Maintenance Powered by Astropy

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

LumSpecs

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.


Example

import makeSB2temp as SB2

this_SB2 = SB2("C2","WD3")
this_SB2.plotCompositeSB2() 
this_SB2.saveCompositeSB2()

ExampleSB2

About

Package to create composite SB2 spectra from input spectral types using MaStar from SDSS-IV and the Pickles+1998 spectral libraries.

Resources

License

Stars

Watchers

Forks

Packages

No packages published