- craftutils.observation.epoch.SkyCoord.separation(other)
Computes on-sky separation between this coordinate and another.
Note
If the
othercoordinate object is in a different frame, it is first transformed to the frame of this object. This can lead to unintuitive behavior if not accounted for. Particularly of note is thatself.separation(other)andother.separation(self)may not give the same answer in this case.For more on how to use this (and related) functionality, see the examples in astropy:/coordinates/matchsep.
Parameters¶
- other~astropy.coordinates.SkyCoord or ~astropy.coordinates.BaseCoordinateFrame
The coordinate to get the separation to.
Returns¶
- sep~astropy.coordinates.Angle
The on-sky separation between this and the
othercoordinate.
Notes¶
The separation is calculated using the Vincenty formula, which is stable at all locations, including poles and antipodes 1.