sb2sep

Separate Stellar Component Spectra and Calculate Radial Velocities in SB2 Binary Systems

View the Project on GitHub jsinkbaek/sb2sep

The Spectral Separation Routine

The package is separated into multiple modules. The functions associated with the spectral separation are located in the module

spectral_separation_routine

Here, the main two functions that can be used for spectral separation are called spectral_separation_routine and spectral_separation_routine_multiple_intervals. The last function is a wrapper on the first, that can also split the input spectra into multiple different intervals.

spectral_separation_routine()

spectral_separation_routine requires 8 input arguments:

Most optional arguments are encapsulated in the *Options objects. The only three direct optional arguments that can be supplied are

Note on ndims and spectral orders

It is currently NOT possible to supply multiple spectral orders to the function and gain merged separated spectra as output in a convenient way. This was possible previously, but the underlying functions for MERGED spectra has been continously developed while the order-to-order methods have NOT. The functions still appears to support this, but DO NOT USE IT.

RV_guess_collection can have either shape (n_orders, n_spectra, 2) or (n_spectra, 2) in this case. If the latter, each order is assumed to have the same initial RV guess, which is generally a decent assumption. (AS MENTIONED, DO NOT USE THE SHAPE (n_orders, n_spectra, 2)).

spectral_separation_routine_multiple_intervals()

The wrapper function spectral_separation_routine_multiple_intervals is similar, but requires 9 input arguments instead, and has 3 optional arguments. These are, in order:

Next page: Routine options