itacart.boundary.is_equal_area_cell

itacart.boundary.is_equal_area_cell(cell)[source]

Whether a cell honours the nominal area of its resolution.

Asked of the construction, not of the shape name. A parallelogram and a prime-meridian triangle both carry the nominal area of their resolution, and a cell that has absorbed the border does not. The distinction is not the same as shape != "trapezoid": the polar cell is still named a triangle and still absorbs, and it holds an eighth of what its resolution promises. Comparing measured area against nominal would answer the same question through a tolerance; this answers it exactly.

The triangle qualifies: base twice height, halved, is l * l, the very area of the parallelogram it replaces. That is the “analogous properties to a parallelogram regarding base and height” the paper invokes to justify the choice, and it is why equal area survives the prime meridian. The exception the paper declares is the antemeridian, and the trapezoid is the only shape that meets it.

Parameters:

cell (str) – Compositional index string.

Return type:

bool | list[bool]

Returns:

A boolean for a single cell, or a positionally aligned list.

Raises:

NonExistentCellError – If any cell of the index names no cell. The predicate is the arbiter and the contract ends there: a spelling it denies is refused rather than answered for the cell it would otherwise fold onto.