I have some large NDVI and DEM images of Kerala, India. I also have a shapefile of the subdistricts in Kerala. I need to clip both the NDVI and the DEM so that there is an individual raster of NDVI and DEM for each of 14 subdistricts.

I used the clip function of the image analysis window to do this quickly, but the NDVI and DEM for each subdistrict don't have exactly the same numbers of rows and columns, which is a requirement for my application ( they will be converted to ASCII ). They are usually off by one column or one row.

I don't understand how this can happen because I am using the exact same shapefile to clip both rasters. This is in ArcMap. Sorry if this isn't enough info or a newbie question, I'm still learning.

The cell size of the two rasters must also be the same, so I can't just export the rasters and force a different number of columns because that would change the cell size.