regionmask.Regions.map_keys
- Regions.map_keys(key)
map from names and abbrevs of the regions to numbers
- Parameters:
key (str | list of str) – key can be a single or a list of abbreviation/ name of existing regions.
- Returns:
mapped_key (int or list of int)
Raises a KeyError if the key does not exist.