casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables
Public Member Functions | Public Attributes | Static Public Attributes | Private Attributes | Static Private Attributes
flagdata_cli.flagdata_cli_ Class Reference

List of all members.

Public Member Functions

def __init__
def result
def __call__
def paramgui
def defaults
def check_params
def description
def itsdefault

Public Attributes

 parameters

Static Public Attributes

 rkey
 Handle globals or user over-ride of arguments.
 i_am_a_casapy_task
list retval
 This function sets the default values but also will return the list of parameters or the default value of a given parameter.
string valornotval
tuple retval

Private Attributes

 __bases__
 __doc__
 __globals__

Static Private Attributes

string __name__
dictionary __async__

Detailed Description

Definition at line 18 of file flagdata_cli.py.


Constructor & Destructor Documentation

Definition at line 26 of file flagdata_cli.py.


Member Function Documentation

def flagdata_cli.flagdata_cli_.__call__ (   self,
  vis = None,
  mode = None,
  autocorr = None,
  inpfile = None,
  reason = None,
  spw = None,
  field = None,
  antenna = None,
  uvrange = None,
  timerange = None,
  correlation = None,
  scan = None,
  intent = None,
  array = None,
  observation = None,
  feed = None,
  clipminmax = None,
  datacolumn = None,
  clipoutside = None,
  channelavg = None,
  clipzeros = None,
  quackinterval = None,
  quackmode = None,
  quackincrement = None,
  tolerance = None,
  addantenna = None,
  lowerlimit = None,
  upperlimit = None,
  ntime = None,
  combinescans = None,
  timecutoff = None,
  freqcutoff = None,
  timefit = None,
  freqfit = None,
  maxnpieces = None,
  flagdimension = None,
  usewindowstats = None,
  halfwin = None,
  winsize = None,
  timedev = None,
  freqdev = None,
  timedevscale = None,
  freqdevscale = None,
  spectralmax = None,
  spectralmin = None,
  extendpols = None,
  growtime = None,
  growfreq = None,
  growaround = None,
  flagneartime = None,
  flagnearfreq = None,
  minrel = None,
  maxrel = None,
  minabs = None,
  maxabs = None,
  spwchan = None,
  spwcorr = None,
  basecnt = None,
  action = None,
  display = None,
  flagbackup = None,
  savepars = None,
  cmdreason = None,
  outfile = None,
  async = None 
)
All-purpose flagging task based on data-selections and flagging modes/algorithms.

    This task can flag a Measurement Set or a calibration table. It has 
    two main types of operation. One type will read the parameters from 
    the interface and flag using any of the various available modes. The 
    other type will read the commands from a text file or a Python list of 
    strings, containing a list of flag commands (each line containing data 
    selection parameters and any parameter specific for the mode being 
    requested). Please see examples at the end of this help.
    
    It is also possible to only save the parameters set in the interface 
    without flagging. The parameters can be saved in the FLAG_CMD sub-table 
    or in a text file. Note that when saving to an external file, the parameters 
    will be appended to the given file.
    
    The available flagging modes are: manual, clip, shadow, quack, elevation, 
    tfcrop, rflag, extend, unflag and summary.

    The current flags can be automatically backed up before applying new 
    flags if the parameter flagbackup is set. Previous flag versions can be 
    recovered using the flagmanager task.
    
    NOTE on flagging calibration tables.
    -----------------------------------
    
    When the input is a calibration table, the modes 'elevation' and 'shadow'
    will be disabled. Data selection for calibration tables is limited to field,
    antenna and spw at the moment. It is only possible to save the parameters 
    to an external file. 
    
The task will flag a subset of data based on the following modes of operation:

    list        = list of flagging commands to apply to MS/cal table
    manual      = flagging based on specific selection parameters
    clip        = clip data according to values
    quack       = remove/keep specific time range at scan beginning/end
    shadow      = remove antenna-shadowed data
    elevation   = remove data below/above given elevations
    tfcrop      = automatic identification of outliers on the time-freq plane
    rflag       = automatic detection of outliers based on sliding-window RMS filters
    extend      = extend and/or grow flags beyond what the basic algorithms detect
    summary     = report the amount of flagged data
    unflag      = unflag the specified data

    Keyword arguments:
    vis -- Name of input visibility file or calibration table.
default: '' (none) 
example1: vis='uid___A002_X2a5c2f_X54.ms' or
example2: vis='cal-X54.B1'

Any flagging will only be applied to the specified selection.

      antenna -- Select data based on baseline
    default: '' (all); example: antenna='DV04&DV06' baseline DV04-DV06
    antenna='DV04&DV06;DV07&DV10' #baselines DV04-DV06 and DV07-DV10
    antenna='DV06' # all cross-correlation baselines between antenna DV06 and 
            all other available antennas
    antenna='DV04,DV06' # all baselines with antennas DV04 and DV06
    antenna='DV06&&DV06' # only the auto-correlation baselines for antenna DV06
    antenna='DV04&&*' # cross and auto-correlation baselines between antenna DV04
                             and all other available antennas
    antenna='0~2&&&' # only the auto-correlation baselines for antennas 
                                   in range 0~2

      spw -- Select data based on spectral window and channels
    default: '' (all); example: spw='1'
    spw='<2' #spectral windows less than 2
    spw='>1' #spectral windows greater than 1
    spw='1:0~10' # first 10 channels from spw 1
    spw='1:0~5;120~128' # multiple separated channel chunks.

    Note : For modes clip, tfcrop and rflag, channel-ranges can be excluded 
    from flagging by selecting ranges such as spw='0:0~5;10~63'. This is a way to
    protect known spectral-lines from being flagged by the autoflag algorithms.

      correlation -- Correlation types or expression.
    default: '' (all correlations)
            For modes clip, tfcrop or rflag, the default means ABS_ALL. If
            the input is cal table that does not contain a complex data column,
            the default will fall back to REAL_ALL.
    example: correlation='XX,YY' or
    options: Any of 'ABS', 'ARG', 'REAL', 'IMAG', 'NORM' followed by
             any of 'ALL', 'I', 'XX', 'YY', 'RR', 'LL', 'Sol1', 'Sol2', 'WVR'
             'WVR' refers to the water vapour radiometer of ALMA data.
    example: correlation='REAL_XX,XY'
  -->correlation selection is not supported for modes other than clip, tfcrop or
      rflag in cal tables.      
    
    Note that the operators ABS,ARG,REAL, etc. are written only once as the first value.
    if more than one correlation is given, the operator will be applied to all of them.
    
    The expression is used only in modes clip, tfcrop and rflag.

      field -- Select data based on field id(s) or name(s)
    default: '' (all); example: field='1'
    field='0~2' # field ids inclusive from 0 to 2
    field='3C*' # all field names starting with 3C

      uvrange -- Select data within uvrange (default units meters)
    default: '' (all); example:
    uvrange='0~1000klambda'; uvrange from 0-1000 kilo-lambda
    uvrange='>4klamda';uvranges greater than 4 kilo-lambda
    uvrange='0~1000km'; uvrange in kilometers
  -->uvrange selection is not supported for cal tables.                          

      timerange  -- Select data based on time range:
    default = '' (all); example,
    timerange = 'YYYY/MM/DD/hh:mm:ss~YYYY/MM/DD/hh:mm:ss'
    Note: YYYY/MM/DD can be dropped as needed:
    timerange='09:14:0~09:54:0' # this time range
    timerange='09:44:00' # data within one integration of time
    timerange='>10:24:00' # data after this time
    timerange='09:44:00+00:13:00' #data 13 minutes after time
  -->timerange selection is not supported for cal tables.      

      scan -- Select data based on scan number
    default: '' (all); example: scan='>3'
  -->scan selection is not supported for cal tables.                          

      intent -- Select data based on observation intent
    default: '' (all); example: intent='*CAL*,*BAND*'
  -->intent selection is not supported for cal tables.                          

      array -- Selection based on the antenna array
    default: '' (all); 
  -->array selection is not supported for cal tables.                          

      observation -- Selection based on the observation ID
    default: '' (all); example: observation='1' or observation=1
  -->observation selection is not supported for cal tables.                          

      feed -- Selection based on the feed - NOT IMPLEMENTED YET


    mode -- Mode of operation.
options: 'list', 'manual','clip','quack','shadow','elevation', 'tfcrop', 'extend',
 'unflag', 'summary'
default: 'manual'

list -- Flag according to the data selection and flag commands specified in the input list.
The input list may come from a text file or from a Python list of strings.
Each input line may contain data selection parameters and any parameter
specific to the mode given in the line. Default values will be used for
the parameters that are not present in the line. Each line will be taken 
as a command to the task. If data is pre-selected using any of the selection 
parameters, then flagging will apply only to that subset of the MS.
  
