itacart.metrics.normalized_cell_area

itacart.metrics.normalized_cell_area(cell)[source]

Cell area divided by the nominal area of its resolution.

The second metric of section 2.2 of Kmoch et al. (2022), with one documented substitution. The paper divides each cell’s area by the mean area of all cells at the same resolution; that mean is not computable here, because resolution 1 alone holds about four million cells and every finer level multiplies that. The denominator used instead is itacart.resolutions.nominal_cell_area(), the area the resolution table assigns to the level.

The substitution is safe to state and unsafe to leave unstated. It is safe because the sinusoidal plane is equal-area by construction, so every unclipped cell has exactly the nominal area and scores exactly 1.0 – against plus or minus 50 percent for H3 and S2, whose normalized area has a standard deviation of 0.13 and 0.15 in the paper. It has to be stated because it is a different denominator, and a claim that names its own substitution is worth more than one that hides it.

The exceptions are the boundary families, and they are large. Enumerated over all four quadrants at resolution 1: 4000 trapezoids range from 0.032263 to 2.067292, and 4004 triangles from 0.121394 to 1.0, the minimum of the latter being the four polar cap cells.

Parameters:

cell (str) – Compositional index string.

Return type:

float | list[float]

Returns:

The ratio for a single terminal cell, or a positionally aligned list when the index holds several.

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.