diff --git a/brutus/dust.py b/brutus/dust.py index 62dea96..7ec38de 100644 --- a/brutus/dust.py +++ b/brutus/dust.py @@ -189,7 +189,7 @@ class Bayestar(DustMap): """ - def __init__(self, dustfile='bayestar2017_v1.h5'): + def __init__(self, dustfile='bayestar2019_v1.h5'): """ Initialize the map from `dustfile`. diff --git a/brutus/filters.py b/brutus/filters.py index 8039b72..0b747de 100644 --- a/brutus/filters.py +++ b/brutus/filters.py @@ -18,12 +18,14 @@ bessell = ["Bessell_{}".format(b) for b in "UBVRI"] tmass = ["2MASS_{}".format(b) for b in ["J", "H", "Ks"]] ukidss = ["UKIDSS_{}".format(b) for b in "ZYJHK"] +vista = ["VISTA_{}".format(b) for b in ["Z", "Y", "J", "H", "Ks"]] wise = ["WISE_W{}".format(b) for b in "1234"] hipp = ["Hipparcos_Hp"] kepler = ["Kepler_D51", "Kepler_Kp"] tess = ["TESS"] -FILTERS = (gaia + sdss + ps + decam + tycho + bessell + tmass + ukidss + wise + - hipp + kepler + tess) +FILTERS = (gaia + sdss + ps + decam + bessell + + tmass + vista + ukidss + wise + + tycho + hipp + kepler + tess) __all__ = [] diff --git a/brutus/los.py b/brutus/los.py index caeed58..cca8044 100644 --- a/brutus/los.py +++ b/brutus/los.py @@ -100,8 +100,8 @@ def LOS_clouds_priortransform(u, rlims=(0., 6.), dlims=(4., 19.), # distances x[ns+2::2] = np.sort(u[ns+2::2]) * (dlims[1] - dlims[0]) + dlims[0] - - # foreground reddening + + # foreground reddening x[ns+1] = u[ns+1] * (rlims[1] - rlims[0]) + rlims[0] # cloud reddenings @@ -111,7 +111,7 @@ def LOS_clouds_priortransform(u, rlims=(0., 6.), dlims=(4., 19.), if dust_template: # replace with rescalings for the template x[ns+3::2] = u[ns+3::2][dsort] * (nlims[1] - nlims[0]) + nlims[0] - + return x