Lidar uncertainty and beam averaging correction