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
0
votes
1answer
18 views

Only few values are considered in zonal statistics as table, ArcGIS

I have a raster file of runoff values at a spatial resolution of 30 minutes, and I am trying to find the runoff values at 5 min grids using a fishnet shapefile of 5 min resolution. I use the zonal ...
1
vote
1answer
35 views

Python Script for Zonal Statistics As Table results empty Table

I have a TIFF format file and want to automate some tasks. I have a Python script for Zonal Statistics as Table but it results in empty table output. However, the Zonal Statistics As Table Tool at ...
1
vote
1answer
53 views

GeoPandas statistics of points within a multi polygon (grid) [duplicate]

I usually use numpy for my processing but I'm trying to make the most of the power of GeoPandas for my spatial data. I have some point data (shapefile) and a vector grid (fishnet) as a separate ...
0
votes
0answers
37 views

How valid is it to use 1ha zonal means from high resolution topographic rasters (TPI, slope, etc) for regression analysis?

I am performing a multiple linear regression analysis to determine how a biotic dependent variable is influenced by a handful of topographic and hydrologic variables. The ultimate goal is to determine ...
0
votes
0answers
30 views

Rename the zonal statics table same as the raster name in ArcGIS model builder

I need to get zonal statics for multiple raster files. However, I would like the name of the output table to be the same as the raster name but i am getting errors.
0
votes
0answers
31 views

Zonal stats of multiple rasters in Python

I have a python script to get the zonal stats for one raster. Trying to use the same for multiple rasters. I have seen so many answers on similar post but somehow none seems to be working on mine. ...
2
votes
2answers
74 views

Fast Zonal Statistics to replace velox?

Does anyone know an equivalent package for the velox package for fast zonal statistics in R? This package was by far the best performing tool when working with large raster objects but has been ...
0
votes
2answers
34 views

What cell size do I use when the raster cell size is larger than the zonal vector features for Zonal statistics as table tool?

I want to calculate the mean precipitation from a PRISM raster for a land use data layer using the Zonal statistics as table tool for ArcGIS 10.7. The land use vector layer contains over 20,000 ...
0
votes
0answers
20 views

How to assign an “Output column prefix” using the base file name from a Raster in QGIS Zonal statistics?

I'm trying to get the base file name from a raster file (using the function: Files and Paths > base_file_name). The idea is to get the base file name from the Raster layer (no paths, no extensions) ...
2
votes
0answers
84 views

Python: How to get x,y coordinates of the highest raster values located in a list of polygons

I would like to extract and convert to a shapefile the coordinates of the highest pixel values located in several polygons. Such treatment was quite straight forward to achieve in R but I'm a total ...
0
votes
0answers
9 views

Zones are not made for every color variation

I have some ndvi values by which I have made interpolation (used IDW) map. When I use contour tool from Spatial Analyst tool it only outlines(blue lines) some data. I have tried different contour ...
1
vote
1answer
87 views

How can I optimize the processing time of the zonal_stats module using multiprocessing in Python?

I am carrying out a spectral feature extraction in Python 3 starting from an 8-band image and a shapefile (consisting of about a million polygons) superimposed on it. I calculate the mean and standard ...
0
votes
1answer
37 views

Rasterstats in Python with .IMG files

I am currently trying to use zonal_stats of the rasterstats package to get zonal statistics of processed satellite images. The data is stored as .img-format and i have a shapefile containing 1 ...
0
votes
1answer
29 views

QGIS Zonal Statistics (Variety) returns zero or keymap error depending on QGIS version

I need to calculate Variety of pixels for every polygon in a shapefile but the analysis returns zero. Polygons are much bigger than a raster cell which is 10 m. Polygons are completely covered with ...
1
vote
0answers
46 views

Raster Zonal Statistics for large files

I have a shapefile that consists of 375m x 375m cells from the State of California, consisting of a total of 3,022,037 cells. The raster file covers the same geographical area, but consists of smaller ...
2
votes
0answers
14 views

Determining raster points inside polygon

I am trying to perform zonal statistics on a input DEM and a polygon shapefile using ArcPy in Python 2.7. I have done this in Python 3, but want to be able to do it using ArcPy tools in Python 2.7. So ...
1
vote
1answer
73 views

How to extract max elevation values for each road links in a shapefile using Python libraries?

I want to extract values from a raster DEM file for each feature (polyline) in a shapefile. For each feature in a road shapefile, I want to extract the max and min elevation within a buffer (say 10 ft)...
0
votes
0answers
20 views

Featureclass attribute tables corrupted, but still exportable?

I have a model that takes a geodatabase of rasters and a featureclass, iterates through the rasters using the FC to calculate zonal stats on each, then creating a field and storing the values in the ...
0
votes
0answers
29 views

zonal_stats results misaligned

I am trying to clip a raster file with a shapefile using zonal_stats. The obtained clipped raster however does not follow the polygon in the shapefile and the clipped raster covers more area than the ...
1
vote
1answer
47 views

Zonal histogram from 3 band RGB soil raster

I have soil map with 3 RGB bands and I need a zonal histogram for polygons from this raster (how many pixels of each soil the polygon contains). First I tried to sieve the raster and then get zonal ...
2
votes
1answer
108 views

Locating the maximum values of a raster intersection with a vector of polygons using Python

I have extracted the statistics of a raster in the polygons of a vector layer using the python zonal_stats function. I need to identify the coordinates of the found maximum values. How can I do it ...
0
votes
1answer
47 views

Write Zonal Statistics as table to an editable table in Python

I am performing zonal statistics as table on many rasters (different years of data). I would like to write the result to a table that I can edit, so that I can rename the "SUM" column and left join ...
5
votes
2answers
107 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 ...
0
votes
1answer
44 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
103 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
27 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
49 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
183 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
39 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
115 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
50 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
134 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
41 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
76 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
61 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
36 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
147 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
63 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
37 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
64 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
75 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
47 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
132 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
44 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
82 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
34 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
33 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
307 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 ...

1
2 3 4 5
8