COde for exoplaNet ANalysis
Project description
CONAN
COde for exoplaNet ANalysis: A flexible bayesian framework for modeling heterogeneous exoplanet data
CONAN is an open-source Python package designed for comprehensive analysis of exoplanetary systems.
It provides a unified framework for simultaneous modeling of diverse observational data including
photometric transit light curves, occultations, phase curves, and radial velocity measurements.
It is designed to be flexible, easy to use, and fast.
It is developed and maintained at the Observatory of Geneva, Switzerland under the MIT license.
Key features:
- Multi-dataset analysis: Seamless analysis of combined lightcurve (LC) and radial velocity (RV) datasets from various instruments.
- Multiplanet support: Simultaneous fit to multiple planets in a single system.
- Comprehensive photometric modeling: Robust modeling of transits, occultations, and phase curves, including effects such as ellipsoidal variations and Doppler beaming (see Model definition).
- Support for modeling light curve variations: Analysis of transit timing variations (TTVs) and transit depth variations (transmission spectroscopy).
- Flexible baseline and noise modeling: Selection of one or combination of Polynomial, sinusoidal, Gaussian Processes (GP), and spline functions for data detrending.
- Extensible and customizable modeling: Users can easily incorporate new LC and RV models or modify default ones to suit specific needs, e.g., modeling the transit of non-spherical planets, Rossiter–McLaughlin signals, or even non-planetary signals.
- Robust Bayesian inference: Parameter estimation via MCMC (
emcee) or nested sampling (dynesty) - Derivation of priors limb darkening coefficients: Incorporation of
ldtkto derive priors for the quadratic limb darkening coefficients from the stellar parameters. - Automated selection of parametric model parameters: Uses the Bayesian Information Criterion to suggest best combination of vectors to use in decorrelating the data.
- Science data download: Built-in support for downloading data from various instruments (including TESS, CHEOPS, and Kepler) and also system parameters from NASA Exoplanet Archive.
- Quick result visualization and manipulation: Instant plot of the best-fit model and a result object that can be easily manipulated for customized analysis.
The full documentation can be accessed at https://conan-exoplanet.readthedocs.io
Installation
To avoid requirement conflicts with other packages, it is better to create a new environment (or clone a current environment) to install CONAN
To create a new environment:
conda create -n conan_env python=3.10
then
conda activate conan_env
CONAN can be installed using different methods:
1) Installing from PyPI:
pip install conan-exoplanet
2) Downloading the source files from github:
git clone https://github.com/titans-ge/CONAN.git
cd CONAN
then running
pip install .
3) Installing directly from github using pip
pip install git+https://github.com/titans-ge/CONAN.git
Note that a folder 'src' is created where the CONAN source files are downloaded to before installation.
If having troubles compiling the fortran code used for the transit model, set NO_FORTRAN=True in terminal before pip installing. This uses a python implementation of the fortran code (which is ~30X slower)
export NO_FORTRAN=True
pip install git+https://github.com/titans-ge/CONAN.git
Recent changes
See change_log.rst
Run fit from config file
Fit can be launched from a config file within python or from the command line
-
Within
pythonfrom CONAN import fit_configfile result = fit_configfile("input_config.dat", out_folder="output") -
from
command line:conanfit path/to/config_file output_folderto see commandline help use:
conanfit -h
Attribution
If you find CONAN useful in your research, please reference the GitHub
repository. The first implementations of CONAN have been descibed in a few papers, kindly cite them using the following BibTeX entries:
@ARTICLE{2017A&A...606A..18L,
author = {{Lendl}, M. and {Cubillos}, P.~E. and
{Hagelberg}, J. and
{M{\"u}ller}, A. and
{Juvan}, I. and
{Fossati}, L.},
title = "{Signs of strong Na and K absorption in the transmission spectrum of WASP-103b}",
journal = {\aap},
year = 2017,
month = sep,
volume = {606},
eid = {A18},
pages = {A18},
doi = {10.1051/0004-6361/201731242},
archivePrefix = {arXiv},
eprint = {1708.05737},
primaryClass = {astro-ph.EP},
adsurl = {https://ui.adsabs.harvard.edu/abs/2017A&A...606A..18L},
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}
@ARTICLE{2020MNRAS.492.1761L,
author = {{Lendl}, Monika and
{Bouchy}, Fran{\c{c}}ois and
{Gill}, Samuel and
{Nielsen}, Louise D. and
{Turner}, Oliver and
{Stassun}, Keivan and
{Acton}, Jack S. and
{Anderson}, David R. Edward,
et al},
title = "{TOI-222: a single-transit TESS candidate revealed to be a 34-d eclipsing binary with CORALIE, EulerCam, and NGTS}",
journal = {\mnras},
year = 2020,
month = feb,
volume = {492},
number = {2},
pages = {1761-1769},
doi = {10.1093/mnras/stz3545},
archivePrefix = {arXiv},
eprint = {1910.05050},
primaryClass = {astro-ph.EP},
adsurl = {https://ui.adsabs.harvard.edu/abs/2020MNRAS.492.1761L},
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file conan-exoplanet-3.3.11.tar.gz.
File metadata
- Download URL: conan-exoplanet-3.3.11.tar.gz
- Upload date:
- Size: 209.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b2f310f9af599f0474918576f76c38c1987f7a91254e822f3e706bc6c2da1bf
|
|
| MD5 |
a2ffc73939035ff2c17aa836d964ff7f
|
|
| BLAKE2b-256 |
104495dc61fb0dce132b392a4f8a5fa9aae57babf309500a0b98156f325109ee
|
File details
Details for the file conan_exoplanet-3.3.11-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: conan_exoplanet-3.3.11-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66b0494e57bc5039ebacb3616e78700ba63aeab65ec934240aca0497421413bf
|
|
| MD5 |
abfe482047b15a2d57e8201d997f78ab
|
|
| BLAKE2b-256 |
3a9d7f1033dc5f411cfd0d06be8c2142fec55ae3809baec07e85ae6e623022b4
|
File details
Details for the file conan_exoplanet-3.3.11-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: conan_exoplanet-3.3.11-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9455b1a338f9ca45a9832d063fdd7cdb369c39e04d8436b952758d32377bcd42
|
|
| MD5 |
44bd216e7d58606e253d1aa483a788cb
|
|
| BLAKE2b-256 |
8ee7ec99b2e152b142a55783c0bb73d484b8d3351bd90b202862d5d1a98c23d1
|