casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables
Functions
recipes.checknan Namespace Reference

Functions

def CheckUVWForNan
def CheckColsForNan

Function Documentation

def recipes.checknan.CheckColsForNan (   msname = '',
  fix = False,
  colnames = [],
  timeinterval = 1000 
)
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')    

Definition at line 28 of file checknan.py.

def recipes.checknan.CheckUVWForNan (   ms = '',
  fix = False 
)
script to check for NaN in uvw
if fix is true it will flag the row with nan data
and replace the uvw with 0
you can see how to do that to other columns too

Definition at line 4 of file checknan.py.