casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables
Functions
task_flagcmd Namespace Reference

Functions

def flagcmd
def readFromTable
def readFromCmd
def readFromFile
def updateTable
def listFlagCmd
def selectFlags
def clearFlagCmd
def plotflags
def newplotflags
def isModeValid
def readCalCmds
def applyCalCmds

Function Documentation

def task_flagcmd.applyCalCmds (   aflocal,
  caltable,
  myflagcmd,
  tablerows,
  flagbackup,
  outfile 
)

Definition at line 2071 of file task_flagcmd.py.

Referenced by flagcmd().

def task_flagcmd.clearFlagCmd (   msfile,
  myrowlist = [] 
)

Definition at line 1516 of file task_flagcmd.py.

References plotflags().

Referenced by flagcmd().

def task_flagcmd.flagcmd (   vis = None,
  inpmode = None,
  inpfile = None,
  tablerows = None,
  reason = None,
  useapplied = None,
  tbuff = None,
  ants = None,
  action = None,
  flagbackup = None,
  clearall = None,
  rowlist = None,
  plotfile = None,
  savepars = None,
  outfile = None,
  async = None 
)
def task_flagcmd.isModeValid (   line)
Check if mode is valid based on a line
   molinede --> line with strings
    Returns True if mode is either one of the following:
       '',manual,clip,quack,shadow,elevation      

Definition at line 2014 of file task_flagcmd.py.

def task_flagcmd.listFlagCmd (   myflags = None,
  myantenna = '',
  myreason = '',
  myoutfile = '',
  listmode = '' 
)
List flags in myflags dictionary

Format according to listmode:
    =''          do nothing
    ='file'      Format for flag command strings
    ='cmd'       Format for FLAG_CMD flags
    ='online'    Format for online flags

Definition at line 1030 of file task_flagcmd.py.

References selectFlags().

Referenced by flagcmd(), and updateTable().

def task_flagcmd.newplotflags (   myflags,
  plotname,
  t1sdata,
  t2sdata 
)

Definition at line 1676 of file task_flagcmd.py.

References casapy.exit().

Referenced by flagcmd(), and plotflags().

def task_flagcmd.plotflags (   myflags,
  plotname,
  t1sdata,
  t2sdata 
)

Definition at line 1556 of file task_flagcmd.py.

References casapy.exit(), and newplotflags().

Referenced by clearFlagCmd().

def task_flagcmd.readCalCmds (   caltable,
  msfile,
  flaglist,
  rows,
  reason,
  useapplied 
)
Flag a cal table

caltable    cal table name
msfile      optional MS with flag cmds
flagcmds    list with flag cmds or [] when msfile is given
reason      select only flag cmds with this reason(s)
useapplied  select APPLIED true or false

Definition at line 2031 of file task_flagcmd.py.

References readFromTable().

Referenced by flagcmd().

def task_flagcmd.readFromCmd (   cmdlist,
  ms_startmjds,
  ms_endmjds 
)
Read the parameters from a list of commands

Definition at line 616 of file task_flagcmd.py.

References readFromFile().

def task_flagcmd.readFromFile (   cmdlist,
  ms_startmjds,
  ms_endmjds,
  myreason = '' 
)
Parse list of flag command strings and return dictionary of flagcmds
Inputs:
   cmdlist (list,string) list of command strings (default for TIME,INTERVAL)
   ms_startmjds (float)  starting mjd (sec) of MS (default for TIME,INTERVAL)
   ms_endmjds (float)    ending mjd (sec) of MS

Definition at line 760 of file task_flagcmd.py.

References updateTable().

Referenced by readFromCmd().

def task_flagcmd.readFromTable (   msfile,
  myflagrows = [],
  useapplied = True,
  myreason = 'any' 
)
Read flag commands from rows of the FLAG_CMD table of msfile
If useapplied=False then include only rows with APPLIED=False
If myreason is anything other than '', then select on that

Definition at line 449 of file task_flagcmd.py.

Referenced by flagcmd(), and readCalCmds().

def task_flagcmd.selectFlags (   myflags = None,
  myantenna = '',
  myreason = 'any',
  myflagsort = '' 
)

Definition at line 1196 of file task_flagcmd.py.

Referenced by flagcmd(), and listFlagCmd().

def task_flagcmd.updateTable (   msfile,
  mycol = '',
  myval = None,
  myrowlist = [] 
)
Update commands in myrowlist of the FLAG_CMD table of msfile    
   Usage: updateflagcmd(msfile,myrow,mycol,myval)

Definition at line 969 of file task_flagcmd.py.

References listFlagCmd().

Referenced by flagcmd(), and readFromFile().