galpy.util.coords.custom_to_radec

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

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

Parameters:
  • 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:

(ra,dec) for vector inputs [:,2]

Return type:

tuple

Notes

  • 2018-10-23 - Written - Starkman (UofT)