regionmask
create masks of geographical regions
regionmask is a Python module that:
contains a number of defined regions, including: countries (from Natural Earth), a landmask and regions used in the scientific literature (the Giorgi regions (1) and the SREX regions (2)).
can be used to create masks of the regions for arbitrary longitude and latitude grids with numpy (tutorial) and xarray (tutorial) rbitrary regions can be defined easily (tutorial)