ENH: Initial commit of new PR re: dpc

These three lines should be combined to `rows, cols = gx.shape`