The summary mode is not allowed in the input list.
  
For optimization, the task will create a union of the data selection parameters
present in the list and select only that portion of the MS.

NOTE: the flag commands will be applied only when action='apply'. If
      action='calculate' the flags will be calculated, but not applied.
      This is useful if display is set to something other than 'none'. If
      action='' or 'none', the flag commands will not be applied either.
      An empty action is useful only to save the parameters of the list
      to a file or to the FLAG_CMD sub-table.
  
       inpfile -- Input ASCII file or a Python list of command strings.
  default: ''
  options: [] or '' with filename.
  Example1: the following commands can be saved into a file and given
            to the task (e.g. save it to flags.txt).
  
     scan='1~3' mode='manual'
     mode='clip' clipminmax=[0,2] correlation='ABS_XX' clipoutside=False
     spw='9' mode='tfcrop' correlation='ABS_YY' ntime=51.0
     mode='extend' extendpols=True

    flagdata(vis,mode='list',inpfile='flags.txt')

  Example2: the same commands can be given in a Python list on the command line
             to the task.
     cmd=["scan='1~3' mode='manual'", 
          "mode='clip' clipminmax=[0,2] correlation='ABS_XX' clipoutside=False",
          "spw='9' mode='tfcrop' correlation='ABS_YY' ntime=51.0",
          "mode='extend' extendpols=True"]

     flagdata(vis,mode='list',inpfile=cmd)                    

       reason -- select flag commands based on REASON(s) 
   default: 'any' (all flags regardless of reason)
            can be a string, or list of strings
   example: reason='FOCUS_ERROR'
            reason=['FOCUS_ERROR','SUBREFLECTOR_ERROR']
    
   NOTE: what is within the string is literally
   matched, e.g. reason='' matches only blank reasons, 
   and reason = 'FOCUS_ERROR,SUBREFLECTOR_ERROR'
   matches this compound reason string only
     
  See the syntax for writing flag commands at the end of this help.                  


manual -- Flag according to the data selection specified.
  This is the default mode (used when the mode is not specified).
  
autocorr -- Flag only the auto-correlations. Note that this parameter is only
            active when set to True. If set to False it does NOT mean "do not
            flag auto-correlations".
    default: False
    options: True,False
  
clip -- Clip data according to values of the following subparameters. The polarization
expression is given by the correlation parameter.
    
       channelavg -- Average data over (selected) channels? Channel
            selections are taken into account. Flagged channels
            are excluded from the average. The average is done
            after applying the specified clipexpr, i.e. scalar
            averaging.
    default: False
    options: True,False
    
       clipminmax -- Range of data (Jy) that will NOT be flagged
    default: []; it will flag only NaN and Infs.
    example: [0.0,1.5]
    It will always flag the NaN/Inf data, even when a range is specified.
    
       datacolumn -- Column to use for clipping.
    default: 'DATA'
    options: 'DATA', 'CORRECTED','MODEL', 'RESIDUAL, 'RESIDUAL_DATA',
             'FPARAM', 'CPARAM', 'SNR'.
             
    NOTE: by default for calibration tables, the framework will try to use FPARAM; 
          if that does not exist, it will try to use CPARAM. If none of them exist, it
          will give an error and exit.
    
       clipoutside -- Clip OUTSIDE the range?
    default: True
    example: False; flag data WITHIN the range.

       clipzeros -- Clip zero-value data.
    default: False

quack -- Option to remove specified part of scan beginning/end

       quackinterval -- Time in seconds from scan beginning/end to flag. Make time slightly 
                 smaller than the desired time.
    default: 0.0
       quackmode -- Quack mode
    default: 'beg'
    options: 'beg'  ==> beginning of scan
             'endb' ==> end of scan. 
             'tail' ==> all but beginning of scan
             'end'  ==> all but end of scan.
       quackincrement -- Quack incrementally in time?
    default: False
             False  ==> the quack interval is counted from the
                        beginning of the scan
             True   ==> the quack interval is counted from the
                        first unflagged data in the scan

shadow -- Option to flag data of shadowed antennas. This mode is not available
    for cal tables.
    
   All antennas in the antenna-subtable of the MS (and the corresponding
   diameters) will be considered for shadow-flag calculations. 
   For a given timestep, an antenna is flagged if any of its baselines 
   (projected onto the uv-plane) is shorter than  radius_1 + radius_2 - tolerance. 
   The value of 'w' is used to determine which antenna is behind the other.
   The phase-reference center is used for antenna-pointing direction. 
     
       tolerance -- Amount of shadowing allowed (or tolerated), in meters. 
        A positive number allows antennas to overlap in projection
        A negative number forces antennas apart in projection
        Zero implies a distance of radius_1+radius_2 between antenna centers.
   default: 0.0

       addantenna -- It can be either a file name with additional antenna names, positions 
         and diameters, or a Python dictionary with the same information. 
         You can use the flaghelper functions to create the dictionary from a file.  
   default: ''
   
   To create a dictionary inside casapy.
   > import flaghelper as fh
   > antdic = fh.readAntennaList(antfile)
   
   Where antfile is a text file in disk that contains information such as:
    name=VLA01
    diameter=25.0
    position=[-1601144.96146691, -5041998.01971858, 3554864.76811967]
    name=VLA02
    diameter=25.0
    position=[-1601105.7664601889, -5042022.3917835914, 3554847.245159178]
  

elevation -- Option to flag based on antenna elevation. This mode is not available
      for cal tables.
 
       lowerlimit -- Lower limiting elevation in degrees. Data coming from a baseline
             where one or both antennas were pointing at a strictly lower elevation
             (as function of time), will be flagged.
   default: 0.0
   
       upperlimit -- Upper limiting elevation in degrees. Data coming from a baseline
             where one or both antennas were pointing at a strictly higher elevation
             (as function of time), will be flagged.
   default: 90.0

