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
18 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
21 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
18 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: '...
0
votes
0answers
37 views

Using Zonal Histogram for each pixel in a raster by creating a buffer?

I was looking to use the Zonal Histogram for each pixel in a raster by creating a buffer (let's say of 500 meters) for a LULC map of 100 meter resolution. I'm using ArcGIS 10.6., Model builder. ...
3
votes
2answers
170 views

Expected result for ZonalStatisticsAsTable MEAN Statistic Type?

I'm getting different results when using the ZonalStatisticsAsTable tool in 10.4.1 when compared to earlier versions (10.2 and 10.3). ArcGIS 10.2: ArcGIS 10.3: But in ArcGIS 10.4.1, the same data ...
1
vote
1answer
21 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 ...
0
votes
1answer
212 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 ...
0
votes
1answer
37 views

Zonal Statistics only producing one line of statistics

I am by no means an expert in ArcGis, but I will try and explain my problem as clearly as possible. I am analysing forest cover data from the Hansen land-cover dataset ( data https://...
2
votes
1answer
642 views

Looping qgis:zonalstatistics using PyQGIS? [closed]

I'm looking for some Python + QGIS for the following: import processing for i in range (1,20): processing.runalg("qgis:zonalstatistics", "/folder/input/raster.tif",%i, "/folder/input/poly.shp"...
1
vote
1answer
35 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
94 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
1answer
219 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 ...
0
votes
0answers
10 views

ArcMap Zonal Statistics as Table 2 output does not contain all zones

I'm encountering an issue with zonal statistics in which my output table contains less zones than my input (the output contains roughly 1/3 of the input zones). It is a large data set with about 65,...
0
votes
0answers
21 views

Generate a custom GRID & Zonal statistics for the given Geometry in Google Earth Engine?

What are the ways to generate a Custom GRID (Ex: 100m x 100m) in Google Earth Engine for a given extent. Once the GRID is generated how to populate zonal statistics for the same GRID using any raster ...
4
votes
1answer
140 views

QGis raster categories proportion per polygon

I have a raster layer of landuse and a vector layer of areas of interest. I would like to calculate for each polygon (areas of interest) the proportion or number of cells of the raster for each ...
2
votes
1answer
318 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= ...
1
vote
0answers
30 views

Calculating NDVI values for specific zones using zonal statistics using QGIS

I am currently working with multispectral data from a MicaSense RedEdge M on a plot size study in wheat research plots. I want to conduct zonal statistics to calculate NDVI for individual plots. I ...
0
votes
1answer
32 views

Extracting basic statistics (raster data) from different latitudes using R? [closed]

I want to extract the mean, min and max stats from latitude -50 to 0 and from 0 to 50 etc. No idea how to do this. I would prefer using R for this as I have a lot of these to do.
0
votes
0answers
97 views

GPKG and GPKG-WAL - not sure if main process finished

I am performing ZonalStatistics (mean value from a Float32 virtual raster) in QGIS 3.4 on a huge geopackage layer. Originally it was 240 GB and after few days the process became odd: The QGIS process ...
1
vote
1answer
29 views

PyQGIS error when running zonal statistics?

I want to extract the sum of my raster cell values with a specific area through zonal statistics and have prepared the following code (see below). When I run the code I get the following error message ...
1
vote
0answers
22 views

Avoiding greyed-out rows in ArcGIS batch processing?

I'm using the batch processing ability in ArcMap 10.6.1 to run a ModelBuilder tool using Zonal Statistics As Table and Add Fields on a bunch of rasters. When I try to specify where to save the output ...
3
votes
2answers
1k views

Zonal Statistics for multiple rasters

I'm trying to create a timeseries of raster data (one layer per year) by polygon (Administrative regions). Is there any way in QGIS to perform Zonal Statistics for multiple years (without having to ...
3
votes
2answers
967 views

Problem with calculating QGIS Zonal Statistics MEAN

I need to calculate some zonal statistics from raster files for some polygons in a shapefile. I am using the following code which works: eligibleLayer = QgsVectorLayer("/home/usr/Desktop/...
2
votes
1answer
29 views

Zonal Statistics As Table with more than one zone?

I am trying to sum up the cells of a raster that fall within a polygon of multiple habitat types and ten management authority zones. Is there a way for Zonal Statistics As Table in ArcMap 10.5 to use ...
0
votes
0answers
16 views

Raster calculator and Zonal Statistics as a table do not work on joint combined raster?

I combined 3 raster files in ArcMap 10.4 and then joined 3 .dbf table to the combined raster and exported the result to a new .tif file. Now I am trying to run "Raster calculator" and "Zonal ...
1
vote
2answers
80 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
52 views

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

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
2answers
794 views

Correcting Errors in Height Above Nearest Drainage (HAND) model

I have used this tread Spatial Analysis - Calculate a cells elevation (height) above the nearest stream cell to create a HAND map in ArcGIS. First I used the hydrology toolset to fill in sink in the ...
1
vote
0answers
76 views

How to remove negative values from a created HAND model

I have used ArcGIS to create a HAND (height above nearest drainage) using an SRTM DEM. However, some small portions have negative values in the model which is supposed to have zeros as the minimum ...
2
votes
0answers
51 views

Calculating number of different colored pixels in multiple polygons at once

I have a raster with 17 different colors. I need to find the count of pixels in each colour. I could use Zonal statistics for one polygon but I have to find the count in multiple polygons at once. How ...
1
vote
1answer
47 views

Calculating areas of polygons that match with overlapping raster threshold value?

I have a polygon of districts (districts.shp) and a raster of rainfall (rainfall.tiff). I want to calculate the area of each district that saw rainfall greater than various numbers. I'd like to ...
2
votes
1answer
68 views

Zonal statistics basic output

I have been using the zonal statistics tool to quantify the variability of slopes around archaeological sites. I have noticed in some experiments that there are differences between the mean and the ...
0
votes
1answer
40 views

Looping a function over a sequence of parameters with iterate()

I built a function landcov(area, date) to calculate the share of land types 0 to 3 in year "date" from MODIS12Q1 within the polygons of the "area" parameter. I want to use iterate() in a loop-like ...
0
votes
3answers
65 views

Model Only calculate value with zonal statistics as table

In a precedent post Multiple Output for Zonal Statistics as Table I was trying to have as many table in the output as the rasters in the input. To overcome my errors, I decided to add a "Model Only ...
1
vote
0answers
19 views

Using Join Field more than once in ArcGIS Pro ModelBuilder?

I have a model where I'm trying to aggregate the zonal sums of a set of ~30 rasters into attributes on a shapefile of country boundaries. Ideally my model would create a new field in the country ...
0
votes
1answer
68 views

Multiple Output for Zonal Statistics as Table [closed]

I am trying to merge NDVI data from 2005 to 2018 (two .tif per decade) with a region land use. For this, I have used "iterate rasters" with 36 of .tif I'll be using, as the 'Input value raster' of ...
0
votes
1answer
40 views

Aggregating raster based on zones?

I'm using ArcMap 10.6.1. I have raster data and census tracts for Los Angeles. My goal is to take the mean value per census tract. I then want to aggregate all the cells in each census tract to be a ...
1
vote
4answers
70 views

Determining NDVI of polygon using ArcGIS Desktop?

I have calculated the NDVI of a city. Now I want to know how "green" every street segment in that city is. I therefore buffered 7.5m on every street segment. I then used the Zonal Statistics as a ...
1
vote
0answers
204 views

Trouble interpreting zonal statistics as table output

Consider this a follow-up to this question. I transformed a census block group vector map (decided to use this instead of census tracts) into a raster map and generated a kernel density map using ...
0
votes
1answer
48 views

Zonal Statistics as Table: 999999 Error

I am receiving a 999999 error each time that I attempt to run Zonal Statistics as Table. I am attempting to overlay population data from an asc file with a shp file with French Alsatian municipal ...
0
votes
1answer
41 views

Understanding difference between area calculation when using zonal statistics tool and identify button?

I am working in ArcGIS Desktop 10.5 and I am a beginner. I have very basic, non-overlapping polygons over a raster that represents bathymetry data. I need to figure out various statistics about each ...
0
votes
1answer
36 views

Every geoprocess with merged raster produces 999999 (ArcMap 10.6)

I have a county where there is some LiDAR (1 meter) coverage. For the rest of the county I downloaded 10 meter DEM from USGS. Both rasters are in same projection and units. I resampled the 10 meter to ...
3
votes
1answer
149 views

Zonal Statistics is returning null values in ArcGIS Desktop?

I am using Zonal Statistics as Table to obtain the Max height from a DEM for each polygon (then Joined to the polygons). For some reason, a lot of the polygons get NULL returned. All the polygons ...
0
votes
0answers
18 views

XML to TIFF raster and zonal statistics in QGIS

I was sent several XML files of a flood model's peak extent that works fine in ArcGIS, I need to use zonal statistics, and I don't have that available in my workplace's ArcGIS subscription, so I need ...
5
votes
3answers
567 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
23 views

Weighted averages: accounting for cell size

I'm a non-geographer using ArcMap 10.6. I have a similar question to the two asked here: Weighted averages: accounting for grid cell surface variation in proportion to the cosine of its latitude I ...
0
votes
0answers
30 views

Build measure of state change

I want to be able to build a measure in ArcGIS (ArcMap). (1) I have some shapefiles of sovereign states by centuries. These are polygons with the name of the state as ID. (2) Moreover, I have a ...
6
votes
3answers
766 views

Wrong min value from ArcGIS 10.4 zonal statistics as table

I used the zonal statistics as table tool in ArcGIS10.4 to calculate SRTM, the in_zone is a gridded shapefile, the in_value_Raster is the SRTM extracted for the region as in the image (90m x90m). The ...
2
votes
1answer
73 views

Counting .tif value in polygon in QGIS

I am trying to count raster values (from a .tif file) in polygons. In previous posts that people suggested using the 'zonal statistics' plugin in QGIS. However, I couldn't find it in my plugin manager ...
2
votes
1answer
471 views

QGIS equivalent to the ArcMap Zonal Statistics as Table

Is there a QGIS equivalent to the Arc: Spacial Analyst: Zonal: Zonal Statistics as Table? Given the USDA Cropland Data Layer, Would like to count the pixels by type within a county.