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

1
vote
2answers
139 views

Tabulate Area in ArcGIS for Desktop not creating correct output?

I have used the Tabulate Area zonal spatial analyst tool in ArcGIS many times, and am encountering a problem for the first time. I am using a polygon grid (fishnet) as my zone dataset, and tabulating ...
0
votes
2answers
47 views

Creating new raster based on spatial extent and classes of one raster and average of another using ArcMap?

I have a raster that is split into classes and I wanted to make a new raster with this raster's spatial extent and classes but displaying the average values from a different raster. I am not really ...
3
votes
1answer
132 views

Tabulate Area using GDAL and Numpy

How could I perform a Tabulate Area using GDAL and Numpy? I am trying to summarize how many pixels of each class in a Landcover raster are within each polygon of a Census Blocks shapefile. I've ...
2
votes
1answer
74 views

Memory issues with zonal statistics

I have got a memory issue due to the use of the zonal statistics command into a loop. It seems that after using the ZS command QGIS stores some information in the RAM (cache memory?). It is not ...
1
vote
1answer
67 views

Accessing bands in .pix (PCIDSK) file in python/arcpy

I am trying to perform zonal statistics on a single band from a multi-band raster in .pix format. I have things working great with a tiff file. I am able to access the bands using this code: desc = ...
1
vote
1answer
47 views

Including NoData zones in zonal statistics table

I am running the zonal statistic tool on a raster with a shapefile that consists of several regional polygons. I would like the zonal statistic to include the regions that are completely NoData in the ...
0
votes
1answer
199 views

error invalid output extend in zonal statistic

i have a problem with arcmap10.2...i have a dtm(that now has dimension of the pixel 1000) and another raster whit the same resolution with the code of a specific area..what i want to do is calculate ...
3
votes
0answers
111 views

Zonal Histogram Output Problems - No values associated with the habitat type

I have a outline of some islands (shapefile or raster) and GAP landcover data (raster). I am trying to use Zonal Histogram to create a file with a histogram of the habitat types in each island. Each ...
3
votes
0answers
499 views

Extract values from raster based on weighted average area using polygon grid

EDIT: I am using Armap 10 sp 5 I have found similar questions but they were either unanswered or somewhat different to what I am asking. I have a raster with cell values 1-5 and a polygon shape file ...
2
votes
0answers
32 views

Zonal statistics error: 0-d arrays can't be indexed

How can I fix the error 0-d arrays can't be indexed? This message appears after the tentative to use the algorithm Qgis Zonal Statistics. Detail: the algorithm worked very well several times and then ...
2
votes
0answers
15 views

Remote sensing Classification and texture analysis compared with QGIS zonal statistics

Some back round: Using Geomatica to analyse suburban spectral signature in Las Vegas. Ran a texture analysis on all band images. Combined texture bands with original image bands to run an unsupervised ...
2
votes
0answers
63 views

Zonal computations: computing raster pixel counts within polygons using GDAL versus rasterstats

I'm computing some zonal statistics, and was comparing the results obtained using the GDAL cookbook example code here with the rasterstats zonal_stats function. I want to compute the mean value per ...
2
votes
0answers
61 views

Does converting polygon to raster generate more accurate results from the Zonal Statistics in Arcgis 10.2

I have heard the following for Arcgis 9.1 and wonder whether it is still an issue in Arcgis 10.2. If so, should I convert the polygon into raster before dissolve or convert the dissolved polygon ...
2
votes
0answers
80 views

Zonal Statistics Freezing QGIS 2.2

Running on Windows; 8gb memory, 500gb HD, i5 cpu; Raster file: 250mb I am having a problem with zonal statistics advancing past 17%. I am trying to run statistics on a crop grown in certain counties. ...
2
votes
0answers
260 views

Zonal Statistics using Gdal and Python

I recently came across a loop_zonal_stats function by @ustroetz found here: Issue Trying to create Zonal Statistics using Gdal and Python.. I am using a (single) polygon shapefile and a raster file to ...
2
votes
0answers
51 views

Wrong pixel sums within buffers in Esri ArcGIS 10.0

