5.7.1.5. 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 flat Earth approximation.

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:

float, Distance between points.