tobac.analysis.spatial.haversine#
- tobac.analysis.spatial.haversine(lat1, lon1, lat2, lon2)#
Computes the Haversine distance in kilometers.
Calculates the Haversine distance between two points (based on implementation CIS cedadev/cis).
- Parameters:
lat1 (array of latitude, longitude) – First point or points as array in degrees.
lon1 (array of latitude, longitude) – First point or points as array in degrees.
lat2 (array of latitude, longitude) – Second point or points as array in degrees.
lon2 (array of latitude, longitude) – Second point or points as array in degrees.
- Returns:
arclen * RADIUS_EARTH – Array of Distance(s) between the two points(-arrays) in kilometers.
- Return type:
array