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 :ringed_planet: from contaminant sources :dizzy: :star:
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 Distributions
Hashes for backtracks-0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 361a5a7b0a6c1f3efd9989b0942c49ac27a7b11a553f4b72b36a2cf10d72c628 |
|
MD5 | 586f09a1993b600f4c06ce2cefc3f659 |
|
BLAKE2b-256 | 26cd980d315ce052511353b3139dbb28a98cda4d3b032518ec5a2d1d2cfc1204 |
Hashes for backtracks-0.4.1-1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81ba7a24f8e700889eb265093d8ddfc3e304191a4b038401ad2c5cdacc935a6a |
|
MD5 | 73c520478acfc0ae6b7c1605b0d3284e |
|
BLAKE2b-256 | de238f3ef9b2ad36e8752210b35ee03a54910326ffc65c48e9cbf37a77cfa697 |