regionmask.Regions.__getitem__

Regions.__getitem__(key)

subset of Regions or Region

Parameters:
key(list of) int or string

Key can be a mixed (list of) number, abbrev or name of the defined regions. If a list is given returns a subset of all regions, if a single element is given returns this region.

Returns:
selectionRegions or _OneRegion

If a list is given returns a subset of all regions, if a single element is given returns this region.