(2)
Done. Any more will overflag the remaining good data
(Note : in a case like this, data that appears good in visibility amplitude may still not have good phases. This current algorithm will not account for this.)