craftutils.observation.epoch.SkyCoord.separation(other)

Computes on-sky separation between this coordinate and another.

Note

If the other coordinate 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 that self.separation(other) and other.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 other coordinate.

Notes

The separation is calculated using the Vincenty formula, which is stable at all locations, including poles and antipodes 1.

1

https://en.wikipedia.org/wiki/Great-circle_distance