def Mdwarf(name=None,dm=None): """Definition of a single, main sequence M-dwarf star of mass 0.25 Msol""" star = combined_light_predictor.Star() star.name = name star.Mg = 13.650 star.Mr = 12.081 star.Mi = 10.714 star.Mz = 9.927 star.MJ = 8.398 star.MH = 7.910 star.MKs = 7.676 star.distance_modulus = dm star.calculate_colours() return star
def LTdwarf(name=None,dm=None): """Definition of a single L/T brown dwarf star of type T0 Msol""" star = combined_light_predictor.Star() star.name = name star.Mg = 99.999 star.Mr = 99.999 star.Mi = 22.94 star.Mz = 19.11 star.MJ = 15.89 star.MH = 15.09 star.MKs = 14.46 star.distance_modulus = dm star.calculate_colours() return star
def Gdwarf(name=None,dm=None): """Definition of a single, main sequence G-dwarf star of mass 1.0 Msol""" star = combined_light_predictor.Star() star.name = name star.Mg = 5.011 star.Mr = 4.574 star.Mi = 4.475 star.Mz = 4.465 star.MJ = 3.908 star.MH = 3.586 star.MKs = 3.555 star.distance_modulus = dm star.calculate_colours() return star
def Kdwarf(name=None,dm=None): """Definition of a single, main sequence K-dwarf star of mass 0.6 Msol""" star = combined_light_predictor.Star() star.name = name star.Mg = 9.479 star.Mr = 8.189 star.Mi = 7.539 star.Mz = 7.150 star.MJ = 5.936 star.MH = 5.333 star.MKs = 5.196 star.distance_modulus = dm star.calculate_colours() return star
def setup_test_star(): star = combined_light_predictor.Star() star.MB = 11.0 star.MV = 10.0 star.Mg = 10.0 star.Mr = 9.5 star.Mi = 9.2 star.Mz = 9.1 star.MJ = 8.2 star.MH = 8.3 star.MKs = 8.4 star.W149 = 8.0 star.Z087 = 9.1 star.distance_modulus = 11.0 return star
def M3dwarf(name=None, dm=None): """Definition of a single, main sequence M-dwarf star of mass 0.35 Msol""" star = combined_light_predictor.Star() star.name = name star.Mg = 11.933 star.Mr = 10.409 star.Mi = 9.475 star.MB = 13.175 star.MV = 11.574 star.MJ = 7.566 star.MH = 7.014 star.MKs = 6.779 star.distance_modulus = dm star.calculate_colours() return star
def Kdwarf(name=None, dm=None): """Definition of a single, main sequence K-dwarf star of mass 0.88 Msol""" star = combined_light_predictor.Star() star.name = name star.Mg = 5.749 star.Mr = 5.199 star.Mi = 5.058 star.MB = 6.368 star.MV = 5.584 star.MJ = 4.329 star.MH = 3.942 star.MKs = 3.897 star.distance_modulus = dm star.calculate_colours() return star
def M7dwarf(name=None, dm=None): """Definition of a single, main sequence M-dwarf star of mass 0.09 Msol""" star = combined_light_predictor.Star() star.name = name star.Mg = 19.149 star.Mr = 17.181 star.Mi = 14.700 star.MB = 21.124 star.MV = 18.674 star.MJ = 11.033 star.MH = 10.458 star.MKs = 10.178 star.distance_modulus = dm star.calculate_colours() return star
def WhiteDwarf(teff, dm=None): """Definition of a single White Dwarf star, with parameters determined by the t_eff provided teff one of { 4000.0, 20000.0, 100000.0 } Photometry from Bergeron 1995 PASP 107 1047. """ star = combined_light_predictor.Star() star.distance_modulus = dm if teff == 4000.0: star.name = 'WD (4000K)' star.MV = 16.105 star.MB = 17.081 star.BV = 0.976 star.VI = 1.249 star.RI = 0.620 star.VKs = 1.309 star.JH = -0.152 star.HKs = -0.126 elif teff == 20000.0: star.name = 'WD (20000K)' star.MV = 10.732 star.MB = 10.688 star.BV = -0.044 star.VI = -0.216 star.RI = -0.119 star.VKs = -0.705 star.JH = -0.063 star.HKs = -0.106 elif teff == 100000.0: star.name = 'WD (100000K)' star.MV = 8.408 star.MB = 8.079 star.BV = -0.329 star.VI = -0.358 star.RI = -0.210 star.VKs = -1.093 star.JH = -0.131 star.HKs = -0.134 else: print('ERROR: No photometry available for a white dwarf of teff=' + str(teff) + 'K') return star star.MI = star.MV - star.VI star.MKs = star.MV - star.VKs star.MH = star.MKs + star.HKs star.MJ = star.MH + star.JH star.JKs = star.MJ - star.MKs phot = jester_phot_transforms.transform_JohnsonCousins_to_SDSS(BV=star.BV, sigBV=0.0, RI=star.RI, sigRI=0.0, V=star.MV, sigV=0.0) star.gr = phot['g-r'] star.ri = phot['r-i'] star.Mg = phot['g'] star.Mr = phot['r'] star.Mi = star.Mr - star.ri return star