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)

1
vote
1answer
64 views

Writing result of PyQGIS to shapefile

I try to perform some zonal statistics on a shape- and rasterfile and write the output to a completely new shapefile! import sys # where is the module ...
1
vote
1answer
27 views

Extract results from zonal statistics

I am trying to calculate mean slope in given polygons. I first interpolate my (x,y,z) data to create a raster file and use the terrain analysis tool to calculate slope. Then I use the zonal ...
1
vote
0answers
18 views

Zonal statistics query

I have two rasters (Hyrdological Soil Group (HSG) and Land Cover) and i'm trying to find the average HSG for each land cover type. The HSG raster contains the values 2,3 and 4 and there are 23 ...
1
vote
0answers
13 views

Median and Mode estimations in the QGIS Modeler?

I would like to know if there is anyway in which I can combine the available tools in QGIS in the Modeler to estimate median and mode values from a raster (DEM) using polygons. I know the zonal ...
0
votes
0answers
23 views

Need to compute fragmentation indices within discrete zones

Running arcGIS 10.3 (also have the latest QGIS), win7 64, workstation 16g ram and an intel xeon processor. I'm preferably looking for a simple turnkey solution; very little python experience. ...
0
votes
1answer
68 views

What is (if there's any) difference between MAUP and Edge Effect

I heard both the term MAUP and Edge Correction in association with Spatial Statistics, zoning/quadrats, demographics etc. Is there a difference between the two? What is the difference then?
1
vote
0answers
41 views

Calculating the spatial variance of well density? [closed]

I have wells as a point shapefile and have calculated the spatial density of these wells in 400+ basins (polygons) by dividing the number of wells in each basin (found by doing a spatial join) by the ...
1
vote
2answers
25 views

Converting data in table created by Zonal Statistics as Table tool back into raster file?

In arcGIS 10 I have worked on a number of raster files, from which I have created one large table by using the Zonal statistics as Table Tool. I have a result as shown below (I have more than 70,000 ...
1
vote
0answers
23 views

Resampling netcdf file?

What is the best way to change the cell size of a netcdf file, keeping it as netcdf? I have looked into ArcGIS and GDAL and have not found anything yet. I prefer to use python if a solution is ...
2
votes
1answer
46 views

What is the most efficient way to get a table or attribute table of a float raster?

I'm starting with a stretch point raster. Ultimately I want to get a mean value of values with larger zones and then rate the zonal mean stretching from 0-1 and output rank/zone to a table or layer ...
2
votes
1answer
31 views

Using zonal_stats with python in QGIS to calculate statistics for each image

I work with Python in QGIS, I want to calculate statistics for each image that I have with a specify shapefile and save result after, I tried to do like this: from rasterstats import zonal_stats ...
1
vote
1answer
44 views

How does ArcGIS calculate zonal statistics with partially overlapping zones?

I am trying to get zonal statistics in ArcGIS. My zone raster is a world map with zones defined as "provinces (such as the US states)," and the value inputs are temperature data for each ...
0
votes
2answers
30 views

ArcGIS tells me 'raster' isn't defined

I am trying to get zonal statistics for a set of geographical units for several years and I would like to get the output in one dbf table, where the rows mark the geographical units and each column is ...
1
vote
1answer
33 views

How to change the default field Input Value Raster for Zonal Statistics as Table?

I have a raster in ArcGIS 10 with the following attribute table: When I try to use the tool Zonal Statistics as Table over some polygons, it calculates the statistics of the fields 'Value' and ...
0
votes
1answer
16 views

Calculate zonal statistics with two different types of zones (provinces and longitude*latitude grid boxes) in ArcGIS?

I am trying to get zonal statistics in ArcGIS with two different datasets. One is a world map with zones defined as "provinces (such as the US states)" and the other is a temperature dataset with ...
1
vote
1answer
36 views

Zonal Statistics with very large mosaic in ArcGIS

I have the complete National Elevation Dataset from USGS in over 3000 ArcGrid files (coming to almost 190 GB), and a polygon shapefile of Colorado counties. I'm trying to use ArcMap Zonal Statistics ...
3
votes
1answer
43 views

Zonal Statistics for millions of polygons

I have a shapfile with 31 million polygons and I want to extract statistics from a raster for each polygon. Whenever I use zonal statistics I get ERROR 999998: Unexpected Error. Failed to execute ...
0
votes
1answer
42 views

Full list of objects not showing up after using Zonal Statistics as Table tool?

I am using the Zonal Statistics as Table tool in ArcMap 10.1 to compute the sum of raster cell values (brown scale in below image) in a given set of polygons (red in below image). For an unknown ...
7
votes
1answer
83 views

Compute zonal statistics for portion of polygons

I am working with a shape file containing the district polygons of the political map of India and a raster file containing the elevation data of the same country. My goal is to compute the average and ...
2
votes
0answers
61 views

Zonal Statistics tool not working with 2.14

I wanted to try the QGIS zonal statistic tool but it doesn't work.The system says: "not a sequence See log for more details". The SAGA Zonal Statistic tool works fine. It also doesn't work with the ...
1
vote
0answers
25 views

Zonal sum gives incorrect results [closed]

I have two raster files: Raster 1 has 7974 grids (coarser resolution) with Rowid, Value and Count. Raster 2 is finer resolution and each grid has values either 1 or 0. What I want to do is to find ...
0
votes
2answers
63 views

ArcGIS Multiband Raster

I know this has been asked and answered here but since I don't have enough rep to ask a clarifying question to the person who answered it I am having to post a completely different question. I am ...
0
votes
1answer
86 views

Counting raster values using another raster as mask in R?

I would like to count the frequency of values in one raster, using another raster (different resolution) as the zonal condition. The premise is that the coarser resolution raster represents the area ...
3
votes
0answers
28 views

zonal statistics / join with two vector layers [duplicate]

I have a shapefile containing three polygons of river basins with different values. I want to know the average values per country. The country thus contains three river basins. When I use join in ...
3
votes
0answers
39 views

How to calculate average value of a raster, that is clipped by multiple polygons?

I am using QGIS 2.12.0. I have a raster of coherence value (SAR interferometry) and a land use shape. I wish to calculate mean coherence value for those areas with a specific land use. I split land ...
1
vote
1answer
63 views

QGIS Zonal Stats Plugin - Python Console - compute one specific statistic

I think this is more of a syntax problem that I have here. But I am absolutely not able to figure it out. On a different Linux machine I got the following working: zoneStat = QgsZonalStatistics ...
1
vote
1answer
47 views

Can I make my zonal analysis faster?

I created this python script which performs zonal analysis for the 100m, 200m, 300m, and 400m surrounding a list of points. It works but I have two main problems: A) The raster I am processing has ...
0
votes
0answers
28 views

Batch zonal statistics from overlapping buffers in ArcGIS for Desktop?

I am trying to come up with an isolation index for islands in a lake. I started by generating a binary water/land raster of the study area. I would like to know the proportion of land to water ...
2
votes
0answers
58 views

Geopandas and Zonal Statistic error

I'm trying to use Geopandas and zonal statistic from rasterstats together. I run this code import geopandas as gpd from rasterstats import zonal_stats geodf = gpd.read_file("SHP/shape.shp") ...
2
votes
1answer
101 views

How to compute zonal statistics fast?

I have 12000 circles with a radius of 50 miles on a raster with 0.05 degree resolution. Global analysis. The raster is 32 bit float and I have to calculate zonal statistics for 20 different rasters. ...
1
vote
0answers
46 views

Zonal histogram script VALUE row suffix problem

I'm running 2 Python scripts. The first it is to apply Zonal Histogram to several rasters. The second it is for saving the Zonal Histograms to a text file. My problem is when the first script creates ...
0
votes
1answer
59 views

python code multirasters zonal statistics

env.workspace = "C:\Users\\Documents\pythonMODIS\extract" # Set local variables inZoneData = "mask.shp" zoneField = "Classes" inValueRaster = "mi1511171_clip.tif" outTable = "zonalstattblout02.dbf" ...
1
vote
0answers
33 views

Zonal Statistics on discrete values in raster using ArcGIS for Desktop?

I am using ArcGIS 10.3 for Desktop. I am using Corine Land Cover raster data for Southern European Countries, this data gives discrete values to particular land uses (e.g. 1 = agricultural land, 2= ...
0
votes
1answer
91 views

Correcting Errors in Height Above Nearest Drainage (HAND) model

I have used this tread Spatial Analysis - Calculate a cells elevation (height) above the nearest stream cell to create a HAND map in ArcGIS. First I used the hydrology toolset to fill in sink in the ...
2
votes
1answer
114 views

Zonal statistics of polygon overlays in PostGIS

I am trying to do a seemingly simple task -- extract mean pixel values from a raster based on a polygon overlay in PostGIS. I consulted several sources, including this blog, this blog, and this post). ...
3
votes
1answer
88 views

Too many zones for Zonal Histogram?

I have 45 tif tiles each of 20-50MB and a single shp file with about 4000 polygons. I want to run zonal histogram in Arcmap 10 to get the number of pixels with each value for each polygon. If I ...
1
vote
2answers
143 views

Determining Min and Max elevation in Python using GDAL? [closed]

I have a DEM file and shape file of specific area ,and i want to Create a module in Python that writes name of each area which is shows in the picture, with the greatest differences in altitude on ...
1
vote
1answer
96 views

Changing processing extent with each iteration using ArcGIS10 ModelBuilder

I have a very large raster for which I am trying to compute zonal means using a shapefile that covers the same extent but has hundreds of thousands of individual polygons as zones. Trying to just use ...
2
votes
1answer
58 views

Resampling gives higher MEAN when using zonal statistics

I am using ArcGIS 10.1 for Desktop. I have a value raster and a polygon feature in GCS coordinates. My raster resolution is 0.5 decimal degrees which is much larger than the size of my polygons. My ...
1
vote
0answers
26 views

Best way to store, elaborate and query raster data [closed]

I have created multiple raster images with GRASS-GIS (~150Gb), that I'll need to multiply for a certain coefficient, and query the results that need to by saved just temporally. The portions of the ...
0
votes
0answers
44 views

Zonal Statistics Python Code

I'm trying to calculate the number of certain raster cells within the individual buffers identified by the FID and I'm not sure what else I need to change in this code to make it run: # Import system ...
5
votes
1answer
94 views

Weighted zonal statistics in Python and/or R

I have raster files with precipitation data (4x4 km), monthly, for about 100 years. I have a shapefile for a watershed (which includes several polygons as sub-basins). I need the average precipitation ...
0
votes
2answers
125 views

Zonal Statistics as table produces wrong result (only one row of result)

I have temperature as a raster file and different ZIP Code Tabulation Areas (ZCTAs) as polygons. I'd like to calculate the mean temperature per zip code. I need to know the temperature value per zip ...
0
votes
0answers
62 views

Does zonal statistics do weighted average?

When I compute mean using zonal average in ArcGIS, is it taking into account the 'COUNT' in the value attribute table? e.g. if I have a raster with VALUE COUNT 1 10 2 20 3 ...
3
votes
1answer
40 views

Distinguishing Road Network according to the ward within a municipality ArcGIS

I have a polygon layer of a municipality containing 14 wards as shown in figure i. I also have a polyline layer of road network irrespective of the ward. The road network have following attributes ...
1
vote
0answers
25 views

How to remove negative values from a created HAND model

I have used ArcGIS to create a HAND (height above nearest drainage) using an SRTM DEM. However, some small portions have negative values in the model which is supposed to have zeros as the minimum ...
1
vote
0answers
17 views

Creating boundaries to run Zonal Statistics

I am trying to get the mean slope for settlements by using the zonal statistic function. I am trying to define the area around each settlement so it will take a large area in to consideration instead ...
0
votes
2answers
255 views

Batch Zonal Statistics as table?

I want to calculate zonal statistics as table for multiple rasters, but can't figure out how. What I am trying is: import arcpy, os arcpy.env.workspace=r'F:\Sheyenne\Atmospherically Corrected ...
1
vote
1answer
247 views

How does ArcGIS calculate zonal statistics with multi-band rasters?

I am working back and forth between QGIS to ArcGIS for various tasks. So far, for my taks, I have found similar tools and options between them. However, for my current task, to calculate the ...
0
votes
0answers
41 views

Zonal statistics as table fails using Geoprocessor and C#

The above code snippets fails while calculating the Zonal statistics as table using Geo processor in C#, butit works in ArcMap. Any ideas where/what I did wrong?