galpy.util.coords.cov_vxyz_to_galcenrect¶
- galpy.util.coords.cov_vxyz_to_galcenrect(cov_vxyz, Xsun=1.0, Zsun=0.0)[source]¶
Propagate uncertainties in vxyz to galactocentric rectangular coordinates
- Parameters:
cov_vxyz (numpy.ndarray) – Uncertainty covariance in U,V,W [3,3] or [:,3,3]
Xsun (float, optional) – Cylindrical distance to the GC (can be array of same length as R) [kpc]
Zsun (float, optional) – Sun’s height above the midplane (can be array of same length as R) [kpc]
- Returns:
cov(vx,vy,vz) [3,3] or [:,3,3]
- Return type:
numpy.ndarray
Notes
2018-03-22 - Written - Mackereth (LJMU)
2020-09-21- Moved to coords.py - Mackereth (UofT)