Adaptation of the Bayesian fitting code from Sesar et al. (2017)
Original Sesar et al. paper: https://ui.adsabs.harvard.edu/#abs/2017ApJ...838..107S/abstract
https://www.gnu.org/software/gsl/
On ubuntu may already be installed in /usr/include/gsl
See command in README file and change paths accordingly:
SFD Dust maps are in maps/ subdirectory
Add the following to .bash_profile (or corresponding python env init file:)
export DUST_DIR="/PATH/TO/bayesian_pl_fitting"
Don't need to add the /maps/ part at the end.
-
This version currently only running in Python 2.7
-
Can be run from command line as
./fit_PLRs.py
or in ipython with
ipython --pylab
run -i ./fit_PLRs.py