def __init__(self):
"""
This function ...
"""
# From Battisit et al. 2016
wl_B16 = np.arange(0.125, 0.832, 0.01)
x = 1. / wl_B16
Qfit_B16 = -2.488 + 1.803 * x - 0.261 * x ** 2 + 0.0145 * x ** 3
interpfunc = interpolate.interp1d(wl_B16, Qfit_B16, kind='linear')
Qfit_B16_V = interpfunc(0.55) # Interpolate to find attenuation at V band central wavelengths
n_atts_B16 = Qfit_B16 / Qfit_B16_V
wavelengths = wl_B16
attenuations = Qfit_B16 + 1. # TODO: understand this more ...
# Call the constructor of the base class
super(BattistiAttenuationCurve, self).__init__(wavelengths, attenuations)
# -----------------------------------------------------------------
评论列表
文章目录