ycoord = np.append(ycoord, ycoord[-2, :].reshape(1, m), axis=0)