galpy.util.coords.cov_vxyz_to_galcencyl

galpy.util.coords.cov_vxyz_to_galcencyl(cov_vxyz, phi, Xsun=1.0, Zsun=0.0)[source]

Propagate uncertainties in vxyz to galactocentric cylindrical coordinates

Parameters:
  • cov_vxyz (numpy.ndarray) – Uncertainty covariance in U,V,W [3,3] or [:,3,3]

  • phi (float or numpy.ndarray) – Angular position of star in Galactocentric cylindrical coords [rad]

  • 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(vR,vT,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)