pyrocko.orthodrome_ext¶
C-extension supporting pyrocko.orthodrome.
Functions
Calculate azimuth and backazimuth directions of great circle path at a pair of points on spherical earth. |
|
Calculate azimuth and backazimuth directions of great circle path at pairs of points on spherical earth (array version). |
|
Calculate great circle distance between pair of points on ellipsoidal earth. |
|
Calculate great circle distance between pairs of points on ellipsoidal earth (array version). |
|
Solve direct geodesic problem on the WGS84 ellipsoid (array version). |
|
Solve inverse geodesic problem on the WGS84 ellipsoid (array version). |
- azibazi()¶
Calculate azimuth and backazimuth directions of great circle path at a pair of points on spherical earth.
- azibazi_numpy()¶
Calculate azimuth and backazimuth directions of great circle path at pairs of points on spherical earth (array version).
- Parameters:
alat (
numpy.ndarray) – Latitudes of points 1alon (
numpy.ndarray) – Longitudes of points 1blat (
numpy.ndarray) – Latitudes of points 2blon (
numpy.ndarray) – Longitudes of points 2
- distance_accurate50m()¶
Calculate great circle distance between pair of points on ellipsoidal earth.
- distance_accurate50m_numpy()¶
Calculate great circle distance between pairs of points on ellipsoidal earth (array version).
- Parameters:
alat (
numpy.ndarray) – Latitudes of points 1alon (
numpy.ndarray) – Longitudes of points 1blat (
numpy.ndarray) – Latitudes of points 2blon (
numpy.ndarray) – Longitudes of points 2
- geodesic_direct_numpy()¶
Solve direct geodesic problem on the WGS84 ellipsoid (array version).
Uses the algorithms of Karney (2013) from GeographicLib.
- Parameters:
lats1 (
numpy.ndarray) – Latitudes of start points [deg].lons1 (
numpy.ndarray) – Longitudes of start points [deg].azis1 (
numpy.ndarray) – Azimuths at start points [deg].dists (
numpy.ndarray) – Distances along the geodesics [m].
- Returns:
(lats2, lons2, azis2), latitudes, longitudes and forward azimuths at end points [deg].
- geodesic_inverse_numpy()¶
Solve inverse geodesic problem on the WGS84 ellipsoid (array version).
Uses the algorithms of Karney (2013) from GeographicLib.
- Parameters:
lats1 (
numpy.ndarray) – Latitudes of points 1 [deg].lons1 (
numpy.ndarray) – Longitudes of points 1 [deg].lats2 (
numpy.ndarray) – Latitudes of points 2 [deg].lons2 (
numpy.ndarray) – Longitudes of points 2 [deg].
- Returns:
(dists, azis1, azis2), distances [m], azimuths at points 1 and forward azimuths at points 2 [deg].