casa
$Rev:20696$
|
LightFlagger: Tool for manual and automatic flagging. More...
#include <LightFlagger.h>
LightFlagger: Tool for manual and automatic flagging.
A lighter version of the existing flagger. This should eventually replace the Flagger.
LightFlagger performs manual and automated flagging operations on a measurement set. -- Attaches to an MS, with subsets decided via MSSelection. -- Contains one or more flagging methods of types derived from LFBase -- Iterates through the MS using a VisibilityIterator -- For each visbuffer, send each flagmethod the data and flags (by reference). -- Each flagmethod modifies the flags (in sequence, and in place). -- A FlagDisplay method displays data and flags as the visbuffers iterate by -- A record of summary statistics is returned after all the data has been traversed.
Construct MS MeasurementSet ms("test.MS2",Table::Update);
Construct LightFlagger LightFlagger flagger(ms);
Build record of global flagging options Record gen_options(); gen_options.define("showplots",True); gen_options.define("writeflags",False);
Build record of flagging-agent options (can read default params first) Record algo_options( flagger.getparameters("tfcrop") ); algo_options.define("freq_amp_cutoff",3.0);
Send flagging-agent parameters to the flagger flagger.setparameters("tfcrop",algo_options);
Run it. flagger.run(gen_options);
The existing Flagger infrastructure needs clean-up.
Definition at line 122 of file LightFlagger.h.
default constructor
default destructor
void casa::LightFlagger::AllocateMemory | ( | ) | [private] |
void casa::LightFlagger::Ants | ( | uInt | bs, |
uInt * | a1, | ||
uInt * | a2 | ||
) | [private] |
Bool casa::LightFlagger::attach | ( | String | msname | ) |
Attach to a measurement se.
uInt casa::LightFlagger::BaselineIndex | ( | uInt | row, |
uInt | a1, | ||
uInt | a2 | ||
) | [private] |
Record casa::LightFlagger::defaultParameters | ( | ) | [private] |
Bool casa::LightFlagger::deleteFlagVersion | ( | Vector< String > | versionname | ) |
Bool casa::LightFlagger::getFlagVersionList | ( | Vector< String > & | verlist | ) |
Record casa::LightFlagger::getparameters | ( | String | algorithm | ) |
Get default autoflag params.
void casa::LightFlagger::initParameters | ( | Record & | parameters | ) | [private] |
Bool casa::LightFlagger::readVisAndFlags | ( | VisBuffer & | vb, |
uInt | timecnt | ||
) | [private] |
Bool casa::LightFlagger::restoreFlagVersion | ( | Vector< String > | versionname, |
String | merge | ||
) |
Record casa::LightFlagger::run | ( | Record & | parameters | ) |
Run all the algorithms.
void casa::LightFlagger::runAllMethods | ( | Int | threadindex, |
Int | nmethods, | ||
Int | nthreads, | ||
uInt | numT, | ||
uInt | numAnt, | ||
uInt | numB, | ||
uInt | numC, | ||
uInt | nPol | ||
) | [private] |
Bool casa::LightFlagger::saveFlagVersion | ( | String | versionname, |
String | comment, | ||
String | merge | ||
) |
flag version support.
Bool casa::LightFlagger::setdata | ( | String | field = "" , |
String | spw = "" , |
||
String | array = "" , |
||
String | feed = "" , |
||
String | scan = "" , |
||
String | baseline = "" , |
||
String | uvrange = "" , |
||
String | time = "" , |
||
String | correlation = "" |
||
) |
Set the data selection parameters.
Bool casa::LightFlagger::setparameters | ( | String | algorithm, |
Record & | parameters | ||
) |
Set autoflag params.
Bool casa::LightFlagger::setupIterator | ( | ) | [private] |
Bool casa::LightFlagger::writeFlags | ( | VisibilityIterator & | vi, |
VisBuffer & | vb, | ||
uInt | timecnt | ||
) | [private] |
Vector<Int> casa::LightFlagger::ant1 [private] |
Definition at line 205 of file LightFlagger.h.
Vector<Int> casa::LightFlagger::ant2 [private] |
Definition at line 205 of file LightFlagger.h.
Vector<Bool> casa::LightFlagger::baselineFlag [private] |
Definition at line 184 of file LightFlagger.h.
String casa::LightFlagger::Column [private] |
Definition at line 181 of file LightFlagger.h.
Bool casa::LightFlagger::dbg [private] |
LogIO os;.
Definition at line 207 of file LightFlagger.h.
String casa::LightFlagger::Expr [private] |
Definition at line 181 of file LightFlagger.h.
Cube<Bool> casa::LightFlagger::flagc [private] |
Definition at line 202 of file LightFlagger.h.
Int casa::LightFlagger::FlagLevel [private] |
Definition at line 180 of file LightFlagger.h.
Vector<CountedPtr<LFBase> > casa::LightFlagger::flagmethods_p [private] |
List of flagging agents.
Definition at line 175 of file LightFlagger.h.
Bool casa::LightFlagger::FlagZeros [private] |
Definition at line 179 of file LightFlagger.h.
Int casa::LightFlagger::maxnumthreads_p [private] |
Definition at line 176 of file LightFlagger.h.
MeasurementSet casa::LightFlagger::ms_p [private] |
Definition at line 170 of file LightFlagger.h.
MSSelection casa::LightFlagger::mss_p [private] |
Definition at line 171 of file LightFlagger.h.
MeasurementSet casa::LightFlagger::mssel_p [private] |
Definition at line 170 of file LightFlagger.h.
uInt casa::LightFlagger::Ncorr [private] |
Definition at line 193 of file LightFlagger.h.
uInt casa::LightFlagger::Nrow [private] |
Definition at line 192 of file LightFlagger.h.
uInt casa::LightFlagger::NumAnt [private] |
Definition at line 189 of file LightFlagger.h.
uInt casa::LightFlagger::NumB [private] |
Definition at line 188 of file LightFlagger.h.
uInt casa::LightFlagger::NumC [private] |
Definition at line 190 of file LightFlagger.h.
uInt casa::LightFlagger::NumP [private] |
Definition at line 191 of file LightFlagger.h.
uInt casa::LightFlagger::NumT [private] |
Shapes per chunk.
Definition at line 187 of file LightFlagger.h.
Int casa::LightFlagger::NumTime [private] |
Definition at line 180 of file LightFlagger.h.
Cube<Bool> casa::LightFlagger::preflagc [private] |
Definition at line 203 of file LightFlagger.h.
Vector<Int> casa::LightFlagger::selCorr [private] |
Definition at line 183 of file LightFlagger.h.
Bool casa::LightFlagger::ShowPlots [private] |
Generic input parameters.
Definition at line 179 of file LightFlagger.h.
Bool casa::LightFlagger::StopAndExit [private] |
Definition at line 179 of file LightFlagger.h.
Bool casa::LightFlagger::UsePreFlags [private] |
Definition at line 179 of file LightFlagger.h.
Cube<Float> casa::LightFlagger::visc [private] |
Data Mapper Vector<Bool> dmCorrs; Bool SetupDataMapper();.
Storage arrays
Definition at line 201 of file LightFlagger.h.
IPosition casa::LightFlagger::VisCubeShp [private] |
Definition at line 194 of file LightFlagger.h.
VisSet* casa::LightFlagger::vs_p [private] |
Definition at line 172 of file LightFlagger.h.
Bool casa::LightFlagger::WriteFlagsToMS [private] |
Definition at line 179 of file LightFlagger.h.