tfcrop -- Flag using the TFCrop autoflag algorithm. The polarization
  expression is given by the correlation parameter.

 For each field, spw, timerange (specified by ntime), and baseline, 
 (1) Average visibility amplitudes along time dimension to 
       form an average spectrum
 (2) Calculate a robust piece-wise polynomial fit for the band-shape 
      at the base of RFI spikes. Calculate 'stddev' of (data - fit).
 (3) Flag points deviating from the fit by more than N-stddev
 (4) Repeat (1-3) along the other dimension.

 This algorithm is designed to operate on un-calibrated data (step (2)), 
 as well as calibrated data.  It is usually helpful to extend the flags along
 time, frequency, and correlation in a second step (via mode='extend)

       ntime -- Timerange (in seconds or minutes) over which to buffer data before 
        running the algorithm. 
    options: 'scan' or any other float value or string containing the units.
    default: 'scan'
    example: '1.5min'
           : 1.2 (taken in seconds)
        The dataset will be iterated through in time-chunks defined here.

       combinescans -- accumulate data across scans.
    default: False
        This parameter is relevant only ntime is specified as a time-interval (not 'scan')

       datacolumn -- Column to use for flagging.
    default: 'DATA'
    options: 'DATA', 'CORRECTED','MODEL', 'RESIDUAL, 'RESIDUAL_DATA',
             'FPARAM', 'CPARAM', 'SNR'.
             
    NOTE: by default for calibration tables, the framework will try to use FPARAM; 
          if that does not exist, it will try to use CPARAM. If none of them exist, it
          will give an error and exit.
    

       timecutoff -- Flag threshold in time. Flag all data-points further than N-stddev 
             from the fit. This threshold catches time-varying RFI spikes (
             narrow and broad-band), but will not catch RFI that is persistent in time.
    default: 4.0
          Flagging is done in upto 5 iterations. The stddev calculation is adaptive and 
          converges to a value that reflects only the data and no RFI. At each iteration,
          the same relative threshold is applied to detect flags. (Step (3) of the algorithm).

       freqcutoff -- Flag threshold in frequency. Flag all data-points further than N-stddev 
             from the fit.
    default: 3.0
        Same as timecutoff, but along the frequency-dimension. This threshold catches
        narrow-band RFI that may or may not be persistent in time. 

       timefit --  Fitting function for the time direction
    default: 'line'
    options: 'line', 'poly'
      A 'line' fit is a robust straight-line fit across the entire timerange (defined 
      by 'ntime').
      A 'poly' fit is a robust piece-wise polynomial fit across the timerange.
      Note: A robust fit is computed in upto 5 iterations. At each iteration, the stddev
            between the data and the fit is computed, values beyond N-stddev are flagged,
            and the fit and stddev are re-calculated with the remaining points.
            This stddev calculation is adaptive, and converges to a value that reflects 
            only the data and no RFI.  It also provides a varying set of flagging thresholds,
            that allows deep flagging only when the fit best represents the true data.
      Choose 'poly' only if the visibilities are expected to vary significantly over the
      timerange selected by 'ntime', or if there is a lot of strong but intermittent RFI.

       freqfit -- Fitting function for the frequency direction
    default: 'poly'
    options: 'line','poly'
        Same as for the 'timefit' parameter.
        Choose 'line' only if you are operating on bandpass-corrected data, or residuals, 
        and expect that the bandshape is linear. The 'poly' option works better on 
        uncalibrated bandpasses with narrow-band RFI spikes.   

       maxnpieces -- Maxinum number of pieces to allow in the piecewise-polynomial fits 
    default: 7
    options: 1 - 9
        This parameter is used only if 'timefit' or 'freqfit' are chosen as 'poly'.
        If there is significant broad-band RFI, reduce this number. Using too many
        pieces could result in the RFI being fitted in the 'clean' bandpass.    
        In later stages of the fit, a third-order polynomial is fit per piece, so 
        for best results, please ensure that nchan/maxnpieces is at-least 10.

       flagdimension -- Choose the directions along which to perform flagging
    default: 'freqtime'; first flag along frequency, and then along time 
    options: 'time', 'freq', 'timefreq', 'freqtime'
         For most cases, 'freqtime' or 'timefreq' are appropriate, and differences
         between these choices are apparant only if RFI in one dimension is 
         significantly stronger than the other. The goal is to flag the dominant RFI first.
         If there are very few (less than 5) channels of data, then choose 'time'.
         Similarly for 'freq'.

       usewindowstats -- Use sliding-window statistics to find additional flags.
    default: 'none' 
    options: 'none', 'sum', 'std', 'both'   
         Note: This is experimental !
           The 'sum' option chooses to flag a point, if the mean-value in a 
           window centered on that point deviates from the fit by more than
           N-stddev/2.0. 
         Note: stddev is calculated between the data and fit as explained in Step (2).
            This option is an attempt to catch broad-band or 
            time-persistent RFI  that the above polynomial fits will mistakenly fit
            as the clean band. It is an approximation to the sumThreshold
            method found to be effective by Offringa et.al (2010) for LOFAR data. 
            The 'std' option chooses to flag a point, if the 'local' stddev calculated
            in a window centered on that point is larger than N-stddev/2.0. 
            This option is an attempt to catch noisy RFI that is not excluded in the
            polynomial fits, and which increases the global stddev, and results in 
            fewer flags (based on the N-stddev threshold).
                                                
halfwin -- Half width of sliding window to use with 'usewindowstats'
    default: 1  (a 3-point window size)
    options: 1,2,3
        Note: This is experimental !

rflag -- Detect outliers based on the RFLAG algorithm (ref. E.Greisen, AIPS, 2011).
 The polarization expression is given by the correlation parameter.

 Iterate through the data in chunks of time.  For each chunk, calculate local
 statistics, and apply flags based on user supplied (or auto-calculated) thresholds.

 Step 1 : Time analysis (for each channel)
   -- calculate local rms of real and imag visibilities, within a sliding time window
   -- calculate the median rms across time windows, deviations of local rms from
      this median, and the median deviation 
   -- flag if local rms is larger than timedevscale x (medianRMS + medianDev)

 Step 2 : Spectral analysis (for each time)
   -- calculate avg of real and imag visibilities and their rms across channels
   -- calculate the deviation of each channel from this avg, and the median-deviation
   -- flag if deviation is larger than freqdevscale x medianDev

 Example usage : 

  (1) Calculate thresholds automatically per scan, and use them to find flags.
      Specify scale-factor for time-analysis thresholds, use default for frequency.

      flagdata('my.ms', mode='rflag',spw='9',timedevscale=4.0)
 
  (2) Supply noise-estimates to be used with default scale-factors. 
  
      flagdata(vis='my.ms', mode='rflag', spw='9', timedev=0.1, freqdev=0.5, action='calculate)

  (3) Two-passes. This replicates the usage pattern in AIPS.

      -- The first pass saves commands in an output text files, with auto-calculated 
         thresholds. Thresholds are returned from rflag only when action='calculate'. 
         The user can edit this file before doing the second pass, 
         but the python-dictionary structure must be preserved.

      -- The second pass applies these commands (action='apply').

          flagdata(vis='my.ms', mode='rflag', spw='9,10', timedev='tdevfile.txt', 
                    freqdev='fdevfile.txt', action='calculate')
          flagdata(vis='my.ms', mode='rflag', spw='9,10', timedev='tdevfile.txt', 
                    freqdev='fdevfile.txt', action='apply')

        With action='calculate', display='report' will produce diagnostic plots 
        showing data-statistics and thresholds (the same thresholds as those
        written out to 'tdevfile.txt' and 'fdevfile.txt'). 
   
        Note : The rflag algorithm was originally developed by Eric Greisen in 
                AIPS (31DEC11).
        AIPS documentation : Section E.5 of the AIPS cookbook
        (Appendix E : Special Considerations for EVLA data calibration and imaging in AIPS,
        http://www.aips.nrao.edu/cook.html#CEE )

        Note : Since this algorithm operates with two passes through each
           chunk of data (time and freq axes), some data points get flagged
           twice. This can affect the flag-percentage estimate printed in the
           logger at runtime.  An accurate estimate can be obtained via the
           summary mode.

       ntime -- Timerange (in seconds or minutes) over which to buffer data before running the algorithm.
     options: 'scan' or any other float value or string containing the units.
     default: 'scan'
     example: '1.5min'
            : 1.2 (taken in seconds)
        The dataset will be iterated through in time-chunks defined here.

       combinescans -- accumulate data across scans.
      default: False
          It only makes sense when ntime not equal 'scan'.                

       datacolumn -- Column to use for flagging.
    default: 'DATA'
    options: 'DATA', 'CORRECTED','MODEL', 'RESIDUAL, 'RESIDUAL_DATA',
             'FPARAM', 'CPARAM', 'SNR'.
             
    NOTE: by default for calibration tables, the framework will try to use FPARAM; 
          if that does not exist, it will try to use CPARAM. If none of them exist, it
          will give an error and exit.
    

       winsize -- number of timesteps in the sliding time window ( fparm(1) in AIPS ). 
    default: 3
    
       timedev -- time-series noise estimate ( noise in AIPS ). 
    default: []
    Examples : 
         timedev = 0.5 : Use this noise-estimate to calculate flags. Do not recalculate.
         timedev = [ [1,9,0.2], [1,10,0.5] ] :  Use noise-estimate of 0.2 for field 1, 
                   spw 9, and noise-estimate of 0.5 for field 1, spw 10.
         timedev = [] : Auto-calculate noise estimates.

    
       freqdev -- spectral noise estimate ( scutoff in AIPS ).
          This step depends on having a relatively-flat bandshape.
          Same parameter-options as 'timedev'. 
    default: []
     

       timedevscale -- For Step 1 (time analysis), flag a point if local rms around it 
               is larger than  'timedevscale' x 'timedev'   ( fparm(0) in AIPS )
    default: 5.0
    
       freqdevscale -- For Step 2 (spectral analysis), flag a point if local rms around it
               is larger than 'freqdevscale' x 'freqdev'     ( fparm(10) in AIPS )
    default: 5.0

       spectralmax -- Flag whole spectrum if 'freqdev' is greater than spectralmax ( fparm(6) in AIPS )
    default: 1E6
    
       spectralmin -- Flag whole spectrum if 'freqdev' is less than spectralmin ( fparm(5) in AIPS )
    default: 0.0



extend -- Extend and/or grow flags beyond what the basic algorithms detect.
        This mode will extend the accumulated flags available in the MS,
        regardless of which algorithm created them.
         
        Extensions will apply only within the selected data, according to the settings 
        of extendpols,growtime,growfreq,growaround, flagneartime,flagnearfreq.
        
        Note : Runtime summary counts in the logger can sometimes report larger
            flag percentages than what is actually flagged. This is because 
            extensions onto already-flagged data-points are counted as new flags. 
            An accurate flag count can be obtained via the summary mode.

       ntime -- Timerange (in seconds or minutes) over which to buffer data before running 
        the algorithm.
     options: 'scan' or any other float value or string containing the units.
     default: 'scan'
     example: '1.5min'
            : 1.2 (taken in seconds)
        The dataset will be iterated through in time-chunks defined here.

       combinescans -- accumulate data across scans.
      default: False
          It only makes sense when ntime not equal 'scan'.                

       extendpols -- Extend flags to all selected correlations
      default: True
      options: True/False
         For example, to extend flags from RR to only RL and LR, a data-selection
         of correlation='RR,LR,RL' is required along with extendpols=True. 

       growtime -- For any channel, flag the entire timerange in the current 2D chunk (
           set by 'ntime') if more than X% of the timerange is already flagged.
      default: 50.0
      options: 0.0 - 100.0
         This option catches the low-intensity parts of time-persistent RFI.

       growfreq -- For any timestep, flag all channels in the current 2D chunk (set by 
           data-selection) if more than X% of the channels are already flagged.
      default: 50.0
      options: 0.0 - 100.0
         This option catches broad-band RFI that is partially identified by earlier steps.

       growaround -- Flag a point based on the number of flagged points around it.
      default: False
      options: True/False
            For every un-flagged point on the 2D time/freq plane, if more than four
            surrounding points are already flagged, flag that point. 
            This option catches some wings of strong RFI spikes.

       flagneartime -- Flag points before and after every flagged one, in the time-direction.
      default: False
      options: True/False
      Note: This can result in excessive flagging.

       flagnearfreq -- Flag points before and after every flagged one, in the frequency-direction
    default: False
    options: True/False
    This option allows flagging of wings in the spectral response of strong RFI.
    Note: This can result in excessive flagging.


unflag -- Unflag according to the data selection specified.

summary -- List the number of rows and data points flagged.
  
       minrel -- Minimum number of flags (relative) to include in histogram
    default: 0.0

       maxrel -- Maximum number of flags (relative) to include in histogram
    default: 1.0

       minabs -- Minimum number of flags (absolute, inclusive) to include in histogram
    default: 0

       maxabs -- Maximum number of flags (absolute, inclusive) to include in histogram
          To indicate infinity, use any negative number.
    default: -1

       spwchan -- list the number of flags per spw and per channel.
    default: False

       spwcorr -- list the number of flags per spw and per correlation.
    default: False

       basecnt -- list the number of flags per baseline
    default: False

    In summary mode, the task returns a dictionary of flagging statistics.
    Example:

        s = flagdata(..., mode='summary')

     Then s will be a dictionary which contains
    s['total']   : total number of data
    s['flagged'] : amount of flagged data
    


    action -- Action to perform in MS/cal table or in the input list of parameters. 
options: 'none', 'apply','calculate'
default: 'apply'

'apply' -- Apply the flags to the MS.

       display -- Display data and/or end-of-MS reports at run-time.        
   default: 'none'
   options: 'none', 'data', 'report', 'both'

     'none' --> It will not display anything.

     'data' --> display data and flags per-chunk at run-time, within an interactive GUI.

      This option opens a GUI to show the 2D time-freq planes of
      the data with old and new flags, for all correlations per baseline.
      -- The GUI allows stepping through all baselines (prev/next) in
      the current chunk (set by 'ntime'), and stepping to the next-chunk.
      -- The 'flagdata' task can be quit from the GUI, in case it becomes
      obvious that the current set of parameters is just wrong.
      -- There is an option to stop the display but continue flagging.

    'report' --> displays end-of-MS reports on the screen.

    'both' --> displays data per chunk and end-of-MS reports on the screen

       flagbackup -- Automatically backup flags before running the tool.
            Flagversion names are chosen automatically, and are based on the
            mode being used.
   default: True
   options: True/False                    

'calculate' -- Only calculate the flags but do not write them to the MS. This is
     useful if used together with the display to analyse the results before
     writing to the MS.

       display -- Display data and/or end-of-MS reports at run-time. See extended description
          above. 
   default: 'none'
   options: 'none', 'data', 'report', 'both'
   
' ' -- When set to empty, the underlying tool will not be executed and no flags
will be produced. No data selection will be done either. This is useful
when used together with the parameter savepars to only save the current
parameters (or list of parameters) to the FLAG_CMD sub-table or to an
external file.  
 

    savepars -- Save the current parameters to the FLAG_CMD table of the MS or to an output text file.
Note that when display is set to anything other than 'none', savepars
will be disabled. This is done because in an interactive mode, the user
may skip data which may invalidate the initial input parameters and there
is no way to save the interactive commands.
default: False
options: True/False

cmdreason -- A string containing a reason to save to the FLAG_CMD table or to an 
             output text file given by the outfile sub-parameter. If the input 
             contains any reason, they will be replaced with this one. At the 
             moment it is not possible to add more than one reason.
    default: ' '; no reason will be added to output.
    example: cmdreason='CLIP_ZEROS'

outfile -- Name of output file to save the current parameters.
    default: ' '; it will save the parameters to the FLAG_CMD table of the MS.
    example: outfile='flags.txt' will save the parameters in a text file.
    
    
---- EXAMPLES ----

    NOTE: The vector mode of the previous flagdata task can be achieved with this task by using it
  with mode='list' and the commands given in a list in inpmode=[]. Example:
    
       flagdata('my.ms', inpmode='list', inpfile=["mode='clip' clipzeros=True","mode='shadow'])


    1) Manually flag scans 1~3 and save the parameters to the FLAG_CMD sub-table.
    
flagdata('my.ms', scan='1~3, mode='manual', savepars=True)
    
    2) Save the parameters to a file that is open in append mode.

flagdata('my.ms', scan='1~3, mode='manual', savepars=True, outfile='flags.txt')
    
    3a) Flag all the commands given in the Python list of strings.
    
cmd = ["scan='1~3' mode='manual'",
       "spw='9' mode='tfcrop' correlation='ABS_RR,LL' ntime=51.0",
       "mode='extend' extendpols=True"]
    
flagdata('my.ms', mode='list', inpfile=cmd)

    3b) Flag all the commands given in the file called flags.txt.
    
> cat flags.txt
scan='1~3' mode='manual'
spw='9' mode='tfcrop' correlation='ABS_RR,LL' ntime=51.0
mode='extend' extendpols=True
    
flagdata('my.ms', mode='list', inpfile='flags.txt')

    4) Display the data and flags per-chunk and do not write flags to the MS.
    
flagdata('my.ms', mode='list', inpfile='flags.txt', action='calculate', display='data')

    5) Flag all the antennas except antenna=5.
    
flagdata(vis='my.ms', antenna='!5', mode='manual)
    
    6) Clip the NaN in the data. An empty clipminmax will flag only NaN.
    
flagdata('my.ms', mode='clip')

    7) Clip only the water vapour radiometer data.
    
