Documentation / @interstellar-tools/equations / primeVerticalRadiusOfCurvature
Function: primeVerticalRadiusOfCurvature()
ts
function primeVerticalRadiusOfCurvature(
phi: Radians,
a: number,
eSquared: number
): number;Defined in: cartography/prime-vertical-radius-of-curvature.ts:64
Compute the prime vertical radius of curvature
Where:
is the geodetic latitude (rad) is the equatorial radius (m) and the first eccentricity squared
Units
- Inputs:
phiin radians,ain m,eSquareddimensionless. - Output:
in m.
Notes
- The radius of the curve the surface makes east–west, at right angles to the meridian. A step
in longitude covers along the parallel. is also the distance along the normal from the surface to the rotation axis; geodeticToBodyFixed uses it. - It runs from
at the equator to at the poles, and is never smaller than the meridional radius meridionalRadiusOfCurvature.
In practiceApollo 11, on Pad 39A
97.80 km
One degree of longitude at 28.608° N on WGS 84, from N = 6 383.0 km
At the equator, a degree of longitude is 111.32 km. A degree of latitude at the pad is 110.83 km (see meridionalRadiusOfCurvature).
ts
const N = primeVerticalRadiusOfCurvature(
toRad(28.608422),
6_378_137,
0.00669437999014
);
N * Math.cos(toRad(28.608422)) * (Math.PI / 180); // ≈ 97 804 mParameters
| Parameter | Type | Description |
|---|---|---|
phi | Radians | Geodetic latitude |
a | number | Equatorial radius |
eSquared | number | First eccentricity squared |
Returns
number
The prime vertical radius of curvature
Throws
- If any input is not a finite number.
- If
phiis outside [-π/2, π/2],a <= 0, oreSquaredis outside [0, 1).
Example
ts
import type { Radians } from '@interstellar-tools/types';
// At the poles, N = a / √(1 − e²)
primeVerticalRadiusOfCurvature(
(Math.PI / 2) as Radians,
6_378_137,
0.00669437999014
);
// ≈ 6 399 594 mSee
- meridionalRadiusOfCurvature
- geodeticToBodyFixed
- https://en.wikipedia.org/wiki/Earth_radius#Prime_vertical Prime vertical radius of curvature