transitleastsquares


Nametransitleastsquares JSON
Version 1.32 PyPI version JSON
download
home_pagehttps://github.com/hippke/tls
SummaryAn optimized transit-fitting algorithm to search for periodic transits of small planets
upload_time2024-04-05 08:30:56
maintainerNone
docs_urlNone
authorMichael Hippke
requires_pythonNone
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            ![Logo](https://raw.githubusercontent.com/hippke/tls/master/docs/source/logo.png)
### An optimized transit-fitting algorithm to search for periodic transits of small planets
[![Image](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/hippke/tls/blob/master/LICENSE)
[![Image](https://img.shields.io/badge/Python-2.7%20%26%203.5%2B-blue.svg)](https://pypi.org/project/transitleastsquares/)
[![Image](https://img.shields.io/badge/pip%20install-transitleastsquares-blue.svg)](https://pypi.org/project/transitleastsquares/)
[![Image](https://img.shields.io/badge/documentation-%E2%9C%93-blue.svg)](https://transitleastsquares.readthedocs.io/en/latest/index.html)
[![Image](https://img.shields.io/badge/tutorials-%E2%9C%93-blue.svg)](https://github.com/hippke/tls/tree/master/tutorials)
[![Image](https://img.shields.io/badge/arXiv-1901.02015-blue.svg)](https://arxiv.org/abs/1901.02015)


## Motivation
We present a new method to detect planetary transits from time-series photometry, the *Transit Least Squares* (TLS) algorithm. While the commonly used Box Least Squares [(BLS, Kovács et al. 2002)](http://adsabs.harvard.edu/abs/2002A%26A...391..369K) algorithm searches for rectangular signals in stellar light curves, *TLS* searches for transit-like features with stellar limb-darkening and including the effects of planetary ingress and egress. Moreover, *TLS* analyses the entire, unbinned data of the phase-folded light curve. These improvements yield a ~10 % higher detection efficiency (and similar false alarm rates) compared to BLS. The higher detection efficiency of our freely available Python implementation comes at the cost of higher computational load, which we partly compensate by applying an optimized period sampling and transit duration sampling, constrained to the physically plausible range. A typical Kepler K2 light curve, worth of 90 d of observations at a cadence of 30 min, can be searched with *TLS* in 10 seconds real time on a standard laptop computer, just as with BLS.

![image](https://raw.githubusercontent.com/hippke/tls/master/docs/source/frontpage_rescaled.png)

## Installation

TLS can be installed conveniently using: `pip install transitleastsquares`

If you have multiple versions of Python and pip on your machine, try: `pip3 install transitleastsquares`

The latest version can be pulled from github::
```
git clone https://github.com/hippke/tls.git
cd tls
python setup.py install
```

If the command `python` does not point to Python 3 on your machine, you can try to replace the last line with `python3 setup.py install`. If you don't have `git` on your machine, you can find installation instructions [here](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git). TLS also runs on Python 2, but without multi-threading.


Dependencies:
Python 3,
[NumPy](http://www.numpy.org/),
[numba](http://numba.pydata.org/),
[batman-package](https://www.cfa.harvard.edu/~lkreidberg/batman/),
[tqdm](https://github.com/tqdm/tqdm),
optional:
[argparse](https://docs.python.org/3/library/argparse.html) (for the command line version),
[astroquery](https://astroquery.readthedocs.io/en/latest/) (for LD and stellar density priors from Kepler K1, K2, and TESS).

If you have trouble installing, please [open an issue](https://github.com/hippke/tls/issues).


## Getting started
Here is a short animation of a real search for planets in Kepler K2 data. For more examples, have a look at the [tutorials](https://github.com/hippke/tls/tree/master/tutorials) and the [documentation](https://transitleastsquares.readthedocs.io/en/latest/index.html).

![image](https://raw.githubusercontent.com/hippke/tls/master/docs/source/animation.gif)

## Attribution
Please cite [Hippke & Heller (2019, A&A 623, A39)](https://ui.adsabs.harvard.edu/#abs/2019A&A...623A..39H/abstract) if you find this code useful in your research. The BibTeX entry for the paper is:

```
@ARTICLE{2019A&A...623A..39H,
       author = {{Hippke}, Michael and {Heller}, Ren{\'e}},
        title = "{Optimized transit detection algorithm to search for periodic transits of small planets}",
      journal = {\aap},
         year = "2019",
        month = "Mar",
       volume = {623},
          eid = {A39},
        pages = {A39},
          doi = {10.1051/0004-6361/201834672},
archivePrefix = {arXiv},
       eprint = {1901.02015},
 primaryClass = {astro-ph.EP},
       adsurl = {https://ui.adsabs.harvard.edu/\#abs/2019A&A...623A..39H},
      adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}
```

## Contributing Code, Bugfixes, or Feedback
We welcome and encourage contributions. If you have any trouble, [open an issue](https://github.com/hippke/tls/issues).

Copyright 2019 Michael Hippke & René Heller.



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hippke/tls",
    "name": "transitleastsquares",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "Michael Hippke",
    "author_email": "michael@hippke.org",
    "download_url": "https://files.pythonhosted.org/packages/64/48/aa706b72386a1e75fad52ecae2f168238b882557cc323a6996466ee24f93/transitleastsquares-1.32.tar.gz",
    "platform": null,
    "description": "![Logo](https://raw.githubusercontent.com/hippke/tls/master/docs/source/logo.png)\n### An optimized transit-fitting algorithm to search for periodic transits of small planets\n[![Image](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/hippke/tls/blob/master/LICENSE)\n[![Image](https://img.shields.io/badge/Python-2.7%20%26%203.5%2B-blue.svg)](https://pypi.org/project/transitleastsquares/)\n[![Image](https://img.shields.io/badge/pip%20install-transitleastsquares-blue.svg)](https://pypi.org/project/transitleastsquares/)\n[![Image](https://img.shields.io/badge/documentation-%E2%9C%93-blue.svg)](https://transitleastsquares.readthedocs.io/en/latest/index.html)\n[![Image](https://img.shields.io/badge/tutorials-%E2%9C%93-blue.svg)](https://github.com/hippke/tls/tree/master/tutorials)\n[![Image](https://img.shields.io/badge/arXiv-1901.02015-blue.svg)](https://arxiv.org/abs/1901.02015)\n\n\n## Motivation\nWe present a new method to detect planetary transits from time-series photometry, the *Transit Least Squares* (TLS) algorithm. While the commonly used Box Least Squares [(BLS, Kov\u00e1cs et al. 2002)](http://adsabs.harvard.edu/abs/2002A%26A...391..369K) algorithm searches for rectangular signals in stellar light curves, *TLS* searches for transit-like features with stellar limb-darkening and including the effects of planetary ingress and egress. Moreover, *TLS* analyses the entire, unbinned data of the phase-folded light curve. These improvements yield a ~10 % higher detection efficiency (and similar false alarm rates) compared to BLS. The higher detection efficiency of our freely available Python implementation comes at the cost of higher computational load, which we partly compensate by applying an optimized period sampling and transit duration sampling, constrained to the physically plausible range. A typical Kepler K2 light curve, worth of 90 d of observations at a cadence of 30 min, can be searched with *TLS* in 10 seconds real time on a standard laptop computer, just as with BLS.\n\n![image](https://raw.githubusercontent.com/hippke/tls/master/docs/source/frontpage_rescaled.png)\n\n## Installation\n\nTLS can be installed conveniently using: `pip install transitleastsquares`\n\nIf you have multiple versions of Python and pip on your machine, try: `pip3 install transitleastsquares`\n\nThe latest version can be pulled from github::\n```\ngit clone https://github.com/hippke/tls.git\ncd tls\npython setup.py install\n```\n\nIf the command `python` does not point to Python 3 on your machine, you can try to replace the last line with `python3 setup.py install`. If you don't have `git` on your machine, you can find installation instructions [here](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git). TLS also runs on Python 2, but without multi-threading.\n\n\nDependencies:\nPython 3,\n[NumPy](http://www.numpy.org/),\n[numba](http://numba.pydata.org/),\n[batman-package](https://www.cfa.harvard.edu/~lkreidberg/batman/),\n[tqdm](https://github.com/tqdm/tqdm),\noptional:\n[argparse](https://docs.python.org/3/library/argparse.html) (for the command line version),\n[astroquery](https://astroquery.readthedocs.io/en/latest/) (for LD and stellar density priors from Kepler K1, K2, and TESS).\n\nIf you have trouble installing, please [open an issue](https://github.com/hippke/tls/issues).\n\n\n## Getting started\nHere is a short animation of a real search for planets in Kepler K2 data. For more examples, have a look at the [tutorials](https://github.com/hippke/tls/tree/master/tutorials) and the [documentation](https://transitleastsquares.readthedocs.io/en/latest/index.html).\n\n![image](https://raw.githubusercontent.com/hippke/tls/master/docs/source/animation.gif)\n\n## Attribution\nPlease cite [Hippke & Heller (2019, A&A 623, A39)](https://ui.adsabs.harvard.edu/#abs/2019A&A...623A..39H/abstract) if you find this code useful in your research. The BibTeX entry for the paper is:\n\n```\n@ARTICLE{2019A&A...623A..39H,\n       author = {{Hippke}, Michael and {Heller}, Ren{\\'e}},\n        title = \"{Optimized transit detection algorithm to search for periodic transits of small planets}\",\n      journal = {\\aap},\n         year = \"2019\",\n        month = \"Mar\",\n       volume = {623},\n          eid = {A39},\n        pages = {A39},\n          doi = {10.1051/0004-6361/201834672},\narchivePrefix = {arXiv},\n       eprint = {1901.02015},\n primaryClass = {astro-ph.EP},\n       adsurl = {https://ui.adsabs.harvard.edu/\\#abs/2019A&A...623A..39H},\n      adsnote = {Provided by the SAO/NASA Astrophysics Data System}\n}\n```\n\n## Contributing Code, Bugfixes, or Feedback\nWe welcome and encourage contributions. If you have any trouble, [open an issue](https://github.com/hippke/tls/issues).\n\nCopyright 2019 Michael Hippke & Ren\u00e9 Heller.\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "An optimized transit-fitting algorithm to search for periodic transits of small planets",
    "version": "1.32",
    "project_urls": {
        "Homepage": "https://github.com/hippke/tls"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fa42549f128d69c62946fa49607e45dc2d6529a37d3b23a4a0b8290d1cafeef5",
                "md5": "9fa1ba2616ebc4e77171db1a1703da33",
                "sha256": "aa3d5e8cfb8e9407cad4a311335ae3099747e8f34a6e68308ed0a2ef608725c0"
            },
            "downloads": -1,
            "filename": "transitleastsquares-1.32-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9fa1ba2616ebc4e77171db1a1703da33",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 47543,
            "upload_time": "2024-04-05T08:30:54",
            "upload_time_iso_8601": "2024-04-05T08:30:54.360566Z",
            "url": "https://files.pythonhosted.org/packages/fa/42/549f128d69c62946fa49607e45dc2d6529a37d3b23a4a0b8290d1cafeef5/transitleastsquares-1.32-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6448aa706b72386a1e75fad52ecae2f168238b882557cc323a6996466ee24f93",
                "md5": "9c9788dd5c2e22bcb85b6a88d44e196e",
                "sha256": "844d03f48030327e47f83b9fd6226a6c8147195c4ce5b2b15813bb1cb1c74e6e"
            },
            "downloads": -1,
            "filename": "transitleastsquares-1.32.tar.gz",
            "has_sig": false,
            "md5_digest": "9c9788dd5c2e22bcb85b6a88d44e196e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 46271,
            "upload_time": "2024-04-05T08:30:56",
            "upload_time_iso_8601": "2024-04-05T08:30:56.645257Z",
            "url": "https://files.pythonhosted.org/packages/64/48/aa706b72386a1e75fad52ecae2f168238b882557cc323a6996466ee24f93/transitleastsquares-1.32.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-05 08:30:56",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hippke",
    "github_project": "tls",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "lcname": "transitleastsquares"
}
        
Elapsed time: 0.20702s