Skip to content

Instantly share code, notes, and snippets.

View philippkraft's full-sized avatar

Philipp Kraft philippkraft

View GitHub Profile
@philippkraft
philippkraft / smoothing_function.ipynb
Last active March 6, 2019 10:33
Discussion of an overflow smoothing function as introduced by Clark et al 2008
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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