I have a raster file for India which is a cropland map with following information:
Columns and rows: 7015, 6582
Cell size: 0.0041666667, 0.0041666667
Each grid of this cropland has a value of either 1 (cropland, green) or 0 (no cropland, brown)
I have another raster file of India at a coarser resolution.
Columns and rows: 167, 160
Cell size: 0.16666668, 0.16666668
I want to calculate for each of the coarser grid, how many cropland grids are present. Presumably I could do this using zonal sum
by setting coarse map to input raster
and cropland map as the input value raster
. But this is not working and it gives me a map at coarser resolution but the values are just 1 and 2. I was wondering what issue is there.