itacart.resolutions.get_resolution

itacart.resolutions.get_resolution(cell)[source]

Return the resolution level of a cell index.

For a compositional index holding several cells, every terminal cell must sit at the same level; otherwise the index is mixed-resolution and the caller should use itacart.index.decompose() first.

Parameters:

cell (str) – Compositional index string.

Return type:

int

Returns:

Resolution level, 0 to 13.

Raises: