- craftutils.observation.epoch.SkyCoord.position_angle(other)
Computes the on-sky position angle (East of North) between this SkyCoord and another.
Parameters¶
- other|SkyCoord|
The other coordinate to compute the position angle to. It is treated as the “head” of the vector of the position angle.
Returns¶
- pa~astropy.coordinates.Angle
The (positive) position angle of the vector pointing from
selftoother. If eitherselforothercontain arrays, this will be an array following the appropriate numpy broadcasting rules.
Examples¶
>>> c1 = SkyCoord(0*u.deg, 0*u.deg) >>> c2 = SkyCoord(1*u.deg, 0*u.deg) >>> c1.position_angle(c2).degree 90.0 >>> c3 = SkyCoord(1*u.deg, 1*u.deg) >>> c1.position_angle(c3).degree 44.995636455344844