galpy.orbit.Orbit.align_to_orbit

Orbit.align_to_orbit(center_phi1=180.0)[source]

Return a sky rotation matrix aligned with this orbit’s orbital plane.

The matrix is also stashed on this Orbit as self._custom_transform so that self.phi1(), self.phi2(), self.pmphi1(), self.pmphi2() (and self.plot(d1='phi1', d2='phi2')) work without T=.

Parameters:

center_phi1 (float, optional) – Longitude at which to place the orbit in the custom frame, in degrees. Default 180.0.

Returns:

3x3 rotation matrix.

Return type:

numpy.ndarray

Notes

  • 2026-04-23: Written by Bovy (UofT).