message_ix_models.tools.bilateralize.calculate_distance.haversine_distance
- message_ix_models.tools.bilateralize.calculate_distance.haversine_distance(lat1: float, lon1: float, lat2: float, lon2: float) float[source]
Calculate the great circle distance between two points on the earth (specified in decimal degrees) using the Haversine formula.
- Parameters:
lat1 – Latitude of the first point
lon1 – Longitude of the first point
lat2 – Latitude of the second point
lon2 – Longitude of the second point
- Outputs:
Distance in kilometers