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
1
vote
2answers
36 views

Zonal Statistics giving ERROR 000824: The tool is not licensed

I have a script and when I run the ZonalStatisticsAsTable I get this error: File "C:\Program Files (x86)\ArcGIS\Desktop10.5\ArcPy\arcpy\geoprocessing_base.py", line 510, in return lambda *...
0
votes
1answer
28 views

Derive the statistical values from the time series data

I am trying to derive 5 statistical values: 1) maximum; 2) minimum; 3) standard deviation; 4) medium; and 5) 1090 interval mean from the time series data. And I know there are existed functions in GEE ...
1
vote
0answers
14 views

Statistics from one image to another in Google Earth Engine

I now have two images of the same place, image1 stores image values and each pixel on image 2 stores time (jday).I want to count the sum of image values of image1 at the same time point on image2.For ...
0
votes
0answers
11 views

Zonal Statistics not running in QGIS 3.12

I am working on Nighttime light data from NOAA. The study area is India at state level. After masking the raster, when I am trying to run the zonal statistics with raster and vector polygon layer (...
1
vote
2answers
54 views

Zonal statistics USFS tree cover by census block

I want average tree cover for every census block. I have a file of census blocks, and I have a USFS tree cover file from USFS Tree Canopy Cover Datasets that looks like this: I'm trying to use zonal ...
2
votes
1answer
54 views

Zonal statistics (mode, variety) in PostGIS

I would need to get different statistics than are available in ST_SummaryStats. In particular I need mode (majority) and variety (number of different values) for a discrete raster and according ...
4
votes
1answer
75 views

QGIS zonal stats for vectors

I am working in QGIS 3.10.4 trying to capture zonal stats for a polygon within a polygon. For example (picture below), two red lines make up a rectangular polygon that hold its blue circular polygons. ...
0
votes
0answers
47 views

Disaggregating data from rough ZIP3-level to fine ZIP5-level using QGIS

I am looking for a way to improve the spatial resolution of income data using a map of population density. I have the income data for postcode area 646, but I want it for the higher resoluted postcode ...
1
vote
1answer
32 views

Zonal statistics 2 ends up causing a fatal error. Is there an alternative?

I have recently switched to using the "zonal statistics as table- 2" supplemental tool instead of the regular "zonal statistics" because I have overlapping polygons which zonal ...
0
votes
0answers
24 views

Including weighted values in zonal statistics using stand-alone PyQGIS script

I am having trouble to include the (spatial) weight of a pixel when using zonal statistics in a stand-alone python script (jupyter notebook 6.0.3 on Ubuntu 18.04.5). My data contains of a .tiff (...
1
vote
2answers
36 views

Zonal Statistics in QGIS 3

I moved from QGIS 2 to QGIS 3 I cannot seem to be able to use the zonal statistics package. Basically what I want to do is take the world pop GeoTIFF for a country and then calculate the population ...
0
votes
1answer
34 views

Summarizing raster values by vector category in QGIS (equivalent to ArcGIS Zonal Statistics as Table)

Is there a function in QGIS that will tabulate zonal statistics by vector category? In ArcGIS, this can be done using Zonal Statistics as Table, but it looks like the QGIS Zonal Statistics function ...
0
votes
0answers
24 views

QGIS how to batch process zonal statistics?

I'm trying to figure out how to run "zonal statistics" in QGIS 3.8.2 (qgis:zonalstatistics) on multiple hundred shapefiless with building footprints and corresponding raster files (each ...
2
votes
2answers
45 views

Zonal statistics using two raster, one with zones and the other with data using Python

I am trying to calculate the mean of a raster using zone data from another raster. The zone data was created using the Whitebox clump tool where each group of pixels have a unique ID number. There are ...
1
vote
0answers
109 views

Zonal statistics for multiple rasters with overlapping polygons

I have a shapefile with 300 polygons that correspond to 300 rasters (the rasters have the exact same extent than their corresponding polygons). What I'm trying to do is to run Zonal Statistics on this ...
1
vote
0answers
18 views

Test for spatial uniformity of areal variable

Suppose we have data for uniform polygons with weight variable n and value variable x representing an average of observations within each polygon that looks like this: n x ...
0
votes
0answers
31 views

GRASS Tool r.stats.zonal for QGIS 3.14 Pi is not working in batch mode

I am trying to calculate the averages and standard deviations of the pixels of a group of 31 vegetation index rasters calculated from Landsat images, but only where these rasters intersect the ...
0
votes
0answers
26 views

Average Kernel Density as Dependent Variable in Regression

I have point pattern dataset and I estimated a kernel surface from it. I want to use a census tracts average kernel density as a dependent variable in regression analysis. Is OLS appropriate or should ...
2
votes
2answers
118 views

R zonal statistics for classes

I am trying to extract zonal statistics for different classes in R. I have a raster with two classes (0,1) and need the area (or percentage) of each class under the area of each polygon. I tried ...
0
votes
1answer
29 views

Zonal Statistics - polygons and rasters with different projections

I know that there are many many posts about this type of topic already, but all solutions did not work out for me so far. I have a shapefile with polygons, which is described here and can be ...
0
votes
0answers
13 views

Zonal statistics projected differently ArcGIS Pro 2.5

I have a fishnet of equally sized raster cells of 1/4 degree, which spans the whole world. Furthermore, I have a netCDF file containing precipitation data. I load both, the shape and the raster file, ...
0
votes
0answers
21 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 ...
1
vote
2answers
52 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
69 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
33 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
59 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
100 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
36 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 ...
2
votes
0answers
101 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
10 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
104 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
47 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
35 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
92 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
15 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
79 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
33 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
61 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
146 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
56 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 ...
6
votes
2answers
137 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
60 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
129 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
29 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
52 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
247 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
55 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
159 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
56 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
2 3 4 5
9