All Projects → rodluger → planetplanet

rodluger / planetplanet

Licence: GPL-3.0 license
A general photodynamical code for exoplanet light curves

Programming Languages

python
139335 projects - #7 most used programming language
c
50402 projects - #5 most used programming language
julia
2034 projects
shell
77523 projects

Projects that are alternatives of or similar to planetplanet

PandExo
A Community Tool for Transiting Exoplanet Science with the JWST & HST
Stars: ✭ 23 (-36.11%)
Mutual labels:  exoplanets, exoplanet-transits
k2sc
K2 systematics correction using Gaussian processes
Stars: ✭ 15 (-58.33%)
Mutual labels:  exoplanets, exoplanet-transits
ldtk
Python toolkit for calculating stellar limb darkening profiles and model-specific coefficients using the stellar atmosphere spectrum library by Husser et al. (2013). Described in Parviainen & Aigrain, MNRAS 453, 3821–3826 (2015).
Stars: ✭ 26 (-27.78%)
Mutual labels:  exoplanets, exoplanet-transits
P4J
Periodic time series analysis tools based on information theory
Stars: ✭ 42 (+16.67%)
Mutual labels:  light-curves
picaso
A Planetary Intensity Code for Atmospheric Spectroscopy Observations
Stars: ✭ 27 (-25%)
Mutual labels:  exoplanets
spacehunter
❤🍳 Space Hunter is a PWA (Progressive Web App) in which the user can have access to information regarding the universe.
Stars: ✭ 15 (-58.33%)
Mutual labels:  exoplanets
curvit
Create light curves from UVIT data.
Stars: ✭ 14 (-61.11%)
Mutual labels:  light-curves
ACTIN
ACTIN is a Python program to calculate stellar activity indices
Stars: ✭ 14 (-61.11%)
Mutual labels:  exoplanets
awesome-spectra
🌈 A collaborative list of awesome tools for spectroscopy. Also, check:
Stars: ✭ 47 (+30.56%)
Mutual labels:  exoplanets
kepler orrery
Make a Kepler orrery gif or movie of all the Kepler multi-planet systems
Stars: ✭ 91 (+152.78%)
Mutual labels:  exoplanets
pyaneti
A multi-planet Radial Velocity and Transit modelling software
Stars: ✭ 26 (-27.78%)
Mutual labels:  exoplanets


Overview

planetplanet is a general photodynamical code for modeling exoplanet transits, secondary eclipses, phase curves, and exomoons, as well as eclipsing binaries, circumbinary planets, and more. The code was originally developed to model planet-planet occultation (PPO) light curves for the TRAPPIST-1 system. During a PPO, a planet occults (transits) the disk of another planet in the same planetary system, blocking its thermal (and reflected) light, which can be measured photometrically by a distant observer.

planetplanet is coded in C and wrapped in a user-friendly Python interface. Once installed, generating light curves is as easy as

import planetplanet as pp
import numpy as np
import matplotlib.pyplot as pl

star = pp.Star('A', m = 0.1, r = 0.1, limbdark = [0.4, 0.26])
planet = pp.Planet('b', m = 1, r = 1, t0 = 0., per = 3.)
system = pp.System(star, planet)
time = np.arange(-1., 1., 0.0001)
system.compute(time)
system.plot_occultation('A', time = 0)
pl.show()
Exoplanet transit light curve

Please check out the documentation or read the paper for more information.

Installation

The planetplanet code is now pip-installable:

pip install planetplanet

Alternatively, to install from source:

git clone [email protected]:rodluger/planetplanet.git
cd planetplanet
git submodule init && git submodule update
python setup.py develop

Note that you may need to install the GNU Scientific Library. On a Mac, it's as simple as

brew install gsl

Just for fun

Here's a an example of a planet-planet occultation [code]:

Planet-planet occultation

And here's a wacky example of a transit of a circumbinary exomoon [code]:

Circumbinary exomoon
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].