Source
xxxxxxxxxx
RFFlagCube ( RFChunkStats &ch,casacore::Bool ignore=false,casacore::Bool reset=false,casacore::LogIO &os=default_sink );
//# RFFlagCube.h: this defines RFFlagCube
//# Copyright (C) 2000,2001,2002
//# 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$
//#include <flagging/Flagging/RedFlagger.h>
namespace casa { //# NAMESPACE CASA - BEGIN
typedef RFCubeLatticeIterator<RFlagWord> FlagCubeIterator;
// special row flag masks. RowFlagged for flagged rows,
// RowAbsent for absent rows
const RFlagWord RowFlagged=1,RowAbsent=2;
// casacore::Function for working with bitmasks. Does a bitwise-AND
// on every element, returns true if !=0 or false if ==0
template<class T> casacore::Array<T> operator & ( const casacore::Array<T> &,const T &);
// returns a casacore::LogicalArray corresponding to (ARR&MASK)!=0
template<class T> casacore::LogicalArray maskBits ( const casacore::Array<T> &,const T &);
// <summary>
// RFFlagCube: a cube of flags
// </summary>
// <use visibility=local>
// <reviewed reviewer="" date="" tests="" demos="">
// </reviewed>
// <prerequisite>
// <li> RFCubeLattice
// </prerequisite>
//
// <synopsis>
// RFFlagCube implements an [NCHAN,NIFR,NTIME] cube of flags, stored in
// a casacore::TempLattice that is iterated alog the TIME axis. One static
// (i.e. global) cube is used to hold the actual flags. Individual
// instances (instantiated by flagging agents) have individual unique
// bitmasks and, possibly, individual iterators.
//
// It was/is a design mistake to use a global/static buffer to hold the
// shared flags. Instead, every agent should point to the unique dynamically
// allocated buffer.
// </synopsis>
//
// <example>
// </example>
//
// <motivation>
// </motivation>
//
// <todo asof="2001/04/16">
// <li> add this feature
// <li> fix this bug
// <li> start discussion of this possible extension
// </todo>
class RFFlagCube : public FlaggerEnums