I have a raster of Zambia, 100m² resolution (about 650mb). Buffers (single) at 1,2,3,4,5,10,15,20,25,30,50 km. I'm running "zonal statistics as table" in the model builder for all buffers (actually, ...
2
votes
0answers
535 views

How to Calculate Utilization Distribution Overlap Index (UDOI) in ArcGIS

I'm interested in calculating the overlap of home ranges (=utilization distributions in my case) of a bird species using sighting coordinates. This article introduced UDOI as the best index for such ...
2
votes
0answers
319 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 ...
1
vote
0answers
13 views

Rasterstats throwing error: Cannot open as GDAL raster

I'm using the rasterstats zonal_stats function (pip installed), and running it on a .vrt file. Everything runs perfectly in my Ipython notebook, but when I try to run it in my regular python ...
1
vote
0answers
37 views

Zonal Statistics for multiple rasters

I'm trying to create a timeseries of raster data (one layer per year) by polygon (Administrative regions). Is there any way in QGIS to perform Zonal Statistics for multiple years (without having to ...
1
vote
0answers
31 views

RuntimeError opening rasterio array in GDAL

I've opened a GeoTiff with rasterio: import rasterio with rasterio.open('Africa.tif') as src: transform = src.meta['transform'] array = src.read(1) array([[203, 203, 203, ..., 0, 0, ...
1
vote
0answers
37 views

Zonal geometry output in ArcGIS

Is there a way to specify the coordinate type in Zonal geometry output in ArcGIS? I am trying to perform zonal geometry on a raster and in the resulting output, the XCENTROID and YCENTROID are in ...
1
vote
0answers
23 views

Clarification on a previous Utilization Distribution Overlap Index (UDOI) answer

I'm really struggling to calculate the Utilization Distribution Overlap Index (UDOI) and could really use some clarification on a previous answer. There is a comprehensive guide to what i am trying ...
1
vote
0answers
131 views

Batch Zonal Statistics to Spreadsheets?

I have a pretty immense amount of Zonal Statistics as Table computations to do, and would love to find a way to grab mean and variance values from the little .dbf tables ArcGIS creates and put them ...
1
vote
0answers
166 views

Problem with polygon overlay in raster stats using gdal

I am using the raster_stats module in python to calculate the mean carbon value for different sets of polygons. Here is the code that I am using: africa_sat = ...
1
vote
0answers
114 views

Determining average rainfall for cumulative watershed, where only sub-watersheds defined?

I have a polygon layer with sub-catchments (sub-watersheds) and a grid of rainfall. I have used the Zonal Stats as a table to calculate the average rainfall for each sub-catchment, but I now need to ...
1
vote
0answers
377 views

Multiple polygons and rasters for Zonal Statistics as table in ModelBuilder

I have a large number (>17,000) of raster image files that I am creating by iteration. I also have clipped out corresponding polygon files with identical names in a separate folder (maybe not ...
1
vote
0answers
156 views

How to Iterate ModelBuilder for Zonal Statistics?

I want to use ModelBuilder to split a DEM into multiple tiles, then run the iterator on each tile made for the Zonal Statistics tool to find the highest point(s) in each tile and give these as an ...
1
vote
0answers
314 views

How to use Zonal Stats as Table tool with in-line variable substitution

I have created a model to iterate a folder of 5 shapefiles to apply the Zonal Stats as Table tool to a raster. My output table is saved as table%i% so i'm expecting it produce 5 tables (table0, ...
1
vote
0answers
141 views

Reshape Matrix and perform Zonal Statistics in Matlab

I have 2 grids: 1) n by m - at 100m 2) n*10 by m *10 - at 10m. These grids cover the same area. I have to perform zonal statistics at scale of grid no.2. Cell value of grid no.1 is cumulative for ...
1
vote
0answers
316 views

Problems running zonal statistics - not all zones represented

I have been working on a Python script to automate the steps illustrated by whuber here:Create points around the edge of viewshed results I am trying to create a horizon graph illustrating the ...
1
vote
0answers
175 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
894 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 ...
0
votes
0answers
9 views

NLCD data-dividing it into counties so they can be compared

