There should be a parameter determining the consideration of flagged data in ~~Measurement Sets and~~ FITS files.