Skip to main content

Tools for modelling exoplanet spectra

Project description

This library contains routines for simulating and fitting exoplanet emission spectra at arbitrary orbital phase, thereby constraining the thermal structure and chemical abundance of exoplanet atmospheres. It is also capable of fitting emission spectra at multiple orbital phases (phase curves) at the same time. This package comes ready with some spectral data and General Circulation Model (GCM) )data so you could start simulating spectra straight away. There are a few demonstration routines in the nemesispy folder; in particular demo_fit_eclipse.py contains an interactive plot routine which allows you to fit a hot Jupiter eclipse spectrum by hand by varying its chemical abundance and temperature profile. This package can be easily integrated with a Bayesian sampler, in particular MultiNest for a full spectral retrieval.

The radiative transfer calculations are done with the correlated-k approximation, and are accelerated with the numba just-in-time compiler to match the speed of compiled languages such as Fortran. The radiative transfer routines are based on the well-tested Nemesis library developed by Patrick Irwin (University of Oxford) and collaborators.

This package has the following advantageous features:

  • Highly portable and customisable compared to packages written in compiled languages, and can be easily installed on computer clusters.
  • Fast calculation speed due to just-in-time compilation, which compiles Python code to machine code at run time.
  • Radiative transfer routines are benchmarked against the extensively used Nemesis library.
  • Contains interactive plotting routines that allows you to visualise the impact of gas abundance and thermal structure on the emission spectra.
  • Contains routine to simulate spectra from General Circulation Models (GCMs).
  • Contains unit tests so that you could check if the the code is working properly after your modifications.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nemesispy-0.0.10.tar.gz (9.2 MB view hashes)

Uploaded Source

Built Distribution

nemesispy-0.0.10-py3-none-any.whl (11.0 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page