flagdata('my.ms',mode='clip',clipminmax=[0,50], correlation='ABS_WVR')

    8) Clip only zero-value data.

flagdata('my.ms',mode='clip',clipzeros=True)

    9a) Flag only auto-correlations using the autocorr parameter.
       
flagdata('my.ms', autocorr=True)
    
    9b) Flag only auto-correlations using the antenna selection.
       
flagdata('my.ms', mode='manual', antenna='*&&&')

    10a) Flag based on selected reasons from a file.
       
> cat flags.txt
scan='1~3' mode='manual' reason='MYREASON'
spw='9' mode='clip' clipzeros=True reason='CLIPZEROS'
mode='manual' scan='4' reason='MYREASON'

flagdata('my.ms', mode='list', inpfile='flags.txt', reason='MYREASON')

    10b) The same result of 10a can be achieved using the task flagcmd.

flagcmd('my.ms', inpmode='file', inpfile='flags.txt', action='apply', reason='MYREASON')
    
    11) Automatic flagging using 'rflag', using auto-thresholds, and specifying 
  a threshold scale-factor to use for flagging.

flagdata('my.ms', mode='rflag',spw='9',timedevscale=4.0,action='apply')

    12) Save the interface parameters to the FLAG_CMD sub-table of the MS. Add a reason
to the flag command. This cmdreason will be added to the REASON column of the
FLAG_CMD sub-table. Apply flags in flagcmd.

flagdata('my.ms', mode='clip',channelavg=False, clipminmax=[30., 60.], spw='0:0~10', 
  correlation='ABS_XX,XY', action='', savepars=True, cmdreason='CLIPXX_XY')

> Select based on the reason.
flagcmd('my.ms', action='apply', reason='CLIPXX_XY')

    13) Flag antennas that are shadowed by antennas not present in the MS.

> Create a text file with information about the antennas.
> cat ant.txt
  name=VLA01
  diameter=25.0
  position=[-1601144.96146691, -5041998.01971858, 3554864.76811967]
  name=VLA02
  diameter=25.0
  position=[-1601105.7664601889, -5042022.3917835914, 3554847.245159178]
  name=VLA09
  diameter=25.0
  position=[-1601197.2182404203, -5041974.3604805721, 3554875.1995636248]
  name=VLA10
  diameter=25.0
  position=[-1601227.3367843349,-5041975.7011900628,3554859.1642644769]    
   

 flagdata('my.vis', mode='shadow', tolerance=10.0, addantenna='ant.txt')

