Check for NaNs in specified columns of the MS.
ms : Name of MS.
fix : False/True : If True,
For data/corrected_data, set the corresponding value to zero and
flag to True in the FLAG column
For weight, weight_spectrum, set the corresponding value to zero
For all other columns, do not fix/change anything.
colnames : ['data','weight'] : MS Column names on which to check for NaNs
timeinterval : 1000 : timerange in seconds, to decide chunk sizes while iterating
through the MS (remember, chunks of this size are read
into python).
Alternate (recommended) way to flag NaNs from data columns :
tflagdata(vis=ms, mode='clip')