Python package to fit relative astrometry with background star motion tracks.
Project description
backtracks
backtracks is a python package to fit relative astrometry with background helical motion tracks, to discern directly imaged planets from contaminant sources
The code is written and developed by Gilles Otten (@gotten), William Balmer (@wbalmer), and Tomas Stolker (@tomasstolker).
Documentation
Documentation can be found at http://backtracks.readthedocs.io.
Tutorial
A Jupyter notebook will show you how to use backtracks by reproducing the result in Nielsen et al. (2017) and Wagner et al. (2022) for the case of the former exoplanet candidate around HD 131339 A.
Details
eDR3 Distance prior summary file from Bailer-Jones et al. (2021).
Example of HD 131399Ab uses data from Wagner et al. (2022) and Nielsen et al. (2017). Thank you to Kevin Wagner for providing the latest astrometry!
Log-likelihood and some utility functions borrowed heavily from orbitize! (BSD 3-clause).
PPF of multivariate normal borrowed from pints (BSD 3-clause).
Installation
Currently requires and python 3.9-3.11 ish and astropy, corner, dynesty, matplotlib, numpy, novas, novas_de405, and their dependencies. Note that novas is not supported on Windows. You can create a working environment using conda+pip via a few lines of code:
$ conda create python=3.11 -n backtrack
$ conda activate backtrack
$ conda install pip
$ pip install backtracks
Or, to clone the repo and install in development mode (we recommend this, as the code is a work in progress and you can easily fix bugs you will likely encounter this way):
$ conda create python=3.11 -n backtrack
$ conda activate backtrack
$ conda install pip
$ git clone https://github.com/wbalmer/backtrack.git
$ cd backtrack
$ pip install -e .
Then, test your installation:
>>> from backtracks import 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 Distribution
File details
Details for the file backtracks-0.5.0.tar.gz
.
File metadata
- Download URL: backtracks-0.5.0.tar.gz
- Upload date:
- Size: 3.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b23ebc78ff6f9779d162d9051d27369da8b39fee89b6feb314531ad026c341c |
|
MD5 | 5b7a5df33768c21c767c71eac327519f |
|
BLAKE2b-256 | 5899cffa74ecc6b9719772ecd01c268e17725d977e36ccd228de3da8ab1bb3b4 |
File details
Details for the file backtracks-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: backtracks-0.5.0-py3-none-any.whl
- Upload date:
- Size: 358.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5d31f6e05ed9cd1692273bc8d8ffe9dfa963ed0b86aac8902426b111b02d092 |
|
MD5 | 75e656e46346e76b13ff455439d6324b |
|
BLAKE2b-256 | 009c4ce690e9a1c52eb943b6939f6731ef1ebaeebebf6639ed97e80712768d58 |