The antenna information can also be given as a Python dictionary. To create the
dictionary using the flaghelper functions, do the following inside casapy:

     > import flaghelper as fh
     > antdic = fh.readAntennaList(antfile)

 flagdata('my.vis', mode='shadow', tolerance=10.0, addantenna=antdic)

    14) Apply the online flags that come from importasdm.

> In importasdm, save the online flags to a file.
 importasdm('myasdm', 'asdm.ms', process_flags=True, savecmds=True, outfile='online_flags.txt')

> You can edit the online_flags.txt to add other flagging commands or apply it directly.
 flagdata('asdm.ms', mode='list', inpfile='online_flags.txt')

> The same result can be achieved using the task flagcmd.
 flagcmd('asdm.ms', inpmode='file', inpfile='online_flags.txt', action='apply')

    15) Clip zero data from a calibration table.
    
flagdata('cal-X54.B1', mode='clip', clipzeros=True, datacolumn='CPARAM')

    16) Clip data with SNR <4.0.
    
flagdata('cal-X54.B1', mode='clip', clipminmax=[0.0,4.0], clipoutside=False, datacolumn='SNR')
    

---- SYNTAX FOR COMMANDS GIVEN IN A FILE or LIST OF STRINGS ----

    Basic Syntax Rules

  Commands are strings (which may contain internal "strings") consisting of
  KEY=VALUE pairs separated by whitespace. 

  NOTE: There should be no whitespace between KEY=VALUE or within each KEY or 
  VALUE, since the simple parser first breaks command lines on whitespace, 
  then on "=". 

  Use only white spaces to separate the parameters (no commas).

  Each key should only appear once on a given command line/string.

  There is an implicit "mode" for each command, with the default
  being 'manual' if not given.

  Comment lines can start with '#' and will be ignored.

  Example:

  scan='1~3' mode='manual'
  # this line will ignored
  spw='9' mode='tfcrop' correlation='ABS_XX,YY' ntime=51.0
  mode='extend' extendpols=True
  scan='1~3,10~12' mode='quack' quackinterval=1.0

Definition at line 46 of file flagdata_cli.py.

def flagdata_cli.flagdata_cli_.check_params (   self,
  param = None,
  value = None,
  ipython_globals = None 
)
def flagdata_cli.flagdata_cli_.defaults (   self,
  param = None,
  ipython_globals = None,
  paramvalue = None,
  subparam = None 
)

Definition at line 1165 of file flagdata_cli.py.

References clearstat_cli.clearstat_cli_.__globals__, clearplot_cli.clearplot_cli_.__globals__, find_cli.find_cli_.__globals__, asdmsummary_cli.asdmsummary_cli_.__globals__, conjugatevis_cli.conjugatevis_cli_.__globals__, delmod_cli.delmod_cli_.__globals__, exportfits_cli.exportfits_cli_.__globals__, caltabconvert_cli.caltabconvert_cli_.__globals__, boxit_cli.boxit_cli_.__globals__, calstat_cli.calstat_cli_.__globals__, deconvolve_cli.deconvolve_cli_.__globals__, clearcal_cli.clearcal_cli_.__globals__, fixvis_cli.fixvis_cli_.__globals__, fixplanets_cli.fixplanets_cli_.__globals__, exportasdm_cli.exportasdm_cli_.__globals__, browsetable_cli.browsetable_cli_.__globals__, feather_cli.feather_cli_.__globals__, exportuvfits_cli.exportuvfits_cli_.__globals__, concat_cli.concat_cli_.__globals__, csvclean_cli.csvclean_cli_.__globals__, accum_cli.accum_cli_.__globals__, blcal_cli.blcal_cli_.__globals__, applycal_cli.applycal_cli_.__globals__, cvel_cli.cvel_cli_.__globals__, bandpass_cli.bandpass_cli_.__globals__, autoclean_cli.autoclean_cli_.__globals__, flagcmd_cli.flagcmd_cli_.__globals__, clean_cli.clean_cli_.__globals__, flagdata_cli.flagdata_cli_.__globals__, clearstat_cli.clearstat_cli_.itsdefault(), clearplot_cli.clearplot_cli_.itsdefault(), find_cli.find_cli_.itsdefault(), asdmsummary_cli.asdmsummary_cli_.itsdefault(), conjugatevis_cli.conjugatevis_cli_.itsdefault(), caltabconvert_cli.caltabconvert_cli_.itsdefault(), delmod_cli.delmod_cli_.itsdefault(), clearcal_cli.clearcal_cli_.itsdefault(), calstat_cli.calstat_cli_.itsdefault(), fixplanets_cli.fixplanets_cli_.itsdefault(), exportfits_cli.exportfits_cli_.itsdefault(), fixvis_cli.fixvis_cli_.itsdefault(), boxit_cli.boxit_cli_.itsdefault(), feather_cli.feather_cli_.itsdefault(), browsetable_cli.browsetable_cli_.itsdefault(), exportasdm_cli.exportasdm_cli_.itsdefault(), deconvolve_cli.deconvolve_cli_.itsdefault(), concat_cli.concat_cli_.itsdefault(), exportuvfits_cli.exportuvfits_cli_.itsdefault(), accum_cli.accum_cli_.itsdefault(), csvclean_cli.csvclean_cli_.itsdefault(), blcal_cli.blcal_cli_.itsdefault(), applycal_cli.applycal_cli_.itsdefault(), cvel_cli.cvel_cli_.itsdefault(), bandpass_cli.bandpass_cli_.itsdefault(), autoclean_cli.autoclean_cli_.itsdefault(), flagcmd_cli.flagcmd_cli_.itsdefault(), clean_cli.clean_cli_.itsdefault(), and flagdata_cli.flagdata_cli_.itsdefault().

def flagdata_cli.flagdata_cli_.description (   self,
  key = 'flagdata',
  subkey = None 
)

Definition at line 1267 of file flagdata_cli.py.

def flagdata_cli.flagdata_cli_.itsdefault (   self,
  paramname 
)

Definition at line 1345 of file flagdata_cli.py.

References accum_cli.accum_cli_.parameters, flagdata_cli.flagdata_cli_.parameters, flagcmd_cli.flagcmd_cli_.parameters, fixvis_cli.fixvis_cli_.parameters, fixplanets_cli.fixplanets_cli_.parameters, find_cli.find_cli_.parameters, feather_cli.feather_cli_.parameters, exportuvfits_cli.exportuvfits_cli_.parameters, exportfits_cli.exportfits_cli_.parameters, exportasdm_cli.exportasdm_cli_.parameters, delmod_cli.delmod_cli_.parameters, deconvolve_cli.deconvolve_cli_.parameters, cvel_cli.cvel_cli_.parameters, csvclean_cli.csvclean_cli_.parameters, conjugatevis_cli.conjugatevis_cli_.parameters, concat_cli.concat_cli_.parameters, clearstat_cli.clearstat_cli_.parameters, clearplot_cli.clearplot_cli_.parameters, clearcal_cli.clearcal_cli_.parameters, clean_cli.clean_cli_.parameters, caltabconvert_cli.caltabconvert_cli_.parameters, calstat_cli.calstat_cli_.parameters, browsetable_cli.browsetable_cli_.parameters, boxit_cli.boxit_cli_.parameters, blcal_cli.blcal_cli_.parameters, bandpass_cli.bandpass_cli_.parameters, autoclean_cli.autoclean_cli_.parameters, asdmsummary_cli.asdmsummary_cli_.parameters, and applycal_cli.applycal_cli_.parameters.

