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 positivey. Quadrant mirroring, which is what keeps the ITACaRT index free of negative components, happens initacart.cells, not here.- Parameters:
- Return type:
- Returns:
(x, y)in metres.- Raises:
DomainError – If either argument is not finite, or
lat_degis 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)