Exploring Exoplanet Systems with the Wolfram Language
Exoplanets are currently an active area of research in astronomy. In the past few years, the number of exoplanet discoveries has exploded, mainly as the result of the Kepler mission to survey eclipsing exoplanet systems. But Kepler isn’t the only exoplanet study mission going on. For example, the TRAnsiting Planets and PlanetesImals Small Telescope (TRAPPIST) studies its own set of targets. In fact, the media recently focused on an exoplanet system orbiting an obscure star known as TRAPPIST-1. As an introduction to exoplanet systems, we’ll explore TRAPPIST-1 and its system of exoplanets using the Wolfram Language.
To familiarize yourself with the TRAPPIST-1 system, it helps to start with the host star itself, TRAPPIST-1. Imagine placing the Sun, TRAPPIST-1 and Jupiter alongside one another on a table. How would their sizes compare? The following provides a nice piece of eye candy that lets you see how small TRAPPIST-1 is compared to our Sun. It’s actually only a bit bigger than Jupiter.
Although the diameter looks to be about the same as Jupiter’s, its mass is quite different—actually about 80 times the mass of Jupiter.
And it has only about 8% of the Sun’s mass.
TRAPPIST-1 is a thus very low-mass star, at the very edge of the main sequence, but still allowing the usual hydrogen fusion in its core.
The exoplanets in this system are what actually gained all of the media attention. All of the exoplanets (blue orbits) found in the TRAPPIST-1 system so far orbit the star at distances that would be far inside the orbit of Mercury (in green), if they were in our solar system.
As a more quantitative approach to study the planets in this system, it is useful to take a look at the orbital periods of these planets, which lie very close together. Planets in such close proximity can often perturb one another, which can result in planets being ejected out of the system, unless some orbital resonances ensure that the planets are never in the wrong place at the wrong time. It’s easy to look up the orbital period of the TRAPPIST-1 planets.
Divide them all by the orbital period of the first exoplanet to look for orbital resonances, as indicated by ratios close to rational fractions.
These show near resonances with the following ratios.
TRAPPIST-1 h has an inaccurately known orbital period so it’s not clear whether it partakes in any resonances.
Similarly, nearest-neighbor orbital period ratios show resonances.
Which are close to:
An orbital resonance of 3/2 means that one of the planets orbits 3 times for every 2 of the other. Pluto and Neptune in our solar system exhibit a near 3:2 orbital resonance.
This can help explain how so many planets can be packed into such a tight space without experiencing disruptive perturbations.
What about the distances of the exoplanets from their host star? If you placed TRAPPIST-1 and its planets alongside Jupiter and its four Galilean moons, how would they compare? The star and Jupiter are similar in size. The exoplanets are a bit larger than the moons (which are hard to see here) and they orbit a bit farther away, but the overall scales are of similar magnitude. In the following graphic, all distances are to scale, but we magnified the actual diameters of the planets and moons to make them easier to see.
The sizes of the planets can be compared to Jupiter’s four biggest moons for additional scale comparisons.
Exploring Other Exoplanet Systems
At the time of this writing, we have curated over 3,400 confirmed exoplanets:
Most of the confirmed exoplanets have been discovered since 2014, during missions such as Kepler.
You can query for data on individual exoplanets.
In addition, there are various classifications of exoplanets that can be queried.
You can perform an analysis to see when the exoplanets were discovered.
You can also do a systematic comparison of exoplanet parameters, which we limit here to the radius and density. We are only considering the entity class of super-Earths here. The red circle marks the approximate location of the TRAPPIST-1 system in this plot.
Here is another example of systematic comparison of exoplanet parameters by discovery method, indicated by color coding. Once again, the TRAPPIST-1 system is shown, with red dots at its mean values.
In addition to data specific to exoplanets, the Wolfram Language also includes data on chemical compounds present in planetary atmospheres.
You can use this data to show, for example, how the density of various atmospheric components changes with temperature.
Photometric Light Curves
As a more concrete application, the Wolfram Language also provides the tools needed to explore collections of raw data. For example, here we can import irregularly sampled stellar light-curve data directly from the NASA Exoplanet Archive for the HAT-P-7 exoplanet system.
Then we can remove data points that are not computable.
This raw data can be easily visualized, as shown here.
The following subsamples the data and does some additional post processing to both the times and magnitudes.
Plotting the data shows evidence of eclipses, appearing as a smattering of points below the dense band of data.
Deriving an Orbital Period—Method 1
A Fourier-like algorithm can identify periodicities in this data.
Zoom into the fundamental frequency, at higher resolution.
We find that the fundamental peak frequency occurs at .453571 radians/day, for which the reciprocal gives an estimate of the corresponding orbital period in days.
Deriving an Orbital Period—Method 2
With some additional processing, we can apply a minimum string length (MSL) algorithm to the raw data to look for periodicities.
We can apply the MSL algorithm to a range of potential periods to try to find a value that minimizes the distance between neighboring points when the data is phase folded.
Clearly, the minimum string length occurs at about 2.20474 days, in close agreement with method 1.
We can also validate this derived value with the value stored in the header of the original data.
This orbital period corresponds with that of exoplanet HAT-P-7b, as can be seen in the Wolfram curated data collection (complete with units and precision).
From the known orbital period, we can phase fold the original dataset, overlapping the separate eclipses, to obtain a more complete picture of the exoplanet eclipse.
Noise can be reduced by carrying out a phase-binning technique. All data points are placed into bins of width .0005 days, and the mean of the values in each bin is determined.
Modeling Light Curves
This graphic, mainly for purposes of visualization, shows the host star, HAT-P-7, with its exoplanet HAT-P-7b orbiting it. All parameters, including diameter and orbital radius, are to scale. The idea is to try to reproduce the brightness variations seen in the observed light curve. For this graphic, the GrayLevel of the exoplanet is set to GrayLevel, which enables you to more clearly see the exoplanet go though phases as it orbits the host star.
Now we can do an analogous thing, generating a list of frames instead of a static graphic. In this case, the GrayLevel of the exoplanet is much reduced, as compared to the animation above. For purposes of illustration and to reduce computation time, a small set of values has been chosen around the primary eclipse.
Now, to measure how the brightness of the scene changes, we can use image processing to total all of the pixel values. It’s rasterized at a large image size so that edge artifacts are minimized (which can otherwise have measurable effects on the resulting light curve). So this code takes a minute or so to run.
Next, we rescale all of the pixel counts to fit in the same vertical range as the observed light curve.
Now compare the model data to the actual data. The red points show the model data computed at a few orbital phases around the primary eclipse.
A more detailed model light curve can be constructed if you increase the computation time. The version above was done for speed. Of course, additional secondary effects can be included, such as the possibility of gravity darkening and other effects that cause brightness variations across the face of the star. Such secondary effects are beyond the scope of this blog.
Other star systems can be far more complicated and provide their own unique challenges to understanding their dynamical behavior. The Wolfram Language provides a powerful tool that allows you to explore the subtleties of stellar light curve analysis as well as the periodicities in irregularly sampled data. It would be interesting to see some of these more complicated systems tackled in similar ways to what we’ve done in this blog.
Thanks to Daniel Lichtblau for his insights into exploring periodicity in irregularly sampled data.
Download this post as a Computable Document Format (CDF) file. New to CDF? Get your copy for free with this one-time download.