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 y through inverse_meridian_arc(), then divides x by the radius of the parallel circle at that latitude to recover the longitude.

Parameters:
  • x_m (float) – Abscissa on the projection plane, in metres.

  • y_m (float) – Ordinate on the projection plane, in metres.

  • tol (float, default: NEWTON_TOL_RAD) – Newton tolerance, passed to the arc inversion, in radians.

  • max_iter (int, default: NEWTON_MAX_ITER) – Newton iteration cap.

Return type:

tuple[float, float]

Returns:

(lon_deg, lat_deg) in degrees.

Raises:
  • DomainError – If either argument is not finite, or y_m lies 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 returns 0.0 there by convention rather than raising: the pole is a legitimate position, only its longitude is undefined.