I have a state wide NLCD raster data set. I would like it to be separated into counties, so I can use something like Zonal stats for each county to make calculations and compare counties. This would ...
0
votes
0answers
25 views

Zonal statistics as table failed

I'm using ArcGIS 10 to perform "Zonal statistics as table" for my raster data (temperature). I would like to know that for each 50m level (for example, 0-50m), what is the average temperature. ...
0
votes
0answers
35 views

Zonal Statistics as Table having problems with Mosaic Dataset

I have a mosaic dataset of forest cover around the globe for the year 2000 (each cell's number contains the percent of forest cover in that area). I have randomly selected a large number of points ...
0
votes
0answers
40 views

How to expand a floating point raster by one pixel

In ArcGIS 10.2.2, I have a floating point raster of oceanographic data that boarders a coastline. Due to the jagged edge of the coast, the raster edge only sometimes overlaps the coastline and leaves ...
0
votes
0answers
39 views

Trouble interpreting zonal statistics as table output

Consider this a follow-up to this question. I transformed a census block group vector map (decided to use this instead of census tracts) into a raster map and generated a kernel density map using ...
0
votes
0answers
63 views

Zonal Statistics As A Table - Missing Features in Results

I have a point shapefile that includes parcel centroid features across a county in Pennsylvania. I am trying to get a sense of the percentage of forest land within half-mile and mile buffers around ...
0
votes
0answers
59 views

Proper size of buffer to represent village boundary using Geonames populated places

I am trying to estimate population for each Geonames populated place (PPL) in Tanzania. There are about 8000 PPL, represented by point features, however population data is missing. I used ArcGIS to ...
0
votes
0answers
75 views

Zonal Statistics as a Table does not calculate statistics for all features in the dataset

I want to compute the mean elevation (slope, aspect) within an area of 800m around the nodes of a vector grid I have applied, using "Create Fishnet". Because my buffers overlap, I cannot use "Zonal ...
0
votes
0answers
69 views

Zonal Statistics “Invalid Output Extent”

I have an NDVI layer masked to a Corn layer. I have laid on top of it a 8x8m grid; from that grid I have taken just the grid cells that fall completely within the Corn NDVI raster. It looks like this: ...
0
votes
0answers
111 views

Overlaying Line (Vector) Layer on Raster Zones?

I will make my best attempt to clearly explain my problem. I am using ArcGIS 10 I have a raster layer with 3 values that make up zones. For the purpose of this example, lets say these zones are ...
0
votes
0answers
39 views

Zonal statistics vs. random points?

Using ArcGIS 10.1 for Desktop, I wish to model the relation between soil productivity (SP) and a number of independent variables such as, e.g., terrain elevation and slope. For this purpose, I am ...
0
votes
0answers
139 views

What does “unsupported bin funcion type” error in ERDAS mean?

I want to open a set of .img files in ERDAS which are output files of zonal statistic function in ARCGIS. Before running the function, all images can be opened in ERDAS. After calculating zonal mean, ...
0
votes
0answers
67 views

Why does it take so long to run zonal statistics?

QGIS 2.0 Windows 7 I have pulled agricultural data from NASS CDL in tiff format. I want to track where a certain crop has grown over the years. My intention was to use a county shapefile overlaid ...
0
votes
0answers
125 views

Convert raster_stats list output to array / csv file

I usually program in R, but recently I have started to use python for most of my spatial programming. My python skills are still limited, and please excuse the simplicity of the question. I am ...
0
votes
0answers
73 views

Zonal statistics won't work after re-projecting vector layer

I have qgis 2.0. I want to analyze raster information within a buffer of 30 miles around a vector layer of cities across the world. However, both the raster and the vector are in WGS84. I have no ...
0
votes
0answers
67 views

Zonal statistics returns wrong values in QGIS

I used zonal statistics for a simple task: to transmit raster pixel values to vectormap which contains squares as big as the pixel size is. The problem is that the values of the outcome are not ...
0
votes
0answers
466 views

Tabulate area - Spatial Analyse

I am trying to calculate the amount (sqm) of land cover types (forest, water ect.) in 1045 buffer zones, all the same size (500m in diameter).. The buffer zones are polygons and the land cover is a ...