How to calculate statistics of a raster conditioned by another raster?

976
1
01-16-2017 10:20 AM
SagarParajuli1
New Contributor

I have two rasters of equal resolution. First raster has real values ranging from 0.0 to 1.0. Second raster has integers representing data type ranging from 1 to 12. I need to calculate mean and standard deviation of the first raster corresponding to each data type of the second raster. For example, I want to calculate the mean and standard deviation of the cells in the first raster for which corresponding cells in the second raster have values of 1, and so on. How can I do that? Please help. 

Tags (1)
0 Kudos
1 Reply
DarrenWiens2
MVP Honored Contributor

You can run Zonal Statistics (or Zonal Statistics as Table), using your integer raster as zone and decimal raster as values.