Skip to content

Commit

Permalink
VVV update
Browse files Browse the repository at this point in the history
Updating to add in VISTA ZYJHKs filter curves along with some other small
tweaks.
  • Loading branch information
joshspeagle committed Feb 2, 2020
1 parent 7be07cc commit 5c358ce
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion brutus/dust.py
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
6 changes: 4 additions & 2 deletions brutus/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__ = []
6 changes: 3 additions & 3 deletions brutus/los.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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


Expand Down

0 comments on commit 5c358ce

Please sign in to comment.