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
0answers
12 views

ArcGIS Join returning some null values

I am a student in an ArcGIS specialization using ArcGIS 10.7.1 for Desktop, and have been struggling to complete part of an assignment. My assignment is to interpolate ozone data from monitoring ...
3
votes
1answer
819 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 ...
1
vote
2answers
254 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
1answer
70 views

Zonal statistics error - Algorithm Zonal Statistics starting… DatasetReadAsArray() got an unexpected keyword argument 'interleave' [closed]

After updating QGIS to 2.18.28 I cannot use Zonal Statistics. As soon as I use it (Raster EPSG 25830 and Polygon 25830), I get the following error message "Algorithm Zonal Statistics starting... ...
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
19 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
55 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
38 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
31 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.
2
votes
0answers
89 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
1answer
300 views

Zonal statistics results in some NULL values in QGIS?

I used zonal statistics through QGIS to assign raster image values to polygons. Here, Raster image has value in range from 0 to 238.567. As a result, some NULL values are assigned to polygons, even ...
2
votes
2answers
77 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
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. ...
0
votes
2answers
35 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 ...
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 ...
5
votes
3answers
1k views

Some zones disappear when running Zonal Statistics as Table in ArcGIS

I'm new to GIS. I want the sum of nighttime lights (DMSP) by district for some country. I'm running this arcpy.gp.ZonalStatisticsAsTable_sa(Limites_distritales, "IDDIST", rc, temp_table, "DATA", "") ...
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) ...
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). ...
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
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 ...
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
1answer
537 views

Polygons too Small for Zonal Statistics

In ArcMap, Zonal Statistics uses the centre points of the Rasters pixels to link to the under or overlying polygons. Some of the polygons that I am using are small enough that they do not overlap ...
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 ...
3
votes
2answers
501 views

Unexpected behaviour of extract function in the raster package

Calculating zonal statistics in R with the extract function in the raster package, I found unexpected behaviour. I have a raster layer of rather large cell size and a polygon layer of relatively small,...
5
votes
2answers
108 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 ...
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 ...
0
votes
1answer
190 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
74 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)...
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 ...
0
votes
1answer
276 views

Zonal statistics error in arcpy

I'm trying to get the zonal statistics output (mean), do some operations and add to my main archive the output value. I wrote this code, but it's not running, the error message is: Traceback (most ...
1
vote
1answer
212 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 ...
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
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 ...
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
49 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
357 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= ...
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
48 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 ...
3
votes
1answer
106 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 ...
1
vote
1answer
186 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, ...
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('...
6
votes
1answer
595 views

Determining whether raster pixels in or out of zone

I am running ArcGIS 10.2.2 and often use the Zonal Statistics and Tabulate Area Tools. I wanted to confirm that the area of a pixel will only be included in the tabulated area if the pixel centroid is ...
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
120 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 ...
1
vote
1answer
141 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
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 ...
2
votes
1answer
42 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
2 3 4 5
8