itacart.geodesy.meridian_arc
- itacart.geodesy.meridian_arc(lat_deg)[source]
Return the meridian arc length from the equator to a latitude.
Evaluates Eq. (2) of the paper through its series expansion in the third flattening: five terms, closed form, no iteration. The function is odd, so southern latitudes return negative lengths, and it is the
ycomponent ofgeodetic_to_sinusoidal().meridian_arc_quadrature()evaluates the same integral by composite Simpson quadrature and agrees to a few nanometres. It exists as an independent check on this one; this is the implementation on the hot path.- Parameters:
lat_deg (
float) – Geodetic latitude, in degrees.- Return type:
- Returns:
Signed arc length in metres,
0at the equator and+-10 001 965.7293 mat the poles.- Raises:
DomainError – If
lat_degis not finite or lies outside[-90, 90].
Example
>>> round(meridian_arc(90.0), 4) 10001965.7293 >>> meridian_arc(0.0) 0.0