Transit generating code as extended to allow surface brightness to vary across the disk of the star, and output the results as a CSV.:
https://github.com/pdn4kd/freezing-tyrion/blob/master/HW3-6.py
Example Jupiter/Sun transits with varying limb darkening parameters (no brightness variation, variation consistent with a Lambertian radiator, and an 80/20 split between the two):
---
This is a very simple (brute force) fitting demonstration for transit data from HD 209458 b. At present, it searches the entire specified parameter space at the user-specified resolution, and returns the results with the lowest reduced chi-squared. The only difference in transit calculations between this and the previous portion are that epoch is assumed to be at middle eclipse time, and a correction is included to prevent the planet from eclipsing the star when the star should be in front of the planet:
https://github.com/pdn4kd/freezing-tyrion/blob/master/HW3-6b.py
My use of unicode in the final graph means that Python 3 may be required for the plots to display correctly. Each individual test seems to take somewhat less than 1 second, so be aware of the large number of minutes/hours possible if a large parameter space is used.
example plot for HD 209458 b using 10x binning:
min chisquared: 0.0193337980195
r_planet (Jupiters): 1.4
p_planet (days): 3.52
sma (AU): 0.0471784512364
b (stellar radii): 0.5
Epoch: 2453235.5
Depth, duration, i: 0.123408960809 0.0357690898906 0.87758256189
And 100x binning:
min chisquared: 0.00087832414439
r_planet (Jupiters): 1.4
p_planet (days): 3.52
sma (AU): 0.0471784512364
b (stellar radii): 0.5
Epoch: 2453235.5
Depth, duration, i: 0.123408960809 0.0357690898906 0.87758256189
(unbinned data did not show the transits!)
No comments:
Post a Comment