galpy.util.coords.cov_dvrpmllbb_to_vxyz¶
- galpy.util.coords.cov_dvrpmllbb_to_vxyz(d, e_d, e_vr, pmll, pmbb, cov_pmllbb, l, b, plx=False, degree=False)[source]¶
Propagate distance, radial velocity, and proper motion uncertainties to Galactic coordinates
- Parameters:
d (float or numpy.ndarray) – Distance [kpc, as/mas for plx]
e_d (float or numpy.ndarray) – Distance uncertainty [kpc, [as/mas] for plx]
e_vr (float or numpy.ndarray) – Low velocity uncertainty [km/s]
pmll (float or numpy.ndarray) – Proper motion in l (*cos(b)) [ [as/mas]/yr ]
pmbb (float or numpy.ndarray) – Proper motion in b [ [as/mas]/yr ]
cov_pmllbb (numpy.ndarray) – Uncertainty covariance for proper motion [pmll is pmll x cos(b)] [:,2,2]
l (float or numpy.ndarray) – Galactic longitude
b (float or numpy.ndarray) – Galactic latitude
plx (bool, optional) – If True, d is a parallax, and e_d is a parallax uncertainty (default=False)
degree (bool, optional) – If True, l and b are given in degree (default=False)
- Returns:
cov(vx,vy,vz) [3,3] or [:,3,3]
- Return type:
numpy.ndarray
Notes
2010-04-12 - Written - Bovy (NYU)
2020-09-21 - Adapted for array input - Mackereth (UofT)