Referenced by rmtables_cli.rmtables_cli_.defaults(), listfits_cli.listfits_cli_.defaults(), listhistory_cli.listhistory_cli_.defaults(), importfitsidi_cli.importfitsidi_cli_.defaults(), uvsub_cli.uvsub_cli_.defaults(), uvcontsub2_cli.uvcontsub2_cli_.defaults(), importgmrt_cli.importgmrt_cli_.defaults(), plotweather_cli.plotweather_cli_.defaults(), importuvfits_cli.importuvfits_cli_.defaults(), plotants_cli.plotants_cli_.defaults(), imreframe_cli.imreframe_cli_.defaults(), importfits_cli.importfits_cli_.defaults(), smoothcal_cli.smoothcal_cli_.defaults(), listsdm_cli.listsdm_cli_.defaults(), tclean_cli.tclean_cli_.defaults(), splattotable_cli.splattotable_cli_.defaults(), hanningsmooth_cli.hanningsmooth_cli_.defaults(), flagmanager_cli.flagmanager_cli_.defaults(), sdflagmanager_cli.sdflagmanager_cli_.defaults(), testconcat_cli.testconcat_cli_.defaults(), sdlist_cli.sdlist_cli_.defaults(), msview_cli.msview_cli_.defaults(), viewer_cli.viewer_cli_.defaults(), imregrid_cli.imregrid_cli_.defaults(), listpartition_cli.listpartition_cli_.defaults(), sdscale_cli.sdscale_cli_.defaults(), imsubimage_cli.imsubimage_cli_.defaults(), ft_cli.ft_cli_.defaults(), impbcor_cli.impbcor_cli_.defaults(), msmoments_cli.msmoments_cli_.defaults(), slsearch_cli.slsearch_cli_.defaults(), peel_cli.peel_cli_.defaults(), predictcomp_cli.predictcomp_cli_.defaults(), uvcontsub_cli.uvcontsub_cli_.defaults(), wvrgcal_cli.wvrgcal_cli_.defaults(), ssoflux_cli.ssoflux_cli_.defaults(), vishead_cli.vishead_cli_.defaults(), uvcontsub3_cli.uvcontsub3_cli_.defaults(), sdimprocess_cli.sdimprocess_cli_.defaults(), virtualconcat_cli.virtualconcat_cli_.defaults(), listobs_cli.listobs_cli_.defaults(), sdsmooth_cli.sdsmooth_cli_.defaults(), fluxscale_cli.fluxscale_cli_.defaults(), visstat_cli.visstat_cli_.defaults(), imview_cli.imview_cli_.defaults(), widebandpbcor_cli.widebandpbcor_cli_.defaults(), sdcoadd_cli.sdcoadd_cli_.defaults(), uvmodelfit_cli.uvmodelfit_cli_.defaults(), listvis_cli.listvis_cli_.defaults(), sdsave_cli.sdsave_cli_.defaults(), simanalyze_cli.simanalyze_cli_.defaults(), sdmath_cli.sdmath_cli_.defaults(), imhead_cli.imhead_cli_.defaults(), listcal_cli.listcal_cli_.defaults(), sdgrid_cli.sdgrid_cli_.defaults(), importasdm_cli.importasdm_cli_.defaults(), sdtpimaging_cli.sdtpimaging_cli_.defaults(), sdstat_cli.sdstat_cli_.defaults(), makemask_cli.makemask_cli_.defaults(), split_cli.split_cli_.defaults(), sdimaging_cli.sdimaging_cli_.defaults(), statwt_cli.statwt_cli_.defaults(), sdflag_cli.sdflag_cli_.defaults(), importevla_cli.importevla_cli_.defaults(), partition_cli.partition_cli_.defaults(), simalma_cli.simalma_cli_.defaults(), imfit_cli.imfit_cli_.defaults(), sdfit_cli.sdfit_cli_.defaults(), sdcal_cli.sdcal_cli_.defaults(), simobserve_cli.simobserve_cli_.defaults(), gaincal_cli.gaincal_cli_.defaults(), polcal_cli.polcal_cli_.defaults(), sdbaseline_cli.sdbaseline_cli_.defaults(), setjy_cli.setjy_cli_.defaults(), mosaic_cli.mosaic_cli_.defaults(), widefield_cli.widefield_cli_.defaults(), pclean_cli.pclean_cli_.defaults(), plotxy_cli.plotxy_cli_.defaults(), specfit_cli.specfit_cli_.defaults(), plotms_cli.plotms_cli_.defaults(), sdreduce_cli.sdreduce_cli_.defaults(), and flagdata_cli.flagdata_cli_.defaults().

def flagdata_cli.flagdata_cli_.paramgui (   self,
  useGlobals = True,
  ipython_globals = None 
)
def flagdata_cli.flagdata_cli_.result (   self,
  key = None 
)

Member Data Documentation

dictionary flagdata_cli.flagdata_cli_.__async__ [static, private]

Definition at line 20 of file flagdata_cli.py.

Referenced by flagdata_cli.flagdata_cli_.result(), wvrgcal_cli.wvrgcal_cli_.result(), widefield_cli.widefield_cli_.result(), widebandpbcor_cli.widebandpbcor_cli_.result(), visstat_cli.visstat_cli_.result(), vishead_cli.vishead_cli_.result(), virtualconcat_cli.virtualconcat_cli_.result(), viewer_cli.viewer_cli_.result(), uvsub_cli.uvsub_cli_.result(), uvmodelfit_cli.uvmodelfit_cli_.result(), uvcontsub_cli.uvcontsub_cli_.result(), uvcontsub3_cli.uvcontsub3_cli_.result(), uvcontsub2_cli.uvcontsub2_cli_.result(), testconcat_cli.testconcat_cli_.result(), tclean_cli.tclean_cli_.result(), statwt_cli.statwt_cli_.result(), ssoflux_cli.ssoflux_cli_.result(), split_cli.split_cli_.result(), splattotable_cli.splattotable_cli_.result(), specfit_cli.specfit_cli_.result(), smoothcal_cli.smoothcal_cli_.result(), slsearch_cli.slsearch_cli_.result(), simobserve_cli.simobserve_cli_.result(), simanalyze_cli.simanalyze_cli_.result(), simalma_cli.simalma_cli_.result(), setjy_cli.setjy_cli_.result(), sdtpimaging_cli.sdtpimaging_cli_.result(), sdstat_cli.sdstat_cli_.result(), sdsmooth_cli.sdsmooth_cli_.result(), sdscale_cli.sdscale_cli_.result(), sdsave_cli.sdsave_cli_.result(), sdreduce_cli.sdreduce_cli_.result(), sdplot_cli.sdplot_cli_.result(), sdmath_cli.sdmath_cli_.result(), sdlist_cli.sdlist_cli_.result(), sdimprocess_cli.sdimprocess_cli_.result(), sdimaging_cli.sdimaging_cli_.result(), sdgrid_cli.sdgrid_cli_.result(), sdflagmanager_cli.sdflagmanager_cli_.result(), sdflag_cli.sdflag_cli_.result(), sdfit_cli.sdfit_cli_.result(), sdcoadd_cli.sdcoadd_cli_.result(), sdcal_cli.sdcal_cli_.result(), sdbaseline_cli.sdbaseline_cli_.result(), rmtables_cli.rmtables_cli_.result(), predictcomp_cli.predictcomp_cli_.result(), polcal_cli.polcal_cli_.result(), plotxy_cli.plotxy_cli_.result(), plotweather_cli.plotweather_cli_.result(), plotuv_cli.plotuv_cli_.result(), plotms_cli.plotms_cli_.result(), plotcal_cli.plotcal_cli_.result(), plotants_cli.plotants_cli_.result(), peel_cli.peel_cli_.result(), pclean_cli.pclean_cli_.result(), partition_cli.partition_cli_.result(), msview_cli.msview_cli_.result(), msmoments_cli.msmoments_cli_.result(), mosaic_cli.mosaic_cli_.result(), makemask_cli.makemask_cli_.result(), listvis_cli.listvis_cli_.result(), listsdm_cli.listsdm_cli_.result(), listpartition_cli.listpartition_cli_.result(), listobs_cli.listobs_cli_.result(), listhistory_cli.listhistory_cli_.result(), listfits_cli.listfits_cli_.result(), listcal_cli.listcal_cli_.result(), imview_cli.imview_cli_.result(), imval_cli.imval_cli_.result(), imtrans_cli.imtrans_cli_.result(), imsubimage_cli.imsubimage_cli_.result(), imstat_cli.imstat_cli_.result(), imsmooth_cli.imsmooth_cli_.result(), imregrid_cli.imregrid_cli_.result(), imreframe_cli.imreframe_cli_.result(), importvla_cli.importvla_cli_.result(), importuvfits_cli.importuvfits_cli_.result(), importgmrt_cli.importgmrt_cli_.result(), importfitsidi_cli.importfitsidi_cli_.result(), importfits_cli.importfits_cli_.result(), importevla_cli.importevla_cli_.result(), importasdm_cli.importasdm_cli_.result(), impbcor_cli.impbcor_cli_.result(), immoments_cli.immoments_cli_.result(), immath_cli.immath_cli_.result(), imhead_cli.imhead_cli_.result(), imfit_cli.imfit_cli_.result(), imcontsub_cli.imcontsub_cli_.result(), imcollapse_cli.imcollapse_cli_.result(), hanningsmooth_cli.hanningsmooth_cli_.result(), gencal_cli.gencal_cli_.result(), gaincal_cli.gaincal_cli_.result(), ft_cli.ft_cli_.result(), fluxscale_cli.fluxscale_cli_.result(), and flagmanager_cli.flagmanager_cli_.result().

Definition at line 27 of file flagdata_cli.py.

Definition at line 28 of file flagdata_cli.py.

