IRTFTemplate

class libra.IRTFTemplate(sptype, fill_gaps=True)[source] [edit on github]

Bases: libra.Spectrum1D

Parameters:

sptype : str

Spectral type of target.

Methods Summary

fill_gaps() Fill gaps in template spectra at strong telluric absorption bands.
scale_temperature(delta_teff[, plot]) Scale up or down the flux according to the ratio of blackbodies between the effective temperature of the IRTF template spectrum and the new effective temperature t_eff + delta_teff.

Methods Documentation

fill_gaps()[source] [edit on github]

Fill gaps in template spectra at strong telluric absorption bands.

Will do a quadratic fit to the nearby continuum and fill the gap by extrapolating the smooth quadratic across the gap.

scale_temperature(delta_teff, plot=False)[source] [edit on github]

Scale up or down the flux according to the ratio of blackbodies between the effective temperature of the IRTF template spectrum and the new effective temperature t_eff + delta_teff.

Parameters:

delta_teff : float

Change in effective temperature to approximate

Returns:

spec : IRTFTemplate

Scaled spectral template to t_eff + delta_teff