angular_separation¶
- astropy.coordinates.angular_separation(lon1, lat1, lon2, lat2)[source]¶
Angular separation between two points on a sphere.
- Parameters:
- Returns:
- angular separation
Quantity
[:ref: ‘angle’] orpython:float
Type depends on input;
Quantity
in angular units, or float in radians.
- angular separation
Notes
The angular separation is calculated using the Vincenty formula [1], which is slightly more complex and computationally expensive than some alternatives, but is stable at at all distances, including the poles and antipodes.