BYOST.merge_spec

Contents

BYOST.merge_spec#

Merge blue- and red-side spectra onto a common wavelength grid.

BYOST.merge_spec.merge_spec(wave_b, flux_b, wave_r, flux_r, interp_option=0, normalize='blue_side', plot_ax=None)[source]#
Input:

wave_b,flux_b: Blue side spectrum wave_r,flux_r: Red side spectrum interp_option=0: wavelength grid interp, 0 as default combine the wavelength points in the overlapped region normalize: how flux is normalized when merging

‘blue_side’ match the flux of red spectrum to blue side in the overlapped region; ‘red_side’: match the flux of blue spectrum to the red spectrum in the overlapped region;

plot_ax: default None as no plot output, if given ax then will plot the spectra before and after the merging process.

Output:

tunple: merged_wavelength, merged_flux