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]

NAME:

cov_dvrpmllbb_to_vxyz

PURPOSE:

propagate distance, radial velocity, and proper motion uncertainties to Galactic coordinates

INPUT:

d - distance [kpc, as/mas for plx]

e_d - distance uncertainty [kpc, [as/mas] for plx]

e_vr - low velocity uncertainty [km/s]

pmll - proper motion in l (*cos(b)) [ [as/mas]/yr ]

pmbb - proper motion in b [ [as/mas]/yr ]

cov_pmllbb - uncertainty covariance for proper motion [pmll is pmll x cos(b)]

l - Galactic longitude

b - Galactic lattitude

KEYWORDS:

plx - if True, d is a parallax, and e_d is a parallax uncertainty

degree - if True, l and b are given in degree

OUTPUT:

cov(vx,vy,vz) [3,3] or [:,3,3]

HISTORY:

2010-04-12 - Written - Bovy (NYU)

2020-09-21 - Adapted for array input - Mackereth (UofT)