message_ix_models.tools.bilateralize.calculate_distance

Calculate distances between pairs of ports

Functions

calculate_distance([regional_specification])

Run distance calculation.

calculate_port_distances(df)

Read CSV file with port data and calculate distances between all port combinations.

haversine_distance(lat1, lon1, lat2, lon2)

Calculate the great circle distance between two points on the earth (specified in decimal degrees) using the Haversine formula.