Lably
Skip to content

Great-circle navigation

  • 6 min read
  • 4 chapters

Related on Lably

Through Navigation, Great circle and Distance

Course

The great circle path may be found using spherical trigonometry; this is the spherical version of the inverse geodetic problem. If a navigator begins at P1 = (φ1,λ1) and plans to travel the great circle to a point at point P2 = (φ2,λ2) (see Fig. 1, φ is the latitude, positive northward, and λ is the longitude, positive eastward), the initial and final courses α1 and α2 are given by formulas for solving a spherical triangle

tan⁡α1=cos⁡ϕ2sin⁡λ12cos⁡ϕ1sin⁡ϕ2−sin⁡ϕ1cos⁡ϕ2cos⁡λ12,tan⁡α2=cos⁡ϕ1sin⁡λ12−cos⁡ϕ2sin⁡ϕ1+sin⁡ϕ2cos⁡ϕ1cos⁡λ12,

where λ12 = λ2 − λ1 and the quadrants of α1,α2 are determined by the signs of the numerator and denominator in the tangent formulas (e.g., using the atan2 function). The central angle between the two points, σ12, is given by

tan⁡σ12=(cos⁡ϕ1sin⁡ϕ2−sin⁡ϕ1cos⁡ϕ2cos⁡λ12)2+(cos⁡ϕ2sin⁡λ12)2sin⁡ϕ1sin⁡ϕ2+cos⁡ϕ1cos⁡ϕ2cos⁡λ12.

(The numerator of this formula contains the quantities that were used to determine tan α1.) The distance along the great circle will then be s12 = Rσ12, where R is the assumed radius of the Earth and σ12 is expressed in radians. Using the mean Earth radius, R = R1 ≈ 6,371 km (3,959 mi) yields results for the distance s12 which are within 1% of the geodesic length for the WGS84 ellipsoid; see Geodesics on an ellipsoid for details.

Relation to geocentric coordinate system

Detailed evaluation of the optimum direction is possible if the sea surface is approximated by a sphere surface. The standard computation places the ship at a geodetic latitude φs and geodetic longitude λs, where φ is considered positive if north of the equator, and where λ is considered positive if east of Greenwich. In the geocentric coordinate system centered at the center of the sphere, the Cartesian components are

s=R(cos⁡φscos⁡λscos⁡φssin⁡λssin⁡φs)

and the target position is

t=R(cos⁡φtcos⁡λtcos⁡φtsin⁡λtsin⁡φt).

The North Pole is at

N=R(001).

The minimum distance d is the distance along a great circle that runs through s and t. It is calculated in a plane that contains the sphere center and the great circle,

ds,t=Rθs,t

where θ is the angular distance of two points viewed from the center of the sphere, measured in radians. The cosine of the angle is calculated by the dot product of the two vectors

s⋅t=R2cos⁡θs,t=R2(sin⁡φssin⁡φt+cos⁡φscos⁡φtcos⁡(λt−λs))

If the ship steers straight to the North Pole, the travel distance is

ds,N=Rθs,N=R(π/2−φs)

If a ship starts at t and swims straight to the North Pole, the travel distance is

dt,N=Rθt,n=R(π/2−φt)

Derivation

The cosine formula of spherical trigonometry yields for the angle p between the great circles through s that point to the North on one hand and to t on the other hand

cos⁡θt,N=cos⁡θs,tcos⁡θs,N+sin⁡θs,tsin⁡θs,Ncos⁡p.
sin⁡φt=cos⁡θs,tsin⁡φs+sin⁡θs,tcos⁡φscos⁡p.

The sine formula yields

sin⁡psin⁡θt,N=sin⁡(λt−λs)sin⁡θs,t.

Solving this for sin θs,t and insertion in the previous formula gives an expression for the tangent of the position angle,

sin⁡φt=cos⁡θs,tsin⁡φs+sin⁡(λt−λs)sin⁡pcos⁡φtcos⁡φscos⁡p;
tan⁡p=sin⁡(λt−λs)cos⁡φtcos⁡φssin⁡φt−cos⁡θs,tsin⁡φs.

Further details

Because the brief derivation gives an angle between 0 and π which does not reveal the sign (west or east of north ?), a more explicit derivation is desirable which yields separately the sine and the cosine of p such that use of the correct branch of the inverse tangent allows to produce an angle in the full range -π≤p≤π.

The computation starts from a construction of the great circle between s and t. It lies in the plane that contains the sphere center, s and t and is constructed rotating s by the angle θs,t around an axis ω. The axis is perpendicular to the plane of the great circle and computed by the normalized vector cross product of the two positions:

ω=1R2sin⁡θs,ts×t=1sin⁡θs,t(cos⁡φssin⁡λssin⁡φt−sin⁡φscos⁡φtsin⁡λtsin⁡φscos⁡λtcos⁡φt−cos⁡φssin⁡φtcos⁡λscos⁡φscos⁡φtsin⁡(λt−λs)).

A right-handed tilted coordinate system with the center at the center of the sphere is given by the following three axes: the axis s, the axis

s⊥=ω×1Rs=1sin⁡θs,t(cos⁡φtcos⁡λt(sin2⁡φs+cos2⁡φssin2⁡λs)−cos⁡λs(sin⁡φscos⁡φssin⁡φt+cos2⁡φssin⁡λscos⁡φtsin⁡λt)cos⁡φtsin⁡λt(sin2⁡φs+cos2⁡φscos2⁡λs)−sin⁡λs(sin⁡φscos⁡φssin⁡φt+cos2⁡φscos⁡λscos⁡φtcos⁡λt)cos⁡φs[cos⁡φssin⁡φt−sin⁡φscos⁡φtcos⁡(λt−λs)])

and the axis ω. A position along the great circle is

s(θ)=cos⁡θs+sin⁡θs⊥,0≤θ≤2π.

The compass direction is given by inserting the two vectors s and s⊥ and computing the gradient of the vector with respect to θ at θ=0.

∂∂θs∣θ=0=s⊥.

The angle p is given by splitting this direction along two orthogonal directions in the plane tangential to the sphere at the point s. The two directions are given by the partial derivatives of s with respect to φ and with respect to λ, normalized to unit length:

uN=(−sin⁡φscos⁡λs−sin⁡φssin⁡λscos⁡φs);
uE=(−sin⁡λscos⁡λs0);
uN⋅s=uE⋅uN=0

uN points north and uE points east at the position s. The position angle p projects s⊥ into these two directions,

s⊥=cos⁡puN+sin⁡puE,

where the positive sign means the positive position angles are defined to be north over east. The values of the cosine and sine of p are computed by multiplying this equation on both sides with the two unit vectors,

cos⁡p=s⊥⋅uN=1sin⁡θs,t[cos⁡φssin⁡φt−sin⁡φscos⁡φtcos⁡(λt−λs)];
sin⁡p=s⊥⋅uE=1sin⁡θs,t[cos⁡φtsin⁡(λt−λs)].

Instead of inserting the convoluted expression of s⊥, the evaluation may employ that the triple product is invariant under a circular shift of the arguments:

cos⁡p=(ω×1Rs)⋅uN=ω⋅(1Rs×uN).

If atan2 is used to compute the value, one can reduce both expressions by division through cos φt and multiplication by sin θs,t, because these values are always positive and that operation does not change signs; then effectively

tan⁡p=sin⁡(λt−λs)cos⁡φstan⁡φt−sin⁡φscos⁡(λt−λs).

Sign in to keep reading

3 more chapters are free with a Lably account.

More in Physical geography