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

Analysing Raster, Shapefile and DBF together using ArcGIS Pro

Note at the bottom for a possible solution, though it's not very elegant! I’m at a bit of a brick wall – I think this probably has a really simple solution, but I’m not quite sure where to start. ...
0
votes
0answers
23 views

Getting raster value area per polygon with many values in QGIS

I was trying to get the area of each pixel values over each polygon in a shapefile. My raster file has so many values (more than 1 thousand pixel values). I usually do this by executing 'Zonal ...
0
votes
0answers
10 views

Troubles replacing null values with specific numbers [duplicate]

After i've used "zonal statistics as table" on some buffers, some values got lost (which seems to be a common problem when buffers overlap as mine does). Now, i would like to replace these ...
1
vote
1answer
32 views

Calculating zonal statistics as table for all attributes (columns) in raster using ArcGIS Desktop

I have a raster that has multiple columns in the attribute table that I can symbolize. I would like to calculate zonal statistics as a table for each of the columns in the raster attribute table ...
0
votes
1answer
19 views

How to select classes from a GeoTIFF world map and compute the area by regions defined in a shapefile

I have two files: fileLUse.tif defines land cover classes in GeoTiff format (from https://www.esa-landcover-cci.org/?q=node/164) fileRegions.shp defines administrative borders and it is a shapefile (...
1
vote
1answer
29 views

QGIS zonalstatisticsfb returns NULL

I am trying to calculate the population count (raster geotiff) lying under a polygon (vector layer). The appropriate QGIS library zonalstatisticsfb sum returns NULL. My QGIS python code is: processing....
0
votes
1answer
19 views

Extracting data to table for two rasters with identical polygons (different values) using ArcGIS Pro

I have a raster image of watershed catchments where the raster value is the catchment ID. Using this raster and the "Zonal Statistics", I created a separate raster of land use where the ...
0
votes
0answers
29 views

Zonal Statistics in QGIS 3.16

I have a NDVI raster file generate from Landsat-8 data and using the Identify Features tool I am able to observe the individual values per pixel. I also have a vector kml file breaking down a region ...
1
vote
1answer
28 views

Mapping over a reduceRegions command in Earth Engine

I have a feature collection of about 80,000 tiles, and I am trying to calculate the annual maximum drought severity index score for each tile using TerraClimate data. TerraClimate is an image ...
3
votes
1answer
49 views

rasterstats zonal statistics does not ignore nodata

I am trying to write a script to perform some zonal statistics with rasterestats, but I am really struggling with nodata values. I noticed a different behaviour 1) when running zonal_stats with numpy ...
0
votes
1answer
31 views

Average polygon value

I have a bitmap that contains a polygon NDVI and nodata space. How do I get the average value of the polygon only, and not the entire raster.
0
votes
0answers
21 views

Counting number of pixels in each tile in Earth Engine

I have 0.02° tiles across some regions of interest in Africa. I am trying to find the percent of 300m ESA land cover pixels that are classified as cropland (classification 10-30) for each tile, as ...
0
votes
0answers
17 views

Transforming or reprojecting Vector to another CRS without using ballpark transformations that result in loss of geometry

I am having trouble converting CRS of a Vector and getting the error: Used a ballpark transform from EPSG:4326 to EPSG:2230 The Details are below. An alternative, ballpark-only transform was used when ...
0
votes
0answers
23 views

Statistical difference in DEM-height compared to a specific point(feature)

Recently I've been struggling when trying to compare surrounding points of a DEM to a specific one (a feature in my case. A castle to be precise). I want to find out how steep a slope in an area ...
3
votes
0answers
41 views

QGIS Zonal Statistics: Sum of Partial Area Larger Than Sum of Total Area

I've been trying to use zonal statistics to get the proportion of a population in an area relative to the larger administrative district that the area falls under. My workflow is: Run zonal ...
1
vote
1answer
20 views

Reduce region applied to multi-country area when ImageCollection is organized by country and year in Google Earth Engine

I am calculating zonal statistics for 0.01-degree tiles that fall within buffer areas across sub-Saharan Africa. I want to determine the estimated population counts within the tiles for years 2001-...
0
votes
1answer
51 views

Polygon Drill on Open Data Cube

I face a crucial problem with ODC. I try to do a spatial join with a shapefile (polygon drill). I have followed the following steps: Read the shapefile and get the first polygon to test Ensure that ...
0
votes
1answer
41 views

Is there a way to calculate zonal entropy index for a raster?

I have an elevation raster and a grid shapefile: What I want to do is calculate zonal statistics of the raster based on the grid features. The "statistic" I want is the entropy index (...
2
votes
2answers
80 views

Changing Legend Symbology to include a 'Sum' field using QGIS 3.16.3 Python Console

I currently have a vector layer that contains intensity polygons and are colour co-ordinated depending on the level of intensity. Within this 'Intensity' file, there are two columns Intensity and ...
0
votes
1answer
81 views

Zonal statistics with feature collection column (Google Earth Engine)

I have run into a very similar problem a few times while working in Google Earth Engine and never found a good solution. I am working with raster data (continuous values) and a feature collection of ...
1
vote
1answer
55 views

Zonal statistic that fits area portion of polygons using ArcMap

As you can see below, I have a polygon feature with boundary of seven regions. I need to extract the raster value intersect to it that fit portion of every region area touches to the pixel. For ...
0
votes
0answers
34 views

NullPointException when calculating RasterZonalStatistics in geoserver

I am trying to generate raster zonal statistics for a raster by providing a custom polygon in geoserver. When I make a ras:RasterZonalStatistics request, I get a NullPointException error. Request: <...
0
votes
1answer
47 views

Error calculating RasterZonalStatistics in Geoserver [duplicate]

I am trying to generate raster zonal statistics for a raster by providing a shapefile in geoserver. When I make a gs:RasterZonalStatistics or ras:RasterZonalStatistics request, I get an error saying: ...
1
vote
1answer
87 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
vote
0answers
37 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
122 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
23 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
39 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
21 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
60 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
26 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
38 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
70 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
24 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
25 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
107 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
60 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
52 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....
2
votes
2answers
88 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
55 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
69 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
106 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
44 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 (...
2
votes
2answers
100 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
78 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
320 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
72 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
31 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
151 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 ...

1
2 3 4 5
9