Questions tagged [zonal-statistics]

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).

Filter by
Sorted by
Tagged with
3
votes
1answer
216 views

Appending 10,000 tables using ArcPy?

I am trying to append ~10,000 tables together using an ArcPy script. I believe the method I am using does not work as the script is attempting to append too many tables at the same time. Would a ...
3
votes
2answers
181 views

Expected result for ZonalStatisticsAsTable MEAN Statistic Type?

I'm getting different results when using the ZonalStatisticsAsTable tool in 10.4.1 when compared to earlier versions (10.2 and 10.3). ArcGIS 10.2: ArcGIS 10.3: But in ArcGIS 10.4.1, the same data ...
0
votes
1answer
83 views

How to assign numerical value to polygons?

I have a shapefile of polygons, and a list of mean values of the area in each polygon. I need to assign said mean values to each polygon. How would I go about this using GDAL/OGR in Python?
2
votes
1answer
4k views

Zonal Statistics of a polygon and assigning mean value to the polygon [closed]

I have a large shapefile filled with polygons, and a raster of that same area. I need to use Zonal statistics to find the mean value of the area under each polygon and then assign that value to the ...
0
votes
1answer
382 views

Zonal Statistics does not calculate mean for all Features in the shapefile

This is a follow up question from: Python Script Zonal Stats as Table Loop Question I was able to get the script working successfully, but I'm running into a problem where zonal statistics is not ...
1
vote
1answer
2k views

Python Script Zonal Stats as Table Loop Question

I'm trying to write a small script loop script which retrieves rasters from each folder, performs zonal statistics using watershed polygons and saves it as a table. I've written similar loop scripts, ...
3
votes
2answers
6k views

Extract raster value into polygon

I have the raster map of monthly precipitation of some years (download from CGIAR http://www.cgiar-csi.org/data/uea-cru-ts-v3-10-01-historic-climate-database) and I need the mean values on a specific ...
1
vote
0answers
82 views

How to Remove No Data from a NetCDF Raster Layers?

Question: How to remove no data from a NetCDF Raster Layer? I am trying to use the Zonal Statistics as Table tool in ArcGIS to calculate the mean. The problem is I am not getting the correct mean, ...
0
votes
1answer
732 views

Calculating first quartile of a raster by zonal statistics?

I want to calculate the 1st quartile (25th percentile) of a raster (beneath polygons) using zonal statistics but it does not this option. Zonal statistics has: MIN, MAX, MEAN, MAJORITY, RANGE, and ...
1
vote
0answers
642 views

Extract mean raster values by fishnet in ArcGIS [closed]

I have a raster of 0.25m resolution. I created a fishnet with 100*100 m in ArcGIS. I want to extract mean values of the raster from fishnet squares(100*100). I tried zonal statistics in ARC but does ...
6
votes
3answers
821 views

Wrong min value from ArcGIS 10.4 zonal statistics as table

I used the zonal statistics as table tool in ArcGIS10.4 to calculate SRTM, the in_zone is a gridded shapefile, the in_value_Raster is the SRTM extracted for the region as in the image (90m x90m). The ...
3
votes
0answers
60 views

Zonal Statistics calculator differences between QGIS Lyon and Wien

I am trying to implement a process that uses the Zonal Statistics menu function. In Lyon, the menu that pops up had a field with a list of calculations, each with a check box. Here you can select what ...
1
vote
1answer
671 views

Writing geoJson from rasterstats

How would I write a proper geoJson, readable by a GIS, from the results of the rasterstats package? stats = zonal_stats("somePolygons.shp", "someTif.tif", ...
1
vote
2answers
312 views

Statistical properties of raster image

I want to calculate the mean and standard deviation of a raster image. In QGIS zonal statistics, we can calculate it within a polygon or a vector. But I want to calculate for the whole image. In ...
1
vote
1answer
207 views

Zonal Statistics ArcMap 10.4

I have a problem using Zonal statistics in python using ArcMap 10.4. This is a completely random error, and I have no idea what to do. Some back ground is that I have been running a script doing ...
0
votes
1answer
51 views

Problems when Joining table to polygon

In ArcGIS 10, I have several maps describing both habitat characteristics and climate. I also have a raster map of presence/absence for a species that I wish to examine using my other maps. All my ...
0
votes
1answer
295 views

Missing buffer values when using zonal statistics in ArcGIS Desktop?

I am using zonal statistics in ArcGis 10.2.2 to calculate the mean value of fire frequency within 1km buffers. However, I have noticed that this is not being calculated for all of my sites. There are ...
0
votes
1answer
26 views

Passing a number between feature classes in ModelBuilder

I am looking at two non-overlapping polygon feature classes (let's call them Counties and Somewhereland; the latter feature class has only one record). I need to sum a certain field (let's call it ...
2
votes
2answers
71 views

Zonal sum not working?

I have a raster file for India which is a cropland map with following information: Columns and rows: 7015, 6582 Cell size: 0.0041666667, 0.0041666667 Each grid of this cropland has a value of ...
1
vote
0answers
49 views

Zonal Statistic Tool

In ArcGIS, I have a grid 5x5km (I have it both in vector and raster formats) I want to calculate, based on this grid, the zonal statistic (MEAN) of a raster 30x30m pixel size. The raster overlaps ...
1
vote
0answers
55 views

Selecting cells with values from DEM those are above specific value corresponding to each polygon?

i have a shapefile with 2000 polygons and a DEM. i want to calculate zonal mean for each polygon considering values from DEM which are above a particular value for each polygon. i want to it with ...
2
votes
1answer
291 views

Calculating total area overlapping specific raster DEM color interval whose boundaries are confined by another vector?

I know this sounds quite difficult, but maybe it isn't for you or at least it shouldn't if I explain it correctly. (I'm using QGIS 2.14) I'd like to know to calculate total area overlapping a ...
1
vote
1answer
1k 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 sys.path.append("/Applications/QGIS.app/Contents/...
1
vote
1answer
165 views

Extract results from zonal statistics [closed]

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
43 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 ...
2
votes
0answers
167 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
1answer
785 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
226 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
134 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
361 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
104 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
450 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 ...
2
votes
1answer
487 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 "longitude*...
0
votes
2answers
417 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
344 views

Changing 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 'Count'...
2
votes
1answer
211 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 ...
1
vote
1answer
363 views

ModelBuilder problem with copy features [closed]

I want to run the following Model The problem is that when it reaches the copy features tool the model stops and throws an error saying that %Name%_layer (3) is not a feature class and I don't ...
4
votes
1answer
398 views

Zonal statistics for millions of polygons

I have a shapefile 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 (...
1
vote
1answer
772 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
172 views

Compute zonal statistics for portion of polygons

I am working with a shapefile 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 ...
4
votes
0answers
803 views

Zonal Statistics tool not working with QGIS?

I wanted to try the QGIS 2.14 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 ...
2
votes
0answers
123 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 ...
3
votes
2answers
1k views

Problem with calculating QGIS Zonal Statistics MEAN

I need to calculate some zonal statistics from raster files for some polygons in a shapefile. I am using the following code which works: eligibleLayer = QgsVectorLayer("/home/usr/Desktop/...
1
vote
2answers
778 views

ArcGIS Multiband Raster [duplicate]

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 ...
1
vote
1answer
1k 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 ...
4
votes
0answers
42 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 ...
4
votes
0answers
335 views

Calculate average value of a raster, that is clipped by multiple polygons? [closed]

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 use shape into specific ...
2
votes
1answer
534 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
164 views

Making 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 ...
5
votes
1answer
1k 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") ...

1
4
5
6 7 8