Zonal statistics summarize the values of one raster within the zones of another dataset (either raster or vector) and output the results as a raster (for a single statistic) or table (for multiple statistics).

learn more… | top users | synonyms

2
votes
1answer
205 views

Error 010240 with ZonalStatistics

I have a code that calculates the sum of water recharge for a pixel for a 9 year period (This piece of code works fine, just thought I would show how it is made just in case. The values range from 0 ...
1
vote
1answer
202 views

Is there a way to perform zonal statistics-like operations with feature zone data without doing feature-to-raster transformation?

I want to use zonal statistics on Chinese counties (which can be very small) from a fairly coarse (0.5 degree) raster grid. The problem with zonal statistics is that it returns a much smaller number ...
7
votes
3answers
483 views

How to use ZonalStats plugin?

I am using QGIS 1.8.0 on a Windows Home Premium 7 machine. I have a single band TIFF that is 187 MB in size. My vector polygon shapefile represents a regular grid of a 147x112 36kmx36km grid cells. ...
5
votes
2answers
2k views

How to use QGIS Zonal Stats Plugin from Python Console?

I am using the Zonal Stats plugin in QGIS to extract raster statistics from overlaying polygons (I have shapefiles of species distribution and I want to extract environmental data from within each ...
2
votes
0answers
229 views

How to use GRIB data in ArcGIS? (Zonal Stat as Table)

I am trying to calculate zonal stats as table with a python script for 45 .grib files from the ERA-40 Monthly Mean of Daily Mean database (http://data-portal.ecmwf.int/data/d/era40_moda/) for certain ...
2
votes
1answer
234 views

joining a table from zonal statistics as table with a layer, problem with reserved names

I have a raster file (percentage of total forest killed) and a shapefile with polygons (municipalities). I thought as a first step I would like to find out which municipality shows the greatest ...
1
vote
0answers
159 views

zonal statistics in Python crashes

I have a python script that works (it's worked for several other projects in the past and it worked for my current project initially). But whenever I run it, Python crashes sporadically. It would go ...
1
vote
0answers
665 views

Raster grid for zonal statistics in R

I have two raster layer, the first one r is my zonal mask as a raster grid, and I created as: ext <-extent(Yraster) r <- raster(nrows=32,ncols=32,ext) r[] <-(1:ncell(r)) and project it ...