# print("Notice: Your input Halpha flux (halpha) is < 0 erg/s/A/cm^2. ")
# print("Notice: Your input Halpha flux (halpha) is < 0 erg/s/A/cm^2. ")
if(logz>-2)&(logz<0.5):
if(logz>=-2)&(logz<=0.5):
indz=np.argmin(np.abs(logz-temp.logz_grid))
indz=np.argmin(np.abs(logz-temp.logz_grid))
flux_ratio=temp.flux_ratio[indz,:]
flux_ratio=temp.flux_ratio[indz,:]
else:
else:
...
@@ -1003,7 +1003,8 @@ class StellarContinuum():
...
@@ -1003,7 +1003,8 @@ class StellarContinuum():
else:
else:
ifsigma_gal<0:
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 velocity dispersion (vdisp) is < 0 km/s, which will be automatically adjusted to 0 km/s. ')
flux0=Stellar
# Dust Reddening
# Dust Reddening
ifnp.isscalar(ebv):
ifnp.isscalar(ebv):
flux0=reddening(wave,flux0,ebv=ebv)
flux0=reddening(wave,flux0,ebv=ebv)
...
@@ -1119,10 +1120,10 @@ class SingleStar():
...
@@ -1119,10 +1120,10 @@ class SingleStar():
print("Notice: Your input magnitude (mag) is > 26 mag or < 8 mag.")
print("Notice: Your input magnitude (mag) is > 26 mag or < 8 mag.")
if(teff<2820)or(teff>20129):
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.")
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):
if(feh>0.81)or(feh<-2.69):
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.")
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):
#if (feh < -2.69):
raiseException('Your input metallicity (feh) is beyond the range of stellar template [-2.69, 0.81]')
# raise Exception('Your input metallicity (feh) is beyond the range of stellar template [-2.69, 0.81]')