while x.size * shift_x > proj_grid[0] - probe_grid[0] + shift_x:
        x = x[:-1]