5.2.8.1.4. eqcorrscan.utils.mag_calc.dist_calc¶
- eqcorrscan.utils.mag_calc.dist_calc(loc1, loc2)[source]¶
Function to calculate the distance in km between two points.
Uses the haversine formula to calculate great circle distance at the Earth’s surface, then uses trig to include depth.
- Parameters:
loc1 (tuple) – Tuple of lat, lon, depth (in decimal degrees and km)
loc2 (tuple) – Tuple of lat, lon, depth (in decimal degrees and km)
- Returns:
Distance between points in km.
- Return type: