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
5
votes
1answer
48 views

Postgis - Zonal statistics - Parallel computation?

I am looking to speed up a postgis query, regarding zonal statistics. I am using postgis 3.0 with postgreSQL 12 and I was hoping that I could apply the below script to speed up processing using ...
1
vote
0answers
22 views

Does projection matter for Zonal Statistics as Table on world raster

My goal is to take a world population grid (2.5 arcmin) and perform zonal statistics as table inside country borders (and also inside the cells of a 1-degree fishnet intersected with country borders). ...
3
votes
1answer
40 views

Zonal Histograms in RQGIS3

I would like to calculate zonal histograms (number of raster cells of each type contained in a polygon) using the RQGIS3 package in R. The problem is that I can't seem to find the algorithm name for ...
0
votes
0answers
25 views

Calculating mean raster value within small polygon zones using ArcGIS Desktop

I am trying to calculate the mean raster value within zones (vector) using the tool "zonal statistics as table". This works for the larger-area zones, but not for smaller-areas. Making the cell-size ...
0
votes
1answer
30 views

Reclassifying sub-property objects as properties in GEE

I am replicating the Hansen Global Forest Change tutorial from GEE to calculate annual forest loss by country in Africa. My code so far is: //Country shapefiles var countries = ee.FeatureCollection('...
1
vote
1answer
94 views

QGIS Zonal Statistics and No_data

