Python package to fit relative astrometry with background star motion tracks.
Project description
backtrack
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 ish and astropy
, corner
, dynesty
, matplotlib
, numpy
, novas
, novas_de405
, orbitize
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.9 -n backtrack
conda activate backtrack
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.9 -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 (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.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb7ba9af1d5d51cb51a283ac0b028596466f0aac5936e728ea11994d4df941bc |
|
MD5 | 4c2304c4a0021ad08dac3db560a3c54a |
|
BLAKE2b-256 | de6b372380dad2328e9bf66d38d1e900631c2c888de7393d8b513dd2ffaa254a |