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 assuming a perfectly spherical Earth.

gps2dist_azimuth

Computes the distance between two geographic points on the WGS84 ellipsoid and the forward and backward azimuths between these points.

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 spherical Earth.

kilometers2degrees

Convenience function to convert kilometers to degrees assuming a perfectly spherical Earth.

locations2degrees

Convenience function to calculate the great circle distance between two points on a spherical Earth.

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.

_normalize_longitude

Normalize longitude in the -180 to +180 range.