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
21 views

ArcGIS Pro Spatial Analyst returns ERROR 000861 when trying to do Zonal Statistics as Table [closed]

I am trying to use Zonal Statistics as a Table in Python script and I end up getting an ERROR 000861, where it says: https://i.stack.imgur.com/IaHio.png I have tried Googling this error but to no ...
1
vote
1answer
26 views

Calculating zonal statistics for each polygon in shapefile using GEE

I have shapefile of counties and want to calculate mean NDVI for each. I know reducing connected components and ee.reducer.mean can be helpful in GEE but it wants it as CSV for further analysis in R ...
-1
votes
0answers
29 views

Zonal statistics for huge number of polygons gives ERROR 999999

I have a dataset of 50000 polygons and I want to get the average values in each polygon for an underlying raster of about 400000 rows and columns. When I am trying to use zonal statistics and use the ...
1
vote
0answers
34 views

Calculating mean value for all pixels within given distance for all pixels in study area using raster analysis in QGIS

I am working in QGIS I have a raster layer depicting the population density for a country. A portion of this raster layer is used as a study area. I want to know for each pixel in that study area what'...
2
votes
1answer
59 views

How GEE align pixels and projection when reduce resolution?

Here is the thing: I want to count how many Landsat pixels 30x30m were included in a 500x500m MODIS pixel. It is basically a zonal statistics, and I use reduceResolution to compute. But the issue is: ...
0
votes
0answers
17 views

Create a raster image with integer sequence in Google Earth Engine

I'd like to create an image with pixel values that are integer sequence 1,2,3,4.... . With pixel size equal to a MODIS pixel 500m and pixel align with MODIS as well. So that I can use a grouped ...
1
vote
0answers
34 views

Speed up zonal statistics with additional calculation

I have two rasters, one is a classified image and the other the corresponding probabilities for a correct classification. Now I need to calculate zonal statistics for polygon segments in the following ...
0
votes
0answers
18 views

Plot statistics of a raster dataset by latitude in GEE?

How can I plot some statistics of a raster by latitude (see bottom picture) in GEE? Some pictures of a paper are attracting, so I want to know how to reproduce this in GEE or ArcGIS or QGIS or some ...
0
votes
1answer
35 views

Function to count pixels within polygons with a given attribute in Google Earth Engine

I am working with the Hansen Global Forest Change loss year layer. This raster tells us the year a 30m pixel transitioned to zero forest cover (2000-2014), if relevant (otherwise zero). I am producing ...
1
vote
1answer
23 views

Reduce image using two image inputs - one with zones the other with data to summarize

I would like to reduce an image where the inputs are two images and the output is a table. One image will have zones (integer values) and the other data to summarize. For each zone in an image, I ...
1
vote
1answer
29 views

Zonal Statistics sum of everything touched by polygon

I'm trying to find the sum of all raster values unweighted, that touch my polygon layer. In the picture I've below that would give me a sum of 7.4, instead it calculates it as 6.55 because the top ...
2
votes
1answer
42 views

Variety measure is always 0 with zonal statistics in QGIS 3.16

I am trying to calculate two zonal statistics: count and variety. My raster is a produce of r.raster.area with 4399 groups of pixels within a matrix of no-data values (which are coded as 65535). My ...
0
votes
0answers
21 views

How to obtain summary of overlapping vector layers by attribute (eg land use within properties) - QGIS

I am trying to determine a repeatable methodology for obtaining a land use change summary for a number of properties. Inputs (both in same coordinate system): Land Use Change shapefile with a number ...
1
vote
0answers
16 views

Managing coordinates and projections for zonal statistics on global data

I am working with a global raster that is in the World Mollweide (EPSG: 54009) projection. I also have a set of polygons from different parts of the globe that are shapefiles in the WGS 84 (EPSG: 4326)...
3
votes
1answer
33 views

A quicker way to perform zonal statistics for overlapping zone data

I am facing a similar problem to Using Zonal Statistics As Table for overlapping polygons in ArcPy? which links to Calculating zonal statistics of raster data in multiple overlapping zones and ...
4
votes
1answer
52 views

Geometry Generator and Zonal Statistics

I am trying to compute population affected by various distances, during earthquake events. The earthquake point events update every minute and I need to find a way how to create automatic buffers and ...
0
votes
2answers
46 views

Identify the coordinates of the max values resulting from using the Zonal Statistics tool

I used the Zonal Statistics tool to extract the max values of a raster/DEM layer. The attribute table shows the result, but the problem now is to identify the coordinates of the said maximum elevation....
1
vote
2answers
49 views

“Zonal statistics” for two polygon layers using ArcMap

I have 2 polygon layers: one is a vector grid with attribute values for each "polygon cell" the other including administrative boundaries I would like to calculate the mean value of all ...
0
votes
1answer
33 views

zonal_stats returns PROJ error

I have been using zonal_stats from the rasterstats module for quite some time in Python. And I have never come across this error, which I tried to Google to find some solution with no succes. ...
1
vote
1answer
48 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
59 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 ...
2
votes
0answers
17 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
29 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
65 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
67 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
177 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. ...
1
vote
1answer
52 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
28 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
72 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
2answers
43 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
66 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
75 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
130 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
20 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
84 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
29 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 ...
3
votes
2answers
223 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
61 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
15 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
27 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 ...
2
votes
2answers
78 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
207 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
36 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
106 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
188 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
60 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
133 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
172 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
66 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 ...

1
2 3 4 5
9