Skip to main content

ExoplanetPy

ExoplanetPy is a python package for modelling the transit light curves of systems with multiple exoplanets orbiting around their host stars. To obtain transit curves, set up the Keplerian orbital elements for each planet in the system.

The Planet() class handles each planet's orbital elements, and the System() class can be used to plot the final transit curves.

The following orbital elements are set up:

  • e: eccentricity
  • a: semi-major axis
  • omega: argument of periapsis (ω)
  • Omega: longitude of ascending node (Ω)
  • i: orbital inclination
  • r_p: planet:star radius

Each Planet() can have different initial true anomaly (ν) values, varied by the first_periastron time argument.

Installation

Installation is recommended via pip for Python 3.

pip install exoplanetpy

The package can then be imported using:

import ExoplanetPy

Usage

Access the modules using the following statements.

from ExoplanetPy import Planet
from ExoplanetPy import System

Transit Curves

Define a single Planet() and input as planet_list argument in System().
Limb darkening models are chosen in the plot() method.

p1 = Planet(e=0.0, a=8, omega=0, Omega=0, i=89.9, r_p=0.1, first_periastron=0.0)
sys = System(star_prop={'Mass': 4}, planet_list=[p1], sort=True)
sys.plot(model='Quadratic', normalise=True)

Additional Planet() objects are inputted as planet_list argument in System().

p1 = Planet(e=0.0, a=8, omega=0, Omega=0, i=89.9, r_p=0.1, first_periastron=0.0)
p2 = Planet(e=0.0, a=2, omega=0, Omega=0, i=89.9, r_p=0.05, first_periastron=0.0)
sys = System(star_prop={'Mass': 4}, planet_list=[p1,p2], sort=True)
sys.plot(model='Quadratic', normalise=True)

Direct Imaging

Take the following planetary system:

p1 = Planet(e=0.0, a=8, omega=0, Omega=0, i=89, r_p=0.1, first_periastron=0.03)
p2 = Planet(e=0.0, a=4, omega=0, Omega=0, i=89, r_p=0.07, first_periastron=0.52)
p3 = Planet(e=0.0, a=2, omega=0, Omega=0, i=87, r_p=0.05, first_periastron=0.0)
sys = System(star_prop={'Mass': 4}, planet_list=[p1, p3, p2], sort=True)

The visualize() method allows the user to obtain visual images of the actual transit.

sys.visualize(time=0.26, model='Quadratic')

Changing the fractional time parameter allows the user to obtain images at any point during transit.

sys.visualize(time=0.27, model='Quadratic')

Similarly, for time = 0.28:

sys.visualize(time=0.28, model='Quadratic')

Dependencies

ExoplanetPy has the following dependencies:

License

MIT License
© 2020 ExoplanetPy

Release files for ExoplanetPy 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ExoplanetPy 0.1.1
File Size Uploaded
ExoplanetPy-0.1.1.tar.gz 5.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ExoplanetPy 0.1.1
File Interpreter ABI Platform
ExoplanetPy-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 12.3 kB

Release files / ExoplanetPy-0.1.1.tar.gz

Download URL ExoplanetPy-0.1.1.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5630eb3f6b9adab1717e7daaed0fdeb9bfb559eab930689b757f14750d6db5f2
BLAKE2b-256 checksum
How to use checksums
473519defa55204dbf5d65bb87709c7cdacb25ddcef785a98ffa155b5dc38361
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.9

Release files / ExoplanetPy-0.1.1-py3-none-any.whl

Download URL ExoplanetPy-0.1.1-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f448565b8963c17fcd6b21b94aaff1c3f4f10d4612282e353d4b6d811f004624
BLAKE2b-256 checksum
How to use checksums
956238540a25c77430dd9fc7dbddd0e76406934c57eb74c5b8879bedc320598f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.9

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page