pyrocko.orthodrome_ext

C-extension supporting pyrocko.orthodrome.

Functions

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).

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).

geodesic_direct_numpy

Solve direct geodesic problem on the WGS84 ellipsoid (array version).

geodesic_inverse_numpy

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.

Parameters:
  • alat (float) – Latitude of point 1.

  • alon (float) – Longitude of point 1.

  • blat (float) – Latitude of point 2.

  • blon (float) – Longitude of point 2.

azibazi_numpy()

Calculate azimuth and backazimuth directions of great circle path at pairs of points on spherical earth (array version).

Parameters:
distance_accurate50m()

Calculate great circle distance between pair of points on ellipsoidal earth.

Parameters:
  • alat (float) – Latitude of point 1

  • alon (float) – Longitude of point 1

  • blat (float) – Latitude of point 2

  • blon (float) – Longitude of point 2

distance_accurate50m_numpy()

Calculate great circle distance between pairs of points on ellipsoidal earth (array version).

Parameters:
geodesic_direct_numpy()

Solve direct geodesic problem on the WGS84 ellipsoid (array version).

Uses the algorithms of Karney (2013) from GeographicLib.

Parameters:
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:
Returns:

(dists, azis1, azis2), distances [m], azimuths at points 1 and forward azimuths at points 2 [deg].