I think QGIS Zonal Statistics algorithm does not handle No_data values correctly. The expected behaviour is that if I set some raster cells to No_data (for example with the method suggested here, ...
1
vote
1answer
29 views

Zonal Statistics as Table wrong number of zones

I have used zonal statistics as table to find the average value of raster pixels over various polygons. The number of polygons in the feature zone data is 1794, while the output table only results in ...
0
votes
1answer
49 views

How can I overlay two raster without turning them in vector format in Python to get zone wise statistics?

I have two raster re-sampled and same extent one is elevation class raster from DEM reclassification classified in 10 zone with 500m interval and another is snow cover fraction raster has snow ...
2
votes
0answers
40 views

Error 999999, Table name is invalid - Zonal Stats as table

I am attempting to run a model that iterates rasters and computes zonal statistics returning a table. The raster's statistics are computer across all polygons in a specific shapefile. This model ...
1
vote
1answer
51 views

Quartile calculation option in QGIS?

I need to calculate the quartile value (e.g. 75%) of the pixels of a raster layer within a polygon file. I try to do that using QGIS, and found that the zonal statistics might be able to do that. But ...
2
votes
1answer
34 views

Sum of zonal statistics QGIS

I'm a bit lost with the zonal statistics tool in QGIS. I have a raster layer representing population densities per km2 for Asia. I've clipped the raster to my Vietnam provinces polygon as it is my ...
1
vote
0answers
26 views

Iterate raster data error 00964

I'm building a model in arcmap 10.7 model builder to determine zonal statistics for multiple raster in a geodatabase. The model works, but only when i run it through model builder. When I try to run ...
1
vote
1answer
57 views

Accumulate values from raster using ArcPy [closed]

I wrote the script: import arcpy if arcpy.CheckExtension("Spatial")=="Available": arcpy.CheckOutExtension("Spatial") print("Spatial") from arcpy import env from arcpy.sa import * env....
0
votes
1answer
33 views

Raster area grouped by class and by a second raster

I have two categorical rasters, and I want to get the area of each category on the first further grouped by each category on the second in R, I first tried with zonal stats but you only get the (max, ...
1
vote
1answer
69 views

Zonal stats percentile values using R?

I have a 1-m continuous DEM and a vector grid with ~160,000 250m cells. For each cell in the grid overlaying my DEM, I want to retrieve the 50th percentile pixel value. I'm curious if there's a way to ...
1
vote
1answer
50 views

Calculating percentage of area by district of land use type

I have a file geodatabase feature class, type polygon, of land use type. SEQ LU Update X project clip in the attached. I have a districts shapefile (shapefile feature class polygon). All_Brisbane in ...
2
votes
1answer
34 views

Zonal Statistics as Table gives error when there is no overlap

I'm trying to generate Zonal Statistics with a raster and set of polygons. In my case the polygons represent census tracts in the US and the raster is population density. The problem is that ...
1
vote
1answer
52 views

Raster layer statistics QGIS 3.4 doesn't give information about pixel count

I created a plugin in QGIS 2 AND I used the qgis:rasterlayerstatistics , I could get the 'COUNT' information : pixels number, but when I migrate my plugin to version 3.4 I found out that this ...
3
votes
1answer
66 views

Find area under different colors in TIFF?

I have a TIFF file that has 17 bands (colors). Each color corresponds to different land use land cover characteristics. Additionally, I have a shapefile of a district with blocks. I want to find the ...
1
vote
1answer
39 views

QGIS - Zonal Statistics Batch - empty

after using zonal statistics by hand which works perfectly fine. I want to use it in Batch-mode to extract Mean/SD/Median for different rasters in the same polygon. I can not select a rasterband, ...
0
votes
1answer
23 views

Polygon zone fell outside bounds of raster using ArcPy

I'm trying to perform zonal statistics, and get a message that: A polygon zone fell outside the bounds of the raster. It is not possible because the polygon is just a 50-km buffer zone around the ...
2
votes
2answers
90 views

Calculate average value in GeoTIFF file inside a shapefile polygon?

I'm a forest owner and have information about my forest areas in ESRI shapefile format, in ETRS-TM35FIN coordinate system. I managed to create a text dump about the forest area in the following style: ...
0
votes
0answers
39 views

Zonal statistics raster striped in ArcMap

I am using ArcGIS Desktop 10.5. I have a Python program to extract peaks in a DEM Raster. After reclassifying the raster at various contours (e.g., above or below 130 m) and then converting the ...
0
votes
1answer
47 views

Treetop location in 3D: How can I find the coordinates (x,y,z) of point cloud's local maxima within polygon vectors?

I'm doing forestry analysis of some point cloud data and I have used segmentation procedures (i.e. watershed algorithm, etc..) to delineate the crown boundaries of individual trees in 2D. The vector ...
0
votes
0answers
28 views

Zonal Statistics for Overlapping Zones Consistent failure

I am trying to run Zonal Statistics for Overlapping Zones on some Buffer feature classes that overlap. I downloaded and ran the script and it succeeded in calculating the zonal statistics for my first ...
0
votes
0answers
26 views

Extracting pixels from a raster based on defined zones in another raster - ArcGIS

This seems like it should be a very simple task but for some reason is more difficult than I thought. Basically I have rasters with water table depth information, with each pixel representing a depth ...
0
votes
1answer
25 views

Attribute Error when trying to run a script with Zonal Statistics

When I run my script I get the following attribute error: Traceback (most recent call last): HouseGradeBasementElev.tbx#HouseGradeBasementElev.py", line 31, in <module> AttributeError: '...
1
vote
1answer
82 views

Earth Engine Image Zone Statistics (zonal stats)

I am looking at object oriented methods and wondered if there was a way of calculating image zone statistics (zonal stats) based on connected pixels. Essentially, I want to reduce the pixels in an ...
0
votes
0answers
40 views

Using Zonal Histogram for each pixel in a raster by creating a buffer?

I was looking to use the Zonal Histogram for each pixel in a raster by creating a buffer (let's say of 500 meters) for a LULC map of 100 meter resolution. I'm using ArcGIS 10.6., Model builder. ...
0
votes
1answer
39 views

Zonal Statistics only producing one line of statistics

I am by no means an expert in ArcGis, but I will try and explain my problem as clearly as possible. I am analysing forest cover data from the Hansen land-cover dataset ( data https://...
0
votes
0answers
11 views

ArcMap Zonal Statistics as Table 2 output does not contain all zones

I'm encountering an issue with zonal statistics in which my output table contains less zones than my input (the output contains roughly 1/3 of the input zones). It is a large data set with about 65,...
0
votes
0answers
37 views

Generate a custom GRID & Zonal statistics for the given Geometry in Google Earth Engine?

What are the ways to generate a Custom GRID (Ex: 100m x 100m) in Google Earth Engine for a given extent. Once the GRID is generated how to populate zonal statistics for the same GRID using any raster ...
2
votes
0answers
70 views

Calculating NDVI values for specific zones using zonal statistics using QGIS

I am currently working with multispectral data from a MicaSense RedEdge M on a plot size study in wheat research plots. I want to conduct zonal statistics to calculate NDVI for individual plots. I ...
0
votes
1answer
51 views

Extracting basic statistics (raster data) from different latitudes using R? [closed]

I want to extract the mean, min and max stats from latitude -50 to 0 and from 0 to 50 etc. No idea how to do this. I would prefer using R for this as I have a lot of these to do.
0
votes
0answers
131 views

GPKG and GPKG-WAL - not sure if main process finished

I am performing ZonalStatistics (mean value from a Float32 virtual raster) in QGIS 3.4 on a huge geopackage layer. Originally it was 240 GB and after few days the process became odd: The QGIS process ...
1
vote
1answer
86 views

Looping zonal statistics in QGIS?

Has anybody successfully used Zonal statistics in a loop in QGIS 3.8? I have to go through several rasters using a vector file. Batch processing seems to fail in QGIS 3.8 too - see Zonal statistics ...
1
vote
1answer
51 views

PyQGIS error when running zonal statistics?

I want to extract the sum of my raster cell values with a specific area through zonal statistics and have prepared the following code (see below). When I run the code I get the following error message ...
1
vote
0answers
47 views

Avoiding greyed-out rows in ArcGIS batch processing?

I'm using the batch processing ability in ArcMap 10.6.1 to run a ModelBuilder tool using Zonal Statistics As Table and Add Fields on a bunch of rasters. When I try to specify where to save the output ...
1
vote
1answer
152 views

Zonal statistics using Python console in QGIS gives AttributeError?

Here is how the log shows for one raster image. I want to do this same thing for several rasters. The batch processing is not working. QGIS version: 3.8.0-Zanzibar QGIS code revision: 11aff65f10 Qt ...
2
votes
1answer
68 views

Zonal Statistics As Table with more than one zone?

I am trying to sum up the cells of a raster that fall within a polygon of multiple habitat types and ten management authority zones. Is there a way for Zonal Statistics As Table in ArcMap 10.5 to use ...
0
votes
0answers
18 views

Raster calculator and Zonal Statistics as a table do not work on joint combined raster?

I combined 3 raster files in ArcMap 10.4 and then joined 3 .dbf table to the combined raster and exported the result to a new .tif file. Now I am trying to run "Raster calculator" and "Zonal ...
3
votes
0answers
61 views

Calculating number of different colored pixels in multiple polygons at once

I have a raster with 17 different colors. I need to find the count of pixels in each colour. I could use Zonal statistics for one polygon but I have to find the count in multiple polygons at once. How ...
2
votes
1answer
73 views

Zonal statistics basic output

I have been using the zonal statistics tool to quantify the variability of slopes around archaeological sites. I have noticed in some experiments that there are differences between the mean and the ...
1
vote
2answers
181 views

Python Zonal Statistics Problems in QGIS

I am trying to run Zonal Stats for Block Group shape files against NLCD Percent Impervious raster. I have shapefiles for 48 contiguous states all projected to the same as the raster. I've written ...
1
vote
0answers
32 views

Using Join Field more than once in ArcGIS Pro ModelBuilder?

I have a model where I'm trying to aggregate the zonal sums of a set of ~30 rasters into attributes on a shapefile of country boundaries. Ideally my model would create a new field in the country ...
0
votes
3answers
94 views

Model Only calculate value with zonal statistics as table

In a precedent post Multiple Output for Zonal Statistics as Table I was trying to have as many table in the output as the rasters in the input. To overcome my errors, I decided to add a "Model Only ...
0
votes
1answer
116 views

Multiple Output for Zonal Statistics as Table [closed]

I am trying to merge NDVI data from 2005 to 2018 (two .tif per decade) with a region land use. For this, I have used "iterate rasters" with 36 of .tif I'll be using, as the 'Input value raster' of ...
0
votes
1answer
56 views

Aggregating raster based on zones?

I'm using ArcMap 10.6.1. I have raster data and census tracts for Los Angeles. My goal is to take the mean value per census tract. I then want to aggregate all the cells in each census tract to be a ...
1
vote
1answer
59 views

Calculating areas of polygons that match with overlapping raster threshold value?

I have a polygon of districts (districts.shp) and a raster of rainfall (rainfall.tiff). I want to calculate the area of each district that saw rainfall greater than various numbers. I'd like to ...
0
votes
1answer
70 views

Zonal Statistics as Table: 999999 Error

I am receiving a 999999 error each time that I attempt to run Zonal Statistics as Table. I am attempting to overlay population data from an asc file with a shp file with French Alsatian municipal ...

1 2 3 4 5 8