Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bennyistanto/0d37731fdeb8118772227c8db514b3bd to your computer and use it in GitHub Desktop.
Save bennyistanto/0d37731fdeb8118772227c8db514b3bd to your computer and use it in GitHub Desktop.
Zonal Statistics with Categorical
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

This process required GeoTIFFs in a folder as input and shapefile as boundary zone. This utilize rasterstats library, and the process and output are similar to ArcPy Zonal Histogram (categorical=True), if the value is False then the result will produce simlar output like ArcPy Zonal Statistics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment