obspy.geodetics.base

Various geodetic utilities for ObsPy.

copyright:The ObsPy Development Team (devs@obspy.org)
license:GNU Lesser General Public License, Version 3 (https://www.gnu.org/copyleft/lesser.html)

Public Functions

calc_vincenty_inverse Vincenty Inverse Solution of Geodesics on the Ellipsoid.
degrees2kilometers Convenience function to convert (great circle) degrees to kilometers
gps2dist_azimuth Computes the distance between two geographic points on the WGS84
inside_geobounds Check whether an object is within a given latitude and/or longitude range, or within a given distance range from a reference geographic point.
kilometer2degrees Convenience function to convert kilometers to degrees assuming a perfectly
kilometers2degrees Convenience function to convert kilometers to degrees assuming a perfectly
locations2degrees Convenience function to calculate the great circle distance between two
mean_longitude Compute sample mean longitude, assuming longitude in degrees from -180 to 180.

Private Functions

Warning

Private functions are mainly for internal/developer use and their API might change without notice.

_check_latitude Check whether latitude is in the -90 to +90 range.
_isclose Equivalent of the math.isclose() method compatible with python 2.7.
_normalize_longitude Normalize longitude in the -180 to +180 range.