Skip to content
Tutorials Center
My learning

Topics

Lesson 36 of 37 ยท Projects and Practice

Project: Detect an Exoplanet Transit

Build a transit light curve, add realistic noise, and write a simple search that recovers a planet's period and size, the method used by Kepler and TESS.

Over 5,000 planets are known around other stars. Most were found by the transit method: when a planet passes in front of its star, the star's light dips slightly. In this project you will create a synthetic light curve, hide a planet in the noise, and write code that finds it. The data here are simulated by us, not real observations.

The idea

If a planet of radius R_p crosses a star of radius R_s, it blocks a fraction of the star's disk:

depth = (R_p / R_s)ยฒ

For Jupiter crossing the Sun this is about 1%. For Earth crossing the Sun it is about 0.008% (84 parts per million). The period is the time between dips. The duration depends on the orbit.

Python Transit depths for different planets

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Step 1: simulate a light curve

We create 30 days of measurements every 30 minutes. The star's flux is 1.0. Every 4.2 days the planet blocks 1% of the light for 3 hours (a "box" shape for simplicity), and every measurement has random noise.

Python Simulate and plot a light curve

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The dips are only 3 times the noise level per point, so they are hard to see by eye.

Step 2: find the period

We will use a simple box search, a basic version of the Box Least Squares (BLS) method used for real surveys. For each trial period we fold the data (take the time modulo the period) and look for the phase window where the average flux is lowest. The right period stacks all dips on top of each other, giving the deepest dip.

Python Box search for the period

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The search recovers the period to within a few hundredths of a day. We score each trial period by depth times the square root of the number of points in the dip, which stops the search from preferring a double period (whose fewer in-transit points make a noisy, spuriously deep bin). The estimated depth comes out lower than the true 1%, because a box of fixed width and fixed position rarely lines up exactly with the transit: real BLS codes slide the box in small steps to fix this.

Ideas to extend it

  1. Lower the transit depth to 0.1% and see when the planet disappears into the noise.
  2. Make the transit shape round using a limb-darkened curve instead of a box.
  3. Add a second planet with a different period.
  4. Compute the planet's orbital distance from Kepler's third law, aยณ = Pยฒ (with a in AU, P in years, for a Sun-like star).

Real data from missions such as Kepler (launched 2009) and TESS (2018) are public. The idea is the same, but real stars also vary by themselves, and astronomers must tell planets apart from eclipsing binary stars and other false alarms.

Check your understanding

Quick check ยท 3 questions

of 3 answered You scored / 3 ยท perfect!

  1. 1. How deep is the transit when a planet with a tenth of its star's radius crosses it?

    depth = (R_p / R_s)ยฒ = 0.1ยฒ = 0.01, or 1%.
  2. 2. Why do we fold the light curve at trial periods?

    At the true period, all transits fall at the same phase, so the dip becomes deeper and clearer.
  3. 3. A transit makes a star dim by 0.04%. About how large is the planet compared with the star (radius ratio)?

    depth = (R_p/R_s)ยฒ, so R_p/R_s = โˆš0.0004 = 0.02.

Summary

  • Transit depth is (R_p / R_s)ยฒ: Jupiter-size planets dim a Sun-like star by about 1%, Earth-size by about 0.008%.
  • Folding data at trial periods and searching for the deepest dip recovers the period.
  • Noise, harmonics and false alarms are the main difficulties.

Next: Project: Build an H-R Diagram