Convenience function to calculate the great distance between two points on a spherical Earth.
This method uses the Vincenty formula in the special case of a spherical Earth. For more accurate values use the geodesic distance calculations of geopy (http://code.google.com/p/geopy/).
Parameters: | |
---|---|
Return type: | float |
Returns: | Distance in degrees as a floating point number. |
Example
>>> from obspy.core.util import locations2degrees
>>> locations2degrees(5, 5, 10, 10)
7.0397014191753815