casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
LFExtendFlags.h
Go to the documentation of this file.
00001 //# LFExtendFlags: A lighter flagger - for autoflag
00002 //# Copyright (C) 2000,2001
00003 //# Associated Universities, Inc. Washington DC, USA.
00004 //#
00005 //# This library is free software; you can redistribute it and/or modify it
00006 //# under the terms of the GNU Library General Public License as published by
00007 //# the Free Software Foundation; either version 2 of the License, or (at your
00008 //# option) any later version.
00009 //#
00010 //# This library is distributed in the hope that it will be useful, but WITHOUT
00011 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00012 //# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00013 //# License for more details.
00014 //#
00015 //# You should have received a copy of the GNU Library General Public License
00016 //# along with this library; if not, write to the Free Software Foundation,
00017 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
00018 //#
00019 //# Correspondence concerning AIPS++ should be addressed as follows:
00020 //#        Internet email: aips2-request@nrao.edu.
00021 //#        Postal address: AIPS++ Project Office
00022 //#                        National Radio Astronomy Observatory
00023 //#                        520 Edgemont Road
00024 //#                        Charlottesville, VA 22903-2475 USA
00025 //#
00026 //# $Jan 28 2011 rurvashi Id$
00027 #ifndef FLAGGING_LFEXTENDFLAGS_H
00028 #define FLAGGING_LFEXTENDFLAGS_H
00029 
00030 #include <flagging/Flagging/LFExamineFlags.h>
00031 
00032 namespace casa { //# NAMESPACE CASA - BEGIN
00033   
00034   class LFExtendFlags : public LFExamineFlags
00035   {
00036   public:  
00037     // default constructor 
00038     LFExtendFlags  ();
00039     // default destructor
00040     ~LFExtendFlags ();
00041 
00042     // Return method name
00043     String methodName(){return String("extendflags");};
00044 
00045     // Set autoflag params
00046     Bool setParameters(Record &parameters);
00047     
00048     // Get default autoflag params
00049     Record getParameters();
00050 
00051     // Run the algorithm
00052     Bool runMethod(const VisBuffer &inVb, Cube<Float> &inVisc, Cube<Bool> &inFlagc, Cube<Bool> &inPreFlagc, 
00053                    uInt numT, uInt numAnt, uInt numB, uInt numC, uInt numP);    
00054     
00055   private:
00056 
00057     void GrowFlags();
00058     void FlagBaselinesFromAntennas();
00059     void ExtendFlagsAcrossPols();
00060     void FlagAntennasFromBaselines();
00061     //    void ExtendAcrossBaselines();
00062     //    void MakeFlagCmds();
00063 
00064     Int flaglevel_p;
00065 
00066     Bool flagcrossfromauto_p;
00067     Bool flagbothants_p;
00068 
00069     Bool extendacrosspols_p;
00070 
00071     Float grow_in_time_p;
00072     Float grow_in_freq_p;
00073     Bool grow_around_p;
00074 
00075     Bool flag_prev_next_time_p;
00076     Bool flag_prev_next_freq_p;
00077 
00078     Vector<Int> ant1,ant2;
00079     
00080   };
00081   
00082   
00083 } //# NAMESPACE CASA - END
00084 
00085 #endif
00086