Skip to content

Commit 5c358ce

Browse files
committed
VVV update
Updating to add in VISTA ZYJHKs filter curves along with some other small tweaks.
1 parent 7be07cc commit 5c358ce

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

brutus/dust.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ class Bayestar(DustMap):
189189
190190
"""
191191

192-
def __init__(self, dustfile='bayestar2017_v1.h5'):
192+
def __init__(self, dustfile='bayestar2019_v1.h5'):
193193
"""
194194
Initialize the map from `dustfile`.
195195

brutus/filters.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@
1818
bessell = ["Bessell_{}".format(b) for b in "UBVRI"]
1919
tmass = ["2MASS_{}".format(b) for b in ["J", "H", "Ks"]]
2020
ukidss = ["UKIDSS_{}".format(b) for b in "ZYJHK"]
21+
vista = ["VISTA_{}".format(b) for b in ["Z", "Y", "J", "H", "Ks"]]
2122
wise = ["WISE_W{}".format(b) for b in "1234"]
2223
hipp = ["Hipparcos_Hp"]
2324
kepler = ["Kepler_D51", "Kepler_Kp"]
2425
tess = ["TESS"]
2526

26-
FILTERS = (gaia + sdss + ps + decam + tycho + bessell + tmass + ukidss + wise +
27-
hipp + kepler + tess)
27+
FILTERS = (gaia + sdss + ps + decam + bessell +
28+
tmass + vista + ukidss + wise +
29+
tycho + hipp + kepler + tess)
2830

2931
__all__ = []

brutus/los.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ def LOS_clouds_priortransform(u, rlims=(0., 6.), dlims=(4., 19.),
100100

101101
# distances
102102
x[ns+2::2] = np.sort(u[ns+2::2]) * (dlims[1] - dlims[0]) + dlims[0]
103-
104-
# foreground reddening
103+
104+
# foreground reddening
105105
x[ns+1] = u[ns+1] * (rlims[1] - rlims[0]) + rlims[0]
106106

107107
# cloud reddenings
@@ -111,7 +111,7 @@ def LOS_clouds_priortransform(u, rlims=(0., 6.), dlims=(4., 19.),
111111
if dust_template:
112112
# replace with rescalings for the template
113113
x[ns+3::2] = u[ns+3::2][dsort] * (nlims[1] - nlims[0]) + nlims[0]
114-
114+
115115
return x
116116

117117

0 commit comments

Comments
 (0)