regionmask
JSON →regionmask is a Python library for creating masks of geographic regions for arbitrary grids, supporting both raster and vector data. It works with geopandas, xarray, shapely, and cartopy. Version 0.13.0, released regularly, requires Python >=3.10.