<casaxml xsi:schemaLocation="http://casa.nrao.edu/schema/casa.xsd file:///opt/casa/code/xmlcasa/xml/casa.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://casa.nrao.edu/schema/psetTypes.html">
<task category="flagging" name="flagdata" type="function">
<shortdescription>All-purpose flagging task based on data-selections and flagging modes/algorithms.</shortdescription>
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, a list of files or
a Python list of strings, containing a list of flag commands.
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 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.
Flagdata can also flag many types of calibration tables. For detailed
information, see the task pages of flagdata in CASA Docs
(https://casa.nrao.edu/casadocs/)
<param mustexist="true" name="vis" type="path">
<shortdescription>Name of input visibility file</shortdescription>
<description>Name of input visibility file
Example: vis='ngc5921.ms'
<param name="mode" type="string">
<shortdescription>Flagging mode (list/manual/clip/quack/shadow/elevation/tfcrop/rflag/antint/extent/unflag/summary)</shortdescription>
<description>Flagging mode
Options: 'list', 'manual', 'clip', 'quack',
'shadow', 'elevation', 'tfcrop', 'rflag',
'antint', 'extend', 'unflag', 'summary'
\* 'list': Flag according to the data selection
and flag commands specified in the input
list. The input list may come from a text file,
a list of text files 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
For optimization and whenever possible, the
task will create a union of the data selection
parameters present in the list and select only