Definition at line 910 of file flagdata_cli.py.

Referenced by rmtables_cli.rmtables_cli_.check_params(), listfits_cli.listfits_cli_.check_params(), listhistory_cli.listhistory_cli_.check_params(), importfitsidi_cli.importfitsidi_cli_.check_params(), uvsub_cli.uvsub_cli_.check_params(), importgmrt_cli.importgmrt_cli_.check_params(), plotweather_cli.plotweather_cli_.check_params(), uvcontsub2_cli.uvcontsub2_cli_.check_params(), importuvfits_cli.importuvfits_cli_.check_params(), plotants_cli.plotants_cli_.check_params(), listsdm_cli.listsdm_cli_.check_params(), importfits_cli.importfits_cli_.check_params(), imreframe_cli.imreframe_cli_.check_params(), smoothcal_cli.smoothcal_cli_.check_params(), hanningsmooth_cli.hanningsmooth_cli_.check_params(), splattotable_cli.splattotable_cli_.check_params(), flagmanager_cli.flagmanager_cli_.check_params(), sdflagmanager_cli.sdflagmanager_cli_.check_params(), tclean_cli.tclean_cli_.check_params(), testconcat_cli.testconcat_cli_.check_params(), sdlist_cli.sdlist_cli_.check_params(), msview_cli.msview_cli_.check_params(), listpartition_cli.listpartition_cli_.check_params(), imregrid_cli.imregrid_cli_.check_params(), viewer_cli.viewer_cli_.check_params(), sdscale_cli.sdscale_cli_.check_params(), imsubimage_cli.imsubimage_cli_.check_params(), ft_cli.ft_cli_.check_params(), msmoments_cli.msmoments_cli_.check_params(), impbcor_cli.impbcor_cli_.check_params(), peel_cli.peel_cli_.check_params(), uvcontsub_cli.uvcontsub_cli_.check_params(), slsearch_cli.slsearch_cli_.check_params(), ssoflux_cli.ssoflux_cli_.check_params(), predictcomp_cli.predictcomp_cli_.check_params(), vishead_cli.vishead_cli_.check_params(), uvcontsub3_cli.uvcontsub3_cli_.check_params(), wvrgcal_cli.wvrgcal_cli_.check_params(), sdimprocess_cli.sdimprocess_cli_.check_params(), listobs_cli.listobs_cli_.check_params(), virtualconcat_cli.virtualconcat_cli_.check_params(), fluxscale_cli.fluxscale_cli_.check_params(), sdsmooth_cli.sdsmooth_cli_.check_params(), imview_cli.imview_cli_.check_params(), visstat_cli.visstat_cli_.check_params(), widebandpbcor_cli.widebandpbcor_cli_.check_params(), uvmodelfit_cli.uvmodelfit_cli_.check_params(), listvis_cli.listvis_cli_.check_params(), sdcoadd_cli.sdcoadd_cli_.check_params(), listcal_cli.listcal_cli_.check_params(), simanalyze_cli.simanalyze_cli_.check_params(), imhead_cli.imhead_cli_.check_params(), sdsave_cli.sdsave_cli_.check_params(), sdmath_cli.sdmath_cli_.check_params(), sdgrid_cli.sdgrid_cli_.check_params(), sdtpimaging_cli.sdtpimaging_cli_.check_params(), makemask_cli.makemask_cli_.check_params(), importasdm_cli.importasdm_cli_.check_params(), split_cli.split_cli_.check_params(), sdstat_cli.sdstat_cli_.check_params(), statwt_cli.statwt_cli_.check_params(), sdimaging_cli.sdimaging_cli_.check_params(), sdflag_cli.sdflag_cli_.check_params(), importevla_cli.importevla_cli_.check_params(), partition_cli.partition_cli_.check_params(), simalma_cli.simalma_cli_.check_params(), imfit_cli.imfit_cli_.check_params(), sdfit_cli.sdfit_cli_.check_params(), simobserve_cli.simobserve_cli_.check_params(), polcal_cli.polcal_cli_.check_params(), gaincal_cli.gaincal_cli_.check_params(), sdcal_cli.sdcal_cli_.check_params(), setjy_cli.setjy_cli_.check_params(), sdbaseline_cli.sdbaseline_cli_.check_params(), mosaic_cli.mosaic_cli_.check_params(), widefield_cli.widefield_cli_.check_params(), pclean_cli.pclean_cli_.check_params(), plotxy_cli.plotxy_cli_.check_params(), specfit_cli.specfit_cli_.check_params(), sdreduce_cli.sdreduce_cli_.check_params(), plotms_cli.plotms_cli_.check_params(), flagdata_cli.flagdata_cli_.check_params(), rmtables_cli.rmtables_cli_.defaults(), listfits_cli.listfits_cli_.defaults(), listhistory_cli.listhistory_cli_.defaults(), importfitsidi_cli.importfitsidi_cli_.defaults(), uvsub_cli.uvsub_cli_.defaults(), importgmrt_cli.importgmrt_cli_.defaults(), uvcontsub2_cli.uvcontsub2_cli_.defaults(), plotweather_cli.plotweather_cli_.defaults(), importuvfits_cli.importuvfits_cli_.defaults(), imreframe_cli.imreframe_cli_.defaults(), plotants_cli.plotants_cli_.defaults(), importfits_cli.importfits_cli_.defaults(), smoothcal_cli.smoothcal_cli_.defaults(), listsdm_cli.listsdm_cli_.defaults(), tclean_cli.tclean_cli_.defaults(), hanningsmooth_cli.hanningsmooth_cli_.defaults(), splattotable_cli.splattotable_cli_.defaults(), flagmanager_cli.flagmanager_cli_.defaults(), sdflagmanager_cli.sdflagmanager_cli_.defaults(), testconcat_cli.testconcat_cli_.defaults(), sdlist_cli.sdlist_cli_.defaults(), msview_cli.msview_cli_.defaults(), viewer_cli.viewer_cli_.defaults(), imregrid_cli.imregrid_cli_.defaults(), listpartition_cli.listpartition_cli_.defaults(), sdscale_cli.sdscale_cli_.defaults(), imsubimage_cli.imsubimage_cli_.defaults(), ft_cli.ft_cli_.defaults(), msmoments_cli.msmoments_cli_.defaults(), impbcor_cli.impbcor_cli_.defaults(), slsearch_cli.slsearch_cli_.defaults(), peel_cli.peel_cli_.defaults(), predictcomp_cli.predictcomp_cli_.defaults(), uvcontsub_cli.uvcontsub_cli_.defaults(), wvrgcal_cli.wvrgcal_cli_.defaults(), ssoflux_cli.ssoflux_cli_.defaults(), vishead_cli.vishead_cli_.defaults(), uvcontsub3_cli.uvcontsub3_cli_.defaults(), sdimprocess_cli.sdimprocess_cli_.defaults(), virtualconcat_cli.virtualconcat_cli_.defaults(), listobs_cli.listobs_cli_.defaults(), sdsmooth_cli.sdsmooth_cli_.defaults(), fluxscale_cli.fluxscale_cli_.defaults(), visstat_cli.visstat_cli_.defaults(), imview_cli.imview_cli_.defaults(), widebandpbcor_cli.widebandpbcor_cli_.defaults(), sdcoadd_cli.sdcoadd_cli_.defaults(), uvmodelfit_cli.uvmodelfit_cli_.defaults(), listvis_cli.listvis_cli_.defaults(), sdsave_cli.sdsave_cli_.defaults(), simanalyze_cli.simanalyze_cli_.defaults(), sdmath_cli.sdmath_cli_.defaults(), imhead_cli.imhead_cli_.defaults(), listcal_cli.listcal_cli_.defaults(), sdgrid_cli.sdgrid_cli_.defaults(), importasdm_cli.importasdm_cli_.defaults(), sdtpimaging_cli.sdtpimaging_cli_.defaults(), sdstat_cli.sdstat_cli_.defaults(), makemask_cli.makemask_cli_.defaults(), split_cli.split_cli_.defaults(), sdimaging_cli.sdimaging_cli_.defaults(), statwt_cli.statwt_cli_.defaults(), sdflag_cli.sdflag_cli_.defaults(), importevla_cli.importevla_cli_.defaults(), partition_cli.partition_cli_.defaults(), simalma_cli.simalma_cli_.defaults(), imfit_cli.imfit_cli_.defaults(), sdfit_cli.sdfit_cli_.defaults(), sdcal_cli.sdcal_cli_.defaults(), simobserve_cli.simobserve_cli_.defaults(), gaincal_cli.gaincal_cli_.defaults(), polcal_cli.polcal_cli_.defaults(), sdbaseline_cli.sdbaseline_cli_.defaults(), setjy_cli.setjy_cli_.defaults(), mosaic_cli.mosaic_cli_.defaults(), widefield_cli.widefield_cli_.defaults(), pclean_cli.pclean_cli_.defaults(), specfit_cli.specfit_cli_.defaults(), sdreduce_cli.sdreduce_cli_.defaults(), flagdata_cli.flagdata_cli_.defaults(), rmtables_cli.rmtables_cli_.paramgui(), listfits_cli.listfits_cli_.paramgui(), listhistory_cli.listhistory_cli_.paramgui(), importfitsidi_cli.importfitsidi_cli_.paramgui(), uvsub_cli.uvsub_cli_.paramgui(), importgmrt_cli.importgmrt_cli_.paramgui(), uvcontsub2_cli.uvcontsub2_cli_.paramgui(), plotweather_cli.plotweather_cli_.paramgui(), importuvfits_cli.importuvfits_cli_.paramgui(), imreframe_cli.imreframe_cli_.paramgui(), plotants_cli.plotants_cli_.paramgui(), importfits_cli.importfits_cli_.paramgui(), smoothcal_cli.smoothcal_cli_.paramgui(), listsdm_cli.listsdm_cli_.paramgui(), tclean_cli.tclean_cli_.paramgui(), hanningsmooth_cli.hanningsmooth_cli_.paramgui(), splattotable_cli.splattotable_cli_.paramgui(), flagmanager_cli.flagmanager_cli_.paramgui(), sdflagmanager_cli.sdflagmanager_cli_.paramgui(), testconcat_cli.testconcat_cli_.paramgui(), sdlist_cli.sdlist_cli_.paramgui(), msview_cli.msview_cli_.paramgui(), viewer_cli.viewer_cli_.paramgui(), imregrid_cli.imregrid_cli_.paramgui(), listpartition_cli.listpartition_cli_.paramgui(), sdscale_cli.sdscale_cli_.paramgui(), imsubimage_cli.imsubimage_cli_.paramgui(), ft_cli.ft_cli_.paramgui(), msmoments_cli.msmoments_cli_.paramgui(), impbcor_cli.impbcor_cli_.paramgui(), slsearch_cli.slsearch_cli_.paramgui(), peel_cli.peel_cli_.paramgui(), predictcomp_cli.predictcomp_cli_.paramgui(), wvrgcal_cli.wvrgcal_cli_.paramgui(), uvcontsub_cli.uvcontsub_cli_.paramgui(), ssoflux_cli.ssoflux_cli_.paramgui(), vishead_cli.vishead_cli_.paramgui(), uvcontsub3_cli.uvcontsub3_cli_.paramgui(), sdimprocess_cli.sdimprocess_cli_.paramgui(), virtualconcat_cli.virtualconcat_cli_.paramgui(), listobs_cli.listobs_cli_.paramgui(), sdsmooth_cli.sdsmooth_cli_.paramgui(), fluxscale_cli.fluxscale_cli_.paramgui(), visstat_cli.visstat_cli_.paramgui(), imview_cli.imview_cli_.paramgui(), widebandpbcor_cli.widebandpbcor_cli_.paramgui(), sdcoadd_cli.sdcoadd_cli_.paramgui(), uvmodelfit_cli.uvmodelfit_cli_.paramgui(), listvis_cli.listvis_cli_.paramgui(), sdsave_cli.sdsave_cli_.paramgui(), simanalyze_cli.simanalyze_cli_.paramgui(), sdmath_cli.sdmath_cli_.paramgui(), imhead_cli.imhead_cli_.paramgui(), listcal_cli.listcal_cli_.paramgui(), sdgrid_cli.sdgrid_cli_.paramgui(), importasdm_cli.importasdm_cli_.paramgui(), sdtpimaging_cli.sdtpimaging_cli_.paramgui(), sdstat_cli.sdstat_cli_.paramgui(), makemask_cli.makemask_cli_.paramgui(), split_cli.split_cli_.paramgui(), sdimaging_cli.sdimaging_cli_.paramgui(), statwt_cli.statwt_cli_.paramgui(), sdflag_cli.sdflag_cli_.paramgui(), importevla_cli.importevla_cli_.paramgui(), partition_cli.partition_cli_.paramgui(), simalma_cli.simalma_cli_.paramgui(), imfit_cli.imfit_cli_.paramgui(), sdfit_cli.sdfit_cli_.paramgui(), sdcal_cli.sdcal_cli_.paramgui(), simobserve_cli.simobserve_cli_.paramgui(), gaincal_cli.gaincal_cli_.paramgui(), polcal_cli.polcal_cli_.paramgui(), sdbaseline_cli.sdbaseline_cli_.paramgui(), setjy_cli.setjy_cli_.paramgui(), mosaic_cli.mosaic_cli_.paramgui(), widefield_cli.widefield_cli_.paramgui(), pclean_cli.pclean_cli_.paramgui(), specfit_cli.specfit_cli_.paramgui(), sdreduce_cli.sdreduce_cli_.paramgui(), and flagdata_cli.flagdata_cli_.paramgui().

