To carry out the transformation of coordinates from ICRS (International Celestial Reference System) to GalactoCentric coordinates (GCC) using Bayesian method for stars with full astrometric information in Gaia.
$$
\mathrm{\left[ \alpha,\delta,\mu_{\alpha}*\mu_{\delta},\varpi,~rv \right]{ICRS}\rightarrow \left[X,~Y,~Z,~V{x},~V_{y},~V_{z} \right]_{CGC}}
$$
To carry out the transformation from ICRS to CGC, it is necessary to have the following parameters: Position, proper motion in right ascension and declination, distance, radial velocity and the coefficients of correlation between parameters. However, in order to take into account the correlation coefficients between the parameters (given by Gaia) and the propagation of errors during the transformation, for stars with relative error in parallax (
-
Query object from Gaia EDR3 database (for this step we can use astroquery)
-
Sampling ICRS coordinates using multivariate gaussian distribution
- Get the covariance matrix using the correlations coefficients from Gaia.
- Get the distance (
$f < 0.1$ ):- Run 1000 Monte Carlo simulations
- Calculate the distance inverting the paralaxe (
$d=1/\varpi$ ) for each simulation - Get the distance as the mean of all the distances found in the simulations
- Get the distance (
$f > 0.1$ ) or ($f < 0$ ):- Use MCMC to estimate the posterior distribution of the distance (using priors and likelihood described in the paper)
- Extract distance from the posterior distribution
-
Transform the elements of the sampling using the Galactocentric "function" in astropy