Skip to content

Commit

Permalink
updated transit times
Browse files Browse the repository at this point in the history
  • Loading branch information
rodluger committed Mar 28, 2017
1 parent 3ad38d2 commit e823bd5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 19 deletions.
8 changes: 4 additions & 4 deletions data/ttv_kruse.dat
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
6 3 2776.55026918 nan
6 5 2801.2509902 nan
6 6 2813.60659406 nan
7 0 2756.383 nan
7 1 2775.150 nan
7 2 2793.920 nan
7 3 2812.700 nan
7 0 2756.388 nan
7 1 2775.154 nan
7 2 2793.922 nan
7 3 2812.699 nan
Binary file modified output/folded.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 9 additions & 15 deletions trappist1.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,22 +61,16 @@ def PlotFolded(save = False):

# Plot each planet
planets = ['b', 'c', 'd', 'e', 'f', 'g', 'h']
star.compute_joint()

# HACK: For some reason, the EVEREST regression fails for planet `b`, yielding
# a depth that's two orders of magnitude too small. I suspect an outlier, but
# I couldn't find it. Since this doesn't affect the analysis **at all**, let's
# just fudge it for the plotting to work.
star.transit_depth[0] = 0.008

for planet, ax in zip(planets, axes):

# HACK: There's an outlier SOMEWHERE that's messing up the transit fit for `b`...
if planet == 'b':
inds = []
for t in T1.times['b']:
inds += list(np.where(((star.time - t) > 0.05) & ((star.time - t) < 0.06))[0])
tmp = np.array(star.badmask)
star.badmask = np.append(star.badmask, inds)
star.compute_joint()
star.plot_transit_model(fold = planet, ax = ax, show = False)
star.badmask = tmp
star.compute_joint()
else:
star.plot_transit_model(fold = planet, ax = ax, show = False)

star.plot_transit_model(fold = planet, ax = ax, show = False)
ax.set_ylabel("")
ax.set_xlabel("")
ax.set_title(planet, fontweight = 'bold')
Expand Down

0 comments on commit e823bd5

Please sign in to comment.