obspy.taup.taup_geo.calc_dist

calc_dist(source_latitude_in_deg, source_longitude_in_deg, receiver_latitude_in_deg, receiver_longitude_in_deg, radius_of_planet_in_km, flattening_of_planet)[source]

Given the source and receiver location, calculate distance.

Parameters:
  • source_latitude_in_deg (float) Source location latitude in degrees
  • source_longitude_in_deg (float) Source location longitude in degrees
  • receiver_latitude_in_deg (float) Receiver location latitude in degrees
  • receiver_longitude_in_deg (float) Receiver location longitude in degrees
  • radius_of_planet_in_km (float) Radius of the planet in km
  • flattening_of_planet Flattening of planet (0 for a sphere)
Returns:

distance_in_deg

Return type:

float