Python package to fit relative astrometry with background star motion tracks.
Project description
backtracks
Python package to fit relative astrometry with background star motion tracks.
Written by Gilles Otten (@gotten), William Balmer (@wbalmer), and Tomas Stolker (@tomasstolker).
eDR3 Distance prior summary file from this source, published in Bailer-Jones+2021.
Current example (HD131399Ab) uses data from Wagner+22 and Nielsen+17. Thank you to Kevin Wagner for providing the latest astrometry!
Log-likelihood borrowed heavily from orbitize!
(BSD 3-clause).
Currently requires and python >3.9,<3.11 and astropy
, corner
, dynesty
, matplotlib
, numpy
, novas
, novas_de405
, orbitize
and their dependencies. Note that novas
is not supported on Windows (I use WSL for Windows to develop the code!). You can create a working environment using conda+pip via a few lines of code:
conda create python=3.11 -n backtracks
conda activate backtracks
conda install pip
pip install backtracks
Then, download the test data+script and test your installation (takes a while to sample fully):
wget https://raw.githubusercontent.com/wbalmer/backtrack/main/tests/scorpions1b_orbitizelike.csv
wget https://raw.githubusercontent.com/wbalmer/backtrack/main/tests/hd131339a.py
python hd131339a.py
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 backtracks
conda activate backtracks
conda install pip
git clone https://github.com/wbalmer/backtrack.git
cd backtrack
pip install -e .
Then, test your installation (takes a while to sample fully):
cd tests
python hd131399a.py
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
Hashes for backtracks-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eadfb3a771a36a457c416d3653c845ea6acfa80f1580c1ac30c7ad1f604d3780 |
|
MD5 | 2c99025682ab95fc590a94be0fb3734f |
|
BLAKE2b-256 | 8c8a97107993cc21402a99bf679f5f60ed0f16c4659c8be0f5a2818bfb64a733 |