5.8.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. Better things are available for this, like gdal.

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:

float