Source
xxxxxxxxxx
std::shared_ptr<RFABase> createAgent ( const casacore::String &name,RFChunkStats &chunk,const casacore::RecordInterface &parms, bool &only_selector );
//# Flagger.h: this defines Flagger
//# Copyright (C) 2000,2001
//# Associated Universities, Inc. Washington DC, USA.
//#
//# This library is free software; you can redistribute it and/or modify it
//# under the terms of the GNU Library General Public License as published by
//# the Free Software Foundation; either version 2 of the License, or (at your
//# option) any later version.
//#
//# This library is distributed in the hope that it will be useful, but WITHOUT
//# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
//# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
//# License for more details.
//#
//# You should have received a copy of the GNU Library General Public License
//# along with this library; if not, write to the Free Software Foundation,
//# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
//#
//# Correspondence concerning AIPS++ should be addressed as follows:
//# Internet email: aips2-request@nrao.edu.
//# Postal address: AIPS++ Project Office
//# National Radio Astronomy Observatory
//# 520 Edgemont Road
//# Charlottesville, VA 22903-2475 USA
//#
//# $Id$
namespace casa { //# NAMESPACE CASA - BEGIN
class VisSet;
class RFChunkStats;
// <summary>
// Flagger: high-performance automated flagging
// </summary>
// <use visibility=global>
// <reviewed reviewer="" date="" tests="" demos="">
// </reviewed>
// <prerequisite>
// <li> implement/Flagger
// </prerequisite>
//
// <etymology>
// casacore::MSFlagger and plain flagger were already taken.
// </etymology>
//
// <synopsis>
// Flagger performs automated flagging operations on a measurement set.
// The class is constructed from an MS. After that, the run method may be used
// to run any number of flagging agents.
// </synopsis>
//
// <example>
// // construct casacore::MS and flagger
// casacore::MeasurementSet ms("test.MS2",casacore::Table::Update);
// Flagger flagger(ms);
// // build record of global flagging options
// casacore::Record opt(casacore::Record::Variable);
// // build record of flagging agents to be run
// casacore::Record selopt( flagger.defaultAgents().asRecord("select") );
// selopt.define(RF_POLICY,"RESET");
// selopt.define(RF_AUTOCORR,true);
// casacore::Record agents(casacore::Record::Variable);
// agents.defineRecord("select",selopt);
// // perform the flagging
// flagger.run(agents,opt);
// </example>
//
// <motivation>
// We need an automated flagging tool. Existing tools (casacore::MSFlagger and flagger.g)
// were too slow. Hence, Flagger was developed.
// </motivation>