NRAO Home > CASA > CASA Toolkit Reference Manual
agentflagger.parseagentparameters - Function

2.2.1 Parse the parameters for the agent (flagging mode).


Description

The specific data selection parameters for the agent (flagging mode) are parsed. These parameters are the data selection and mode-specific parameters. See the example below:

Arguments





Inputs

aparams

It takes a record (dictionary) with the specific parameters for the flagging mode. The record may contain any data selection parameters supported by MS Selection, as well as mode-specific parameters such as:(1) array,feed,scan,field,spw,intent,correlation,antenna,uvrange,observation (2) mode (which can be: manual,clip,quack,shadow,elevation,tfcrop,extendflags,unflag or summary) For flagging mode=clip, the parameters are: expression, datacolumn, clipminmax, etc. See the documentation of the task flagdata for all the available parameters for each mode.(3) apply: default is true (true for flagging and false for unflagging) Example:myrecord=myrecord[’mode’]=’clip’myrecord[’scan’]=’1~3’myrecord[’clipminmax’]=[0.02,0.3]myrecord[’apply’]=Trueaf.parseagentparameters(myrecord)

allowed:

record

Default:

Returns
bool

Example

 
myrecord={}  
myrecord[’mode’]=’clip’  
myrecord[’scan’]=’1~3’  
myrecord[’clipminmax’]=[0.02,0.3]  
myrecord[’apply’]=True  
af.parseagentparameters(myrecord)  

__________________________________________________________________


More information about CASA may be found at the CASA web page

Copyright 2016 Associated Universities Inc., Washington, D.C.

This code is available under the terms of the GNU General Public Lincense


Home | Contact Us | Directories | Site Map | Help | Privacy Policy | Search