Skip to content

Instantly share code, notes, and snippets.

View TheBryanMac's full-sized avatar

Bryan McIntosh TheBryanMac

  • Ontario, Canada
View GitHub Profile
@perrygeo
perrygeo / zonal_stats.py
Last active March 22, 2023 05:01
Python implementation of zonal statistics function. Optimized for dense polygon layers, uses numpy, GDAL and OGR to rival the speed of starspan.
"""
Zonal Statistics
Vector-Raster Analysis
Copyright 2013 Matthew Perry
Usage:
zonal_stats.py VECTOR RASTER
zonal_stats.py -h | --help
zonal_stats.py --version