galpy.util.coords.custom_to_pmrapmdec

galpy.util.coords.custom_to_pmrapmdec(pmphi1, pmphi2, phi1, phi2, T=None, degree=False)[source]

Rotate proper motions in a custom set of sky coordinates (phi1,phi2) to (ra,dec) given the rotation matrix T for (ra,dec) -> (phi1,phi2)

Parameters:
  • pmphi1 (float or numpy.ndarray) – Proper motion in phi1 (multiplied with cos(phi2)) [mas/yr].

  • pmphi2 (float or numpy.ndarray) – Proper motion in phi2 [mas/yr].

  • phi1 (float or numpy.ndarray) – Custom sky coord.

  • phi2 (float or numpy.ndarray) – Custom sky coord.

  • T (numpy.ndarray, optional) – Matrix defining the transformation: new_rect= T dot old_rect, where old_rect = [cos(dec)cos(ra),cos(dec)sin(ra),sin(dec)] and similar for new_rect.

  • degree (bool, optional) – If True, phi1 and phi2 are given in degrees (default=False).

Returns:

(pmra x cos(dec), dec) for vector inputs [:,2]

Return type:

tuple

Notes

  • 2019-03-02 - Written - Nathaniel Starkman (UofT)