wbalmer / backtracks

Python package to fit relative astrometry with background star motion tracks.
https://backtracks.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
6 stars 2 forks source link

Split host RV prior and allow RV prior override. #43

Closed gotten closed 10 months ago

gotten commented 10 months ago

This pull request makes the RV a separate prior that is either normal (filled by the gaia query or by the user) or uniform (filled by the user).

Two new keywords: rv_host_method and rv_host_params.

If rv_host_method is not set, RVs are retrieved from Gaia DR3. If the Gaia RVs are not valid float or ints an Exception is raised to force the user to use the keywords to set a manual prior. If rv_host_method="normal" rv_host_params=(10,0.5) will set a normal prior of 10+-0.5 km/s If rv_host_method="uniform" rv_host_params=(-10,10) will set a uniform prior with lower and upper bounds -10 and 10 km/s

Many bright stars (G<3) are not in Gaia, so full freedom of host star priors is probably better in the future.

Closes #42.