string flagdata_cli.flagdata_cli_.__name__ [static, private]

Definition at line 19 of file flagdata_cli.py.

Definition at line 22 of file flagdata_cli.py.

Definition at line 30 of file flagdata_cli.py.

Referenced by imreframe_cli.imreframe_cli_.itsdefault(), flagmanager_cli.flagmanager_cli_.itsdefault(), sdflagmanager_cli.sdflagmanager_cli_.itsdefault(), tclean_cli.tclean_cli_.itsdefault(), imregrid_cli.imregrid_cli_.itsdefault(), ft_cli.ft_cli_.itsdefault(), impbcor_cli.impbcor_cli_.itsdefault(), vishead_cli.vishead_cli_.itsdefault(), predictcomp_cli.predictcomp_cli_.itsdefault(), slsearch_cli.slsearch_cli_.itsdefault(), sdimprocess_cli.sdimprocess_cli_.itsdefault(), wvrgcal_cli.wvrgcal_cli_.itsdefault(), listobs_cli.listobs_cli_.itsdefault(), sdsmooth_cli.sdsmooth_cli_.itsdefault(), widebandpbcor_cli.widebandpbcor_cli_.itsdefault(), visstat_cli.visstat_cli_.itsdefault(), uvmodelfit_cli.uvmodelfit_cli_.itsdefault(), sdcoadd_cli.sdcoadd_cli_.itsdefault(), imhead_cli.imhead_cli_.itsdefault(), listvis_cli.listvis_cli_.itsdefault(), sdsave_cli.sdsave_cli_.itsdefault(), simanalyze_cli.simanalyze_cli_.itsdefault(), sdmath_cli.sdmath_cli_.itsdefault(), makemask_cli.makemask_cli_.itsdefault(), sdgrid_cli.sdgrid_cli_.itsdefault(), sdtpimaging_cli.sdtpimaging_cli_.itsdefault(), importasdm_cli.importasdm_cli_.itsdefault(), split_cli.split_cli_.itsdefault(), sdstat_cli.sdstat_cli_.itsdefault(), statwt_cli.statwt_cli_.itsdefault(), sdimaging_cli.sdimaging_cli_.itsdefault(), sdflag_cli.sdflag_cli_.itsdefault(), importevla_cli.importevla_cli_.itsdefault(), partition_cli.partition_cli_.itsdefault(), simalma_cli.simalma_cli_.itsdefault(), imfit_cli.imfit_cli_.itsdefault(), sdfit_cli.sdfit_cli_.itsdefault(), polcal_cli.polcal_cli_.itsdefault(), sdcal_cli.sdcal_cli_.itsdefault(), gaincal_cli.gaincal_cli_.itsdefault(), simobserve_cli.simobserve_cli_.itsdefault(), setjy_cli.setjy_cli_.itsdefault(), sdbaseline_cli.sdbaseline_cli_.itsdefault(), mosaic_cli.mosaic_cli_.itsdefault(), pclean_cli.pclean_cli_.itsdefault(), widefield_cli.widefield_cli_.itsdefault(), plotxy_cli.plotxy_cli_.itsdefault(), specfit_cli.specfit_cli_.itsdefault(), sdreduce_cli.sdreduce_cli_.itsdefault(), plotms_cli.plotms_cli_.itsdefault(), and flagdata_cli.flagdata_cli_.itsdefault().

This function sets the default values but also will return the list of parameters or the default value of a given parameter.

Definition at line 1215 of file flagdata_cli.py.

Definition at line 1228 of file flagdata_cli.py.

Handle globals or user over-ride of arguments.

Definition at line 21 of file flagdata_cli.py.

Definition at line 1218 of file flagdata_cli.py.


The documentation for this class was generated from the following file: