itacart.index.is_valid_index

itacart.index.is_valid_index(index)[source]

Whether the string parses and every code is legal for its level.

Structural validity only. It does not check whether the addressed cells actually exist in the ITACaRT domain; for that see itacart.boundary.is_valid_cell(), which also applies the western-quadrant X = 0 rule.

Parameters:

index (str) – Candidate index string.

Return type:

bool

Returns:

True if the string is syntactically well formed.