geoid_direct#
- pycraf.pathprof.geoid_direct(lon1, lat1, bearing1, dist, eps=1e-12, maxiter=50)[source]#
Solve direct Geodesics problem using Vincenty’s formulae.
From starting point P1, given a start bearing, find point P2 located at a certain distance from P1 on the Geoid (Earth ellipsoid). As for the inverse problem, an iterative approach is used; see also Wikipedia.
- Parameters:
- lon1
Quantity Geographic longitude of P1 [rad]
- lat1
Quantity Geographic latitude of P1 [rad]
- bearing1
Quantity Start bearing [rad]
- distance
Quantity Distance between P1 and P2 [m]
- 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.