Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nunorc/exotx
exoplanets transit explorer Python package
https://github.com/nunorc/exotx
astronomy astrophysics exoplanets experimental python
Last synced: 16 days ago
JSON representation
exoplanets transit explorer Python package
- Host: GitHub
- URL: https://github.com/nunorc/exotx
- Owner: nunorc
- License: mit
- Created: 2021-03-23T19:00:09.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-22T16:22:19.000Z (over 3 years ago)
- Last Synced: 2024-11-05T20:51:59.196Z (2 months ago)
- Topics: astronomy, astrophysics, exoplanets, experimental, python
- Language: Python
- Homepage: https://nunorc.github.io/exotx
- Size: 2.94 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
Exoplanets Transit Explorer
===========================.. warning:: This package is experimental, and under development.
An experimental package for quickly exploring exoplanets transits and associated resources.
Quick Start
===========Installation
------------Install package from the git repository:
.. code-block:: bash
$ pip install git+https://github.com/nunorc/exotx@master
Using light curves
------------------Retrieve and process some light curves.
.. code-block:: python
import exotx
# define the arguments for the object of interest
args = exotx.Args(target='kepler-210', quarters=[1, 2], cadence='long', pdc=True)# retrieve the associated light curves
lcs = exotx.retrieve(args)# detrend and normalize all light curves
lcs = [exotx.detrend(i) for i in lcs]
lcs = [exotx.normalize(i) for i in lcs]# combine into a single light curve
lc = exotx.combine(lcs)# plot the final result
exotx.plot_lc(lc)Yielding the following plot.
.. image:: https://nunorc.github.io/exotx/html/_static/lc_plot_1.png
Folding Light Curves
--------------------Folding a light curve:
.. code-block:: python
# define parameteres for a known planet
params = exotx.Params(p=2.4532, t0=134.092)# create a list of folds
folds = exotx.fold(lc, params)# plot the folded light curve
exotx.plot_folds(folds)Yielding the following plot.
.. image:: https://nunorc.github.io/exotx/html/_static/lc_plot_2.png
Acknowledgments
===============Thank you to the authors of the
`lightkurve `_,
`batman-package `_ ,
`emcee `_ ,
and upstream packages.Thank you to Susana Barros and Olivier Demangeon for the discussions that
helped improve this package.