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:
- Returns:
Resolution level, 0 to 13.
- Raises:
InvalidIndexError – If the index is malformed.
ResolutionError – If terminal cells sit at differing resolutions.