itacart.cells.sinusoidal_to_cell

itacart.cells.sinusoidal_to_cell(x, y, resolution)[source]

Address a cell from projection-plane coordinates.

Skips the forward projection; useful when coordinates are already on the plane, as in bulk cell filling. The boundary screen still runs, so it inverts the position back to geodetic first – the antemeridian is a meridian, not a plane coordinate, and cannot be tested on x alone once the parallel has been scaled by cos(phi).

Parameters:
  • x (float) – Easting in metres on the sinusoidal plane.

  • y (float) – Northing in metres on the sinusoidal plane.

  • resolution (int) – Target resolution level, 1 to 13.

Return type:

str

Returns:

The atomic compositional index of the containing cell. Inside the cell that holds a pole at resolution 10, at resolutions 11 and 12, it can be a spelling that names no cell, which itacart.boundary.is_valid_cell() denies (a known limitation; see the module’s notes).

Raises: