Helper function for regridding that returns x and y coords.