Skip to content

Instantly share code, notes, and snippets.

@jjsantos01
Created July 11, 2024 05:43
Show Gist options
  • Save jjsantos01/37dc153b866ad69c40de84fc0ccedf7e to your computer and use it in GitHub Desktop.
Save jjsantos01/37dc153b866ad69c40de84fc0ccedf7e to your computer and use it in GitHub Desktop.
This script calculates zonal statistics (mean, std, min, max) for a raster file that contains values of the "ecosistemic integrity index", provided by CONABIO. The index is originally calculated at pixel level (1km x 1km resolution), and the statistics are calculated at the municipality level.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment