sphdist#

caput.astro.coordinates.spherical.sphdist(long1, lat1, long2, lat2)[source]#

Return the angular distance between two coordinates on the sphere.

Parameters:
long1, lat1Angle

longitude and latitude of the first coordinate. Each should be the same length; can be one or longer.

long2, lat2Angle

longitude and latitude of the second coordinate. Each should be the same length. If long1, lat1 have length longer than 1, long2 and lat2 should either have the same length as coordinate 1 or length 1.

Returns:
angleAngle

Angle between the two coordinates.