Code for calculating the cell-wise areal overlap of a raster overlaid on a polygon.