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)

0
votes
0answers
6 views

R: count raster values using another raster as mask

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
26 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
31 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
37 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
35 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
19 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 ...
-1
votes
0answers
11 views

zonal statistics in model builder does not work for majority statistics type

While using zonal statistics in model builder, I cannot use the statistics type "majority". Is there any solution for that? I am using arc GIS 10.3
1
vote
0answers
33 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
79 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
40 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
48 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
21 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
40 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
71 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
61 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
119 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
54 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
46 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
24 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
39 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
72 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
76 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
52 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
31 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
22 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
14 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
135 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
134 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
32 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?
0
votes
1answer
49 views

Error using zonal statistic

I'm using 2.8.1 QGIS version (Wien) and I have a raster layer with FWI values and a vector with district polygons. What I wnat is to calculate the mean pixer FWI value per district. I know the Zonal ...
1
vote
1answer
51 views

Zonal Statistics doesn't work after updating processing (2.10.2)

After updating the processing tool zonal statistics doesn't work. in method 'SpatialReference_ImportFromProj4', argument 2 of type 'char * Could someone else try if it's a bug or just an issue ...
2
votes
1answer
127 views

How to get pixel values of indvidual pixels falling under a poygon to shapefile attribute table or CSV?

I want to be able to write pixel values of each pixel falling under a polygon onto a polygon attribute table or a CSV. I have about 1200 polygons and a georefernced GeoTiff file with NDVI values. ...
1
vote
0answers
47 views

How to calculate zonal statistics of buffer zone with minimum distortion

I want to create 50km buffers around a large set of polylines that have a global extent. My objective is to calculate average raster values within each buffer zone. The matter of confusion: I want ...
0
votes
1answer
31 views

use zonal statistics for only some part of input shapefile

I have a district shape file (districts have different size) and a raster file of precipitation (18 km grid square resolution). I want to calculate precipitation for each district which I did using ...
1
vote
0answers
24 views

Zonal statistics shifted

I am working with QGIS (newbie). I have a raster map with 0.5degrees resolution. I created a 0.5degrees width grid layer and I compute zonal statistics from the raster. My problem is that it seems to ...
1
vote
0answers
62 views

Weighted averages: accounting for grid cell surface variation in proportion to the cosine of its latitude

Non-geographer learning GIS here. I'm using ArcGIS Desktop v. 10.2.2. I have a 30-arc second Terrain Ruggedness Index (TRI) raster file, and I want to measure the average ruggedness within each ...
1
vote
0answers
31 views

Linking Statistics Type with Calculate Field after Table Join using ModelBuilder?

I am attempting to build a model using ModelBuilder in which there is a zone statistics tool being run iteratively for a set of rasters. The input is a blank template table that contains the number ...
16
votes
3answers
458 views

Major bug in ArcGIS Zonal statistics?

I am using ArcGIS 10.2.2 to determine zonal statistics for a number of zones. If there is any NoData in the value raster, I want the zone results to be "NoData", precisely as advertised by the tools ...
0
votes
0answers
31 views

Using zonal statistics in ArcGIS for Desktop?

I have a set of temporal images of a given State with 23 districts. When I used ArcGIS for Desktop to generate zonal statistics using the vector file of the State, the pixel counts were tabulated ...
0
votes
0answers
33 views

How can I work out the percentage of different raster parcels in a polygon

I have a raster layer (LCM2007) that contains 24 classes of landcover and a shapefile, polygon, which represents areas in a survey. I want the area, or percentage, of each class in each area. For ...
2
votes
3answers
81 views

Zonal average weighted by distance from point

I am using ArcGIS 10.2. I have a vector layer with points, which represent houses and a raster layer with values of 0 or 1, according to a certain threshold. In a buffer of 5 km around each of these ...
0
votes
0answers
12 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 ...
5
votes
1answer
96 views

Zonal maximum at a specific location

I have 50,000 polygon shapefile, each polygon is a small community. I have a flow accumulation raster. I need to extract just the maximum cell (max flow accumulation) for each polygon. Now if I run ...
2
votes
0answers
69 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 ...
1
vote
1answer
76 views

zonal statistics sum on raster with same values

I was wondering if anyone knows what exactly zonal statistics sum does if all my input value raster have the same values. For e.g. Lets say I have a finer resolution raster with 10 pixel each having ...
2
votes
0answers
68 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
1answer
104 views

Can I use TIFF files for zonal statistics in QGIS or ARCGIS?

I am completing a remote sensing paper and am doing most of the work in PCI Geomatica, where I have 2 separate files. One from running a texture analysis algorithm containing 6 band layers from a ...
1
vote
0answers
44 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
80 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
2answers
309 views

ArcGIS 10.3 Build Raster Attribute Table fails for large rasters

I am looking at forest loss in Central and South America within protected and unprotected areas. So I have a binary raster (0 or 1) for forest in 2000 and another raster for forest in 2013. I want to ...