I have a district shapefile (districts have different size) and a raster file of precipitation (18 km grid square resolution). I want to calculate precipitation for each district which I did using zonal statistics using my district as my feature zone data, precipitation as my input raster and statistics type = mean.
I have another raster file (0.5 km resolution) which shows the distribution of cropland in my district shapefile i.e. a grid with cropland has a value of 1 and a grid without cropland has a value of 0. What I actually want to do is to calculate the mean rainfall of total cropland within a district and not for the entire district.
Could anyone suggest how to go about it?