2016-02-21 20:43:16 8 Comments

I have two raster files:

Raster 1 has 7974 grids (coarser resolution) with `Rowid`

, `Value`

and `Count`

.

Raster 2 is finer resolution and each grid has values either 1 or 0.

What I want to do is to find the number of 1s in each coarser grid (Raster 1). I assumed I could do this using zonal statistics (zonal sum). I used the following settings:

Input raster or feature zone data:
`Raster 1`

Zone field:
`Value`

Input value raster:
`Raster 2`

Statistics type:
`Sum`

This should just sum up all the 1s falling under the coarser resolution and give me what I need. However, when I run it, it returns me a raster file with only two values: 1 and 0 for each of my coarser grid. What is it that I am doing wrong here?

### Related Questions

#### Sponsored Content

#### 1 Answered Questions

### [SOLVED] Use zonal statistics for only some part of input shapefile

**2015-09-16 14:36:54****Crop89****72**View**2**Score**1**Answer- Tags: arcgis-desktop raster arcmap zonal-statistics

#### 0 Answered Questions

### Zonal statistics results in some NULL values in QGIS?

**2017-04-28 03:11:46****Ichiro****185**View**0**Score**0**Answer- Tags: qgis zonal-statistics null

#### 1 Answered Questions

### [SOLVED] Why does Zonal Statistics as Table return an empty table?

**2017-04-13 00:52:17****K. Credo****540**View**1**Score**1**Answer- Tags: arcgis-desktop arcmap spatial-analyst zonal-statistics

#### 1 Answered Questions

### [SOLVED] COUNT vs. SUM field of zonal statistics as table output table

**2016-12-20 02:03:46****cAnna01****1301**View**3**Score**1**Answer- Tags: arcgis-desktop spatial-analyst raster-calculator zonal-statistics

#### 2 Answered Questions

### [SOLVED] Zonal sum not working?

**2016-05-10 13:47:34****user53020****60**View**2**Score**2**Answer- Tags: arcgis-desktop arcmap zonal-statistics

#### 1 Answered Questions

### [SOLVED] Counting raster values using another raster as mask in R?

**2016-02-09 13:51:21****Sam****896**View**1**Score**1**Answer- Tags: raster r zonal-statistics aggregation

#### 1 Answered Questions

### [SOLVED] Resampling gives higher MEAN when using zonal statistics

**2015-11-30 22:52:26****Cicatrixx****151**View**2**Score**1**Answer- Tags: arcgis-desktop arcgis-10.1 statistics zonal-statistics resampling

#### 1 Answered Questions

### [SOLVED] zonal statistics sum on raster with same values

**2015-07-08 14:43:01****user53020****343**View**2**Score**1**Answer- Tags: arcgis-desktop raster arcmap spatial-analyst zonal-statistics

#### 1 Answered Questions

### [SOLVED] Zonal Statistics Tool on raster

**2014-10-05 20:27:53****Daniele De Angelis****678**View**3**Score**1**Answer- Tags: qgis raster multi-band multi-values

#### 0 Answered Questions

### Reshape Matrix and perform Zonal Statistics in Matlab

**2013-05-18 21:40:01****Tomek****398**View**1**Score**0**Answer- Tags: statistics matlab zonal-statistics

## 0 comments