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
4 votes
1 answer
2k views

Standard deviation for percentiles interval in Google Earth Engine

I'm working on a GEE script aiming to extract DEM-based elevation statistics for regions defined by polygons. Specifically, I want to obtain the mean, median, standard deviation, and min/max values of ...
user avatar
0 votes
1 answer
651 views

Combining zonal statistics of multiple rasters into a single table ArcGIS Pro

I have a collection of 22 raster images from which I need to find the min, max, and mean, and put the results from each image into a single combined table. This question is very similar to what I am ...
user avatar
  • 43
2 votes
2 answers
5k views

Calculating statistics per area for categorical raster using R?

I am working with the area of New York City (NYC) in ArcGIS 10.1. I have a landcover raster map with several different land cover categories. What I am trying to do is to build up a table in which, ...
user avatar
4 votes
2 answers
1k views

"Zonal" Statistics Using Line Features

I would like to find the minimum, maximum and (weighted?) average value of the raster cells intersected by a line (vector) layer. This is similar to what common "Zonal Statistics" tools do, but they ...
user avatar
  • 6,484
3 votes
4 answers
2k views

Calculate average value from netcdf

I have precipitation data from NOAA in a NetCDF format. I imported that into ArcGIS as a raster layer. Now I see that I can only get the precipitation value for one year at a time. I need to ...
user avatar
  • 67
3 votes
0 answers
244 views

Perform zonal statics with the Rcaller in FME-desktop

I am trying to use the Rcaller in FME to perform zonal statistics. input: shapefile and a Geotiff I read that the Rcaller reads the input data as a dataframe when it is imported into the Rcaller (R)...
user avatar
  • 75
3 votes
2 answers
2k views

Plotting and analyzing extracted elevation data in R?

I have a shapefile of county boundaries for New York state and elevation data downloaded through the elevatr package. library(elevatr) library(raster) library(sf) library(USAboundaries) counties <...
user avatar
  • 374
1 vote
2 answers
56 views

Calculating Zonal Statistics outside of polygon using ArcGIS Desktop?

Is there a way to calculate zonal statistics outside of polygon? I want to extract the mean values outside of the polygon. In this case, instead of calculating for the land, I want to use the ocean. ...
user avatar
  • 1,188
1 vote
0 answers
431 views

Zonal statistics multiple band raster [closed]

I have a raster which is a yearly time series, it is created with 30 raster. It is saved then as a raster with multiple bands. I am trying to calculate the zonal statistics of all the bands at once. ...
user avatar
  • 315
0 votes
0 answers
269 views

Zonal Statistics As Table with Very Small Polygon

I was given one single band NDVI raster and a shapefile with multiple very small polygons. The raster has a resolution of 3m. On the other hand, the small polygons on the shapefile are square shaped ...
user avatar
  • 247
4 votes
2 answers
2k views

QGIS Zonal Statistics returns empty?

Does anyone familiar with the QGIS Zonal Statistics tool know why stats calculations might return empty? Inputs DEM for South Carolina: http://dnr.sc.gov/GIS/descdem.html A vector shapefile: https://...
user avatar
  • 83
3 votes
1 answer
296 views

Zonal stats for complete pixels qgis

I am trying to extract zonal statistics from raster imagery using polygons in QGIS 3.2.1, but I only want to use values from those pixels that are completely included in the polygons, ¿how to do this? ...
user avatar
0 votes
0 answers
46 views

Putting raster values in polygons ArcGIS

I'm trying to extract values from a raster file dataset (called land_use) to polygons (in a file called Hydro_buff) that I have created. I read a few questions on that topic but some other issues come ...
user avatar
  • 109
1 vote
1 answer
76 views

Calculating area of pixles for certain Aspect value per specific area?

I am using ArcGIS 10.6. I have the aspect (raster file) for the roof of buildings at the city scale. Now I want to calculate the area of each aspect group per building. I tied zonal statistics, zonal ...
user avatar
  • 21
0 votes
0 answers
52 views

Zonal statistics tool excluding some features in ArcMap? [duplicate]

In Arcmap 10.6, while using Zonal Statistics as Table tool, some of my feature zone data is being excluded from my output table. Here is the scenario. I'm using a polygon layer of buildings, with a ...
user avatar
  • 201
1 vote
1 answer
555 views

Getting data on area where shapefile overlaps raster file using QGIS?

I have attached an image to help explain what I am asking. I want to get the average value of where the heat map crosses over each municipality in the shapefile and export those values into a ...
user avatar
6 votes
1 answer
287 views

Getting zonal statistics of polygons not touching center raster cells in PostGIS?

I'm working a postgis processing zonal stats from raster and I couldn't manage the problem of raster with so low resolution (like 9km width) and small polygons. My problem is, these rasters are big (...
user avatar
2 votes
1 answer
372 views

Mask a Raster layer in QGIS using a vector layer with multiple polygons

I would like to extract statistics from a raster file based on a land cover classification vector file, however the land covers (features) are not contiguous (see pic). In the example below, I would ...
user avatar
3 votes
2 answers
838 views

Polygonize a multi-band raster

I have a polygon and I want to estimate areas of different types of land cover tha falls within the polygon. The problem is that the only freely available land cover data I found is https://catalogue....
user avatar
  • 33
2 votes
3 answers
143 views

Arcpy - process large shapefile in groups of 100 via cursor

I am working with a large(ish) shapefile containing 30,000 features. I am trying to run a zonal histogram and have been running into many problems. Running this function with the entire set of ...
user avatar
  • 1,617
0 votes
1 answer
903 views

TypeError: QgsZonalStatistics(): arguments did not match any overloaded call

There is no problem in running this code in qgis 2.x but it through error when I tried in qgis 3. def _calculate_means(self, polyg_layer_files, raster_layer_files, attribute_names): # ...
user avatar
  • 167
2 votes
0 answers
88 views

Unexpected elevation values from SRTM using Zonal statistics

In QGIS 2.18.18 on Windows 10, I have downloaded the NASA file srtm_05_01.tif that is available at http://dwtkns.com/srtm and the airports.shp file available at http://qgis.org/downloads/data/...
user avatar
1 vote
1 answer
244 views

Losing information using Zonal Statistics?

I produced a raster map representing estimates of the number inhabitants in pixels of 100x100 meter and I want to calculate the total of inhabitants per administrative units that are represented by ...
user avatar
  • 11
1 vote
1 answer
50 views

Calculate Values from a raster surrounding a list of addresses

I have a list of addresses and I have geocoded into a shapefile in ArcMap 10.4. I've also made a raster that stores NDVI data (with water masked out as it will skew the values we are hoping to obtain ...
user avatar
  • 21
0 votes
1 answer
21 views

Marking zonal statistics areas with a point

I'm working with Lidar data, and my end goal is to get a collection of points representing cliff bands, with key information attributed to the individual points. So far I've been able to identify my ...
user avatar
2 votes
0 answers
478 views

How to open memory data with ogr in rasterstats function?

I would like to reuse vector data created in memory in another function called rasterstats (source code, documentation): I have a function that creates vector data: def createPolygons: ...
user avatar
3 votes
0 answers
90 views

On-the-fly zonal statistics in QGIS

I would like to know if there is a plugin/method in QGIS to calculate zonal statistics (mean, median, range, max, min etc.) of a raster file, corresponding to a polygon that I draw/highlight in QGIS. ...
user avatar
  • 501
1 vote
1 answer
154 views

Zonal statistics returns empty on Landsat 8 raster data in QGIS

I have derived surface temperature from the Landsat 8 thermal band 10. My vector file is the following: Small Areas City of Melbourne I want to calculate the mean, median and maximum temperature of ...
user avatar
1 vote
1 answer
61 views

How to treat bias? Calculate zonal statistics proportionally?

Using ArcGis 10.4 I don't know if this is even possible, but I want to give it a try. The following problem: I have subcatchments (built from a DEM) and I have a river shape. This river shape is ...
user avatar
  • 343
3 votes
1 answer
389 views

How to tell zonal statistics plugin to ignore "No Data"?

I have a shapefile and a raster. They superimpose to a greater degree except at edges where raster pixels do not extend up to layer boundary (see image if it was not clear). The green line is from ...
user avatar
  • 323
1 vote
0 answers
612 views

Zonal Statistics or Tabulate Area by Multiple, Cascading Zones [closed]

A basic GIS task that I regularly come across in my work is to calculate the area of a variable of interest by multiple, overlapping and/or hierarchical zones. I am looking for a more efficient way to ...
user avatar
  • 665
14 votes
2 answers
2k views

How does QGIS Zonal Statistics handle partially overlapping pixels?

There are a couple Stackexchange posts asking this question, but neither of them were sufficiently answered: How does Zonal Statistics work exactly? How does Zonal statistics handle pixels that are ...
user avatar
  • 2,785
2 votes
0 answers
61 views

How to display min and max pixel from Zonal Statistics?

I am trying to find the maximum and minimum pixel from a raster inside the area of a buffer. I can succesfully get the values using Zonal Statistics, but it doesnt tell me which pixel is the max and ...
user avatar
2 votes
2 answers
788 views

Zonal Statistics as table in model with two iterators using ArcGIS Desktop?

I am using ArcMap 10.4 (with Spatial Analyst.) I have a feature layer with ~11.000 partly overlapping but similar features. For each feature I want to extract some values from ~25 underlying rasters. ...
user avatar
  • 172
1 vote
1 answer
508 views

Multiple histogram from a raster image in R

I need to get multiple histograms from a tif image. I have the following data: A big raster tif image: tif1 <- raster("myRaster.tif") hist(tif1, breaks= 10) # gives the entire histogram A ...
user avatar
  • 195
1 vote
0 answers
263 views

Reprojecting raster using QGIS?

I'm currently working on MODIS satellite product "MOD16A2" which provides regular 500m's resolution pixel of evapotranspiration. I basically need to extract from the map the mean value of different ...
user avatar
1 vote
1 answer
62 views

Corine data aspect analysis in ArcGIS

I have a SRTM dataset, Corine Land Cover and have already calculated aspect. I want to know the relative proportions of exposition classes of certain landcover type. My thought was to use zonal ...
user avatar
  • 11
2 votes
1 answer
135 views

Conditional zonal statistics

I have often used the Zonal Statistics plugin to calculate the mean pixel value of a raster. However, this time I have an additional Boolean (pixels are equal either to 1 or to 0) raster, which is ...
user avatar
  • 473
2 votes
0 answers
833 views

Using zonal statistics code from Python GDAL Cookbook?

I am new when it comes to GIS and relatively new when it comes to programming. I was trying the “zonal statistics” recipe from the Python GDAL/OGR Cookbook, but I cannot get a decent result. For the ...
user avatar
0 votes
1 answer
283 views

Issues when exporting/zonal statistics rasters from .tif and .nc files

I am trying to aggregate at a 0.1º cell level, using zonal statistics, two variables that come from two different raster files (one in .tif, other in .nc format, links here and here). Both seem to ...
user avatar
1 vote
0 answers
333 views

Calculate river length in each subcatchment

Using ArcGis 10.4 I have suceeded in calculating "maximum upstream river distance to its reach per subcatchment" per subcatchment with the help of this forum (see Calculate river distance to ...
user avatar
  • 343
1 vote
0 answers
252 views

Calculating built-up density for each cell in vector grid in QGIS?

I have two layers: a raster of India showing built-up areas (black pixels represent built areas) and a vector grid overlaying it. My goal is to calculate the percentage of built-up surface in each ...
user avatar
0 votes
1 answer
1k views

Rasterizing multiple features using rasterio? [closed]

I am trying to apply the rasterio.features.rasterize function in order to obtain a zonal statistics from a vector file containing multiple vectors. Despite my efforts, I have been unsuccessful in ...
user avatar
2 votes
1 answer
1k views

How to extract pixel value counts from a raster in QGIS, in different polygons?

I have a raster with values from 1 - 12 (0 is no data) that has the extent of Sweden. These values represent factors, or categories rather then a numeric value. I would like to know how many of each ...
user avatar
1 vote
1 answer
157 views

Looping script with Zonal Statistics

This is my first time using python in ArcGIS. I have a gdb of about 100 feature classes, and need to get Zonal Statistics for each. I'm using a textbook, and got this so far: import arcpy from arcpy ...
user avatar
  • 81
3 votes
1 answer
819 views

Automating Zonal statistics in QGIS?

How do I use zonal statistics in the python console to get CSV/dbf output? I have used the code like this: # Python code for Zonal statistics from PyQt4.QtGui import * from PyQt4.QtCore import * ...
user avatar
5 votes
0 answers
531 views

QGIS Zonal Statistics for polygons is missing results?

I am carrying out an analysis using QGIS 2.14.1 where I am dealing with point data that have been randomly displaced by either up to 2 Km or 5 Km. I have generated a buffer of the appropriate radius ...
user avatar
  • 51
1 vote
1 answer
323 views

Pyqgis: How to take output from Qgs.ZonalStatistics and join by ID with point layer

What I'm trying to do: Extract median by a single polygon from multiple GeoTIFF rasters stored in a folder (Solved) Add each median value to a point shapefile (Match/join by: id column for each point ...
user avatar
  • 637
2 votes
2 answers
660 views

Python: Extract median by polygon from multiple raster files

What I'm trying to do: Extract median (or 50th quantile) by a single polygon from 558 GeoTIFF rasters stored in a folder What I got so far: Using Python from within Qgis and Qgs.ZonalStatistics I've ...
user avatar
  • 637
3 votes
1 answer
246 views

Missing 0 values of a Rasterlayer prevent correct calculation with Zonal Statistics tool in Qgis

For my master thesis I want to calculate the mean percentage of sealed surface in some parks of Berlin. For this purpose I have a rasterlayer containing this data. In a previous step I already ...
user avatar
  • 41

1
3 4
5
6 7
10