itacart.geodesy.sinusoidal_to_geodetic
- itacart.geodesy.sinusoidal_to_geodetic(x_m, y_m, *, tol=NEWTON_TOL_RAD, max_iter=NEWTON_MAX_ITER)[source]
Invert the parallels-plane projection back to geodetic coordinates.
Recovers the latitude from
ythroughinverse_meridian_arc(), then dividesxby the radius of the parallel circle at that latitude to recover the longitude.- Parameters:
- Return type:
- Returns:
(lon_deg, lat_deg)in degrees.- Raises:
DomainError – If either argument is not finite, or
y_mlies beyond the meridian quadrant.ConvergenceError – Propagated from the Newton iteration.
Note
At a pole the parallel circle collapses to a point and every longitude projects to
x = 0, so longitude is not recoverable. The function returns0.0there by convention rather than raising: the pole is a legitimate position, only its longitude is undefined.