For basic usage, check the simple.py script. For other examples of rasterstats usage in the wild, see: Integrating with GeoPandas and Numpy Bioclimatic Envelope Modeling Agricultural zone climate summary