print("Notice: Your input magnitude (mag) is > 26 mag or < 8 mag.")
if(age<0.06)or(age>17.8):
print("Notice: Your input median age (age) is beyond the range of stellar template [0.06, 17.8], which will be automatically adjusted to the upper/lower limit.")
if(feh>0.22):
print("Notice: Your input median metallicity (feh) is beyond the range of stellar template [-2.32, 0.22], which will be automatically adjusted to the upper limit.")
if(feh<-2.32):
raiseException('Your input median metallicity (feh) is beyond the range of stellar template [-2.32, 0.22]')
#if (ebv < 0):
# ebv = 0
# print('Notice: Your input dust extinction (ebv) is < 0 mag, which will be automatically adjusted to 0 mag. ')
# -----------------
# -----------------
# Stellar Continuum
# Stellar Continuum
SSP_temp=template.templates
SSP_temp=template.templates
# Select metal bins
# Select metal bins
...
@@ -958,6 +1000,9 @@ class StellarContinuum():
...
@@ -958,6 +1000,9 @@ class StellarContinuum():
idx=(sigma_gal<=sigma_LSF)
idx=(sigma_gal<=sigma_LSF)
sigma_dif[idx]=0.1
sigma_dif[idx]=0.1
flux0=gaussian_filter1d(Stellar,sigma_dif)
flux0=gaussian_filter1d(Stellar,sigma_dif)
else:
ifsigma_gal<0:
print('Notice: Your input velocity dispersion (vdisp) is < 0 km/s, which will be automatically adjusted to 0 km/s. ')
print("Notice: Your input magnitude (mag) is > 26 mag or < 8 mag.")
if(teff<2820)or(teff>20129):
print("Notice: Your input effective tempreture (teff) is beyond the range of stellar template [2820, 20129], which will be automatically adjusted to the upper/lower limit.")
if(feh>0.81):
print("Notice: Your input metallicity (feh) is beyond the range of stellar template [-2.69, 0.81], which will be automatically adjusted to the upper limit.")
if(feh<-2.69):
raiseException('Your input metallicity (feh) is beyond the range of stellar template [-2.69, 0.81]')