geoid_inverse#
- pycraf.pathprof.geoid_inverse(lon1, lat1, lon2, lat2, eps=1e-12, maxiter=50)[source]#
Solve inverse Geodesics problem using Vincenty’s formulae.
Using an iterative approach, the distance and relative bearings between two points (P1, and P2) on the Geoid (Earth ellipsoid) are determined; see also Wikipedia.
- Parameters:
- lon1
Quantity
Geographic longitude of P1 [rad]
- lat1
Quantity
Geographic latitude of P1 [rad]
- lon2
Quantity
Geographic longitude of P2 [rad]
- lat2
Quantity
Geographic latitude of P2 [rad]
- eps
float
, optional Accuracy of calculation (default: 1.e-12)
- maxiter
int
, optional Maximum number of iterations to perform (default: 50)
- lon1
- Returns:
Notes
The iteration will stop if either the desired accuracy (
eps
) is reached or the number of iterations exceedsmaxiter
.