itacart.geodesy.geodetic_to_sinusoidal

itacart.geodesy.geodetic_to_sinusoidal(lon_deg, lat_deg)[source]

Project a geodetic position onto the parallels plane.

Applies Eq. (1) to the abscissa and Eq. (2) to the ordinate. The result is signed: eastern longitudes give positive x, northern latitudes positive y. Quadrant mirroring, which is what keeps the ITACaRT index free of negative components, happens in itacart.cells, not here.

Parameters:
  • lon_deg (float) – Longitude in degrees, relative to the prime meridian.

  • lat_deg (float) – Geodetic latitude in degrees.

Return type:

tuple[float, float]

Returns:

(x, y) in metres.

Raises:

DomainError – If either argument is not finite, or lat_deg is outside [-90, 90].

Note

Longitude is not range-checked. Eq. (1) is linear in lambda and the addressable ITACaRT domain – including the antemeridian extension zones of section 3.2 – is decided in boundary. Enforcing [-180, 180] here would pre-empt that decision and reject the extension zones.

Example

>>> x, y = geodetic_to_sinusoidal(0.0, 0.0)
>>> (x, y)
(0.0, 0.0)