casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
casa::RFATimeFreqCrop Class Reference

RFATimeFreqCrop : 2-Dimensional Time Frequency Autoflag agent. More...

#include <RFATimeFreqCrop.h>

Inheritance diagram for casa::RFATimeFreqCrop:
casa::RFAFlagCubeBase casa::RFDataMapper casa::RFABase casa::FlaggerEnums

List of all members.

Public Member Functions

 RFATimeFreqCrop (RFChunkStats &ch, const RecordInterface &parm)
virtual ~RFATimeFreqCrop ()
virtual Bool newChunk (Int &i)
 Called before iterating over a chunk.
virtual void endChunk ()
 Called once finished with a chunk.
virtual void startData (bool verbose)
 Called before starting a data pass on a chunk.
virtual IterMode iterTime (uInt itime)
 Iteration methods for a data pass.
virtual IterMode iterRow (uInt irow)
 iterRow() is called once per each row in the VisBuffer.
virtual IterMode endData ()
 Called after a pass is completed successfully (i.e., not stopped by start or iter methods).
virtual void startFlag (bool verbose)
 Called before starting the fetch-flags pass.
virtual void iterFlag (uInt itime)
 Iteration method for a flag pass.

Static Public Member Functions

static const RecordInterfacegetDefaults ()

Private Member Functions

Float UMean (Vector< Float > vect, Vector< Bool > flag)
Float UStd (Vector< Float > vect, Vector< Bool > flag, Vector< Float > fit)
Float UStd (Vector< Float > vect, Vector< Bool > flag, Float mean)
void CleanBand (Vector< Float > data, Vector< Float > fit)
void PolyFit (Vector< Float > data, Vector< Bool > flag, Vector< Float > fit, uInt lim1, uInt lim2, uInt deg)
void LineFit (Vector< Float > data, Vector< Bool > flag, Vector< Float > fit, uInt lim1, uInt lim2)
void Ants (uInt bs, uInt *a1, uInt *a2)
uInt BaselineIndex (uInt row, uInt a1, uInt a2)
void Display_ds9 (Int xdim, Int ydim, Matrix< Float > &data, Int frame)
void Plot_ds9 (Int dim, Vector< Float > data1, Vector< Float > data2)
void AllocateMemory ()
void FlagZeros ()
void RunTFCrop ()
void FlagTimeSeries (uInt pl, uInt bs)
void FitCleanBandPass (uInt pl, uInt bs)
void FlagBandPass (uInt pl, uInt bs)
void GrowFlags (uInt pl, uInt bs)
RFA::IterMode ShowFlagPlots ()
void ExtendFlags ()
void FillChunkFlags ()

Private Attributes

uInt itime
VisibilityIteratorvi
VisBuffervb
uInt TimeStamps
String msname
Vector< Intant1
Vector< Intant2
Cube< Complex > * vv
Cube< Complex > vc
Cube< Boolff
Vector< Boolfr
Cube< Floatvisc
Cube< Boolflagc
Cube< FloatmeanBP
Cube< FloatcleanBP
Vector< Boolrowflags
Vector< Boolbaselineflags
Cube< Boolchunkflags
Vector< FloattempBP
Vector< FloattempTS
Vector< BoolflagBP
Vector< BoolflagTS
Vector< FloatfitBP
Vector< FloatfitTS
Float T_TOL
Float F_TOL
Float ANT_TOL
Float BASELN_TOL
uInt FlagLevel
uInt CorrChoice
uInt NumTime
uInt MaxNPieces
Bool ShowPlots
Bool DryRun
Bool IgnorePreflags
uInt nPol
Bool FreqLineFit
Bool StopAndExit
String Column
Vector< StringExpr
Matrix< BoolRowFlags
IPosition cubepos
IPosition matpos
uInt passcnt
uInt iterRowcnt
uInt iterTimecnt
uInt timecnt
uInt NumT
uInt NumB
uInt NumAnt
uInt NumC
uInt NumP
FlagCubeIterator flag_iter

Detailed Description

RFATimeFreqCrop : 2-Dimensional Time Frequency Autoflag agent.

Intended use:

Internal

Prerequisite

Synopsis

To Do

class RFATimeFreqCrop : public RFADiffMapBase

Definition at line 75 of file RFATimeFreqCrop.h.


Constructor & Destructor Documentation


Member Function Documentation

void casa::RFATimeFreqCrop::Ants ( uInt  bs,
uInt a1,
uInt a2 
) [private]
uInt casa::RFATimeFreqCrop::BaselineIndex ( uInt  row,
uInt  a1,
uInt  a2 
) [private]
void casa::RFATimeFreqCrop::CleanBand ( Vector< Float data,
Vector< Float fit 
) [private]
void casa::RFATimeFreqCrop::Display_ds9 ( Int  xdim,
Int  ydim,
Matrix< Float > &  data,
Int  frame 
) [private]
virtual void casa::RFATimeFreqCrop::endChunk ( ) [virtual]

Called once finished with a chunk.

Reimplemented from casa::RFAFlagCubeBase.

Called after a pass is completed successfully (i.e., not stopped by start or iter methods).

Return value: STOP to stop, DATA for another data pass, DRY for another dry pass.

Reimplemented from casa::RFAFlagCubeBase.

void casa::RFATimeFreqCrop::FitCleanBandPass ( uInt  pl,
uInt  bs 
) [private]
void casa::RFATimeFreqCrop::FlagBandPass ( uInt  pl,
uInt  bs 
) [private]
void casa::RFATimeFreqCrop::FlagTimeSeries ( uInt  pl,
uInt  bs 
) [private]

Reimplemented from casa::RFAFlagCubeBase.

void casa::RFATimeFreqCrop::GrowFlags ( uInt  pl,
uInt  bs 
) [private]
virtual void casa::RFATimeFreqCrop::iterFlag ( uInt  ) [virtual]

Iteration method for a flag pass.

Called once per each VisBuffer.

Reimplemented from casa::RFAFlagCubeBase.

virtual IterMode casa::RFATimeFreqCrop::iterRow ( uInt  ) [virtual]

iterRow() is called once per each row in the VisBuffer.

Iterating over rows is perhaps preferrable in terms of performance, at least for data iterations.

Reimplemented from casa::RFABase.

Iteration methods for a data pass.

Either or both may be implemented. iterTime() is called once for each new VisBuffer (= new time slot) Return value: STOP to finish iterating, CONT/DATA to continue, or DRY to cancel the data pass and request a dry pass.

Reimplemented from casa::RFAFlagCubeBase.

void casa::RFATimeFreqCrop::LineFit ( Vector< Float data,
Vector< Bool flag,
Vector< Float fit,
uInt  lim1,
uInt  lim2 
) [private]
virtual Bool casa::RFATimeFreqCrop::newChunk ( Int ) [virtual]

Called before iterating over a chunk.

Returns True if agent will process this chunk, or False if this the agent is unable to process it. (this can happen if, e.g., the requisite correlations are not present). The Int & maxmem argument is the number of MB memory which is still available in the memory pool. The agent class should plan its memory use accordingly, and subtract its expected memory use from maxmem. In effect, the agent "reserves" some amount of memory. This is used by RedFlagger to contain the total memory footprint. Note that only a rough reckoning is sufficient, so only bother estimating the biggest data structures. See implementations in RFADiffBase and RFATimeMedian for good examples. nAgent is the total number of agents.

Reimplemented from casa::RFAFlagCubeBase.

void casa::RFATimeFreqCrop::Plot_ds9 ( Int  dim,
Vector< Float data1,
Vector< Float data2 
) [private]
void casa::RFATimeFreqCrop::PolyFit ( Vector< Float data,
Vector< Bool flag,
Vector< Float fit,
uInt  lim1,
uInt  lim2,
uInt  deg 
) [private]
virtual void casa::RFATimeFreqCrop::startData ( bool  ) [virtual]

Called before starting a data pass on a chunk.

Reimplemented from casa::RFAFlagCubeBase.

virtual void casa::RFATimeFreqCrop::startFlag ( bool  ) [virtual]

Called before starting the fetch-flags pass.

Reimplemented from casa::RFAFlagCubeBase.

Float casa::RFATimeFreqCrop::UMean ( Vector< Float vect,
Vector< Bool flag 
) [private]
Float casa::RFATimeFreqCrop::UStd ( Vector< Float vect,
Vector< Bool flag,
Vector< Float fit 
) [private]
Float casa::RFATimeFreqCrop::UStd ( Vector< Float vect,
Vector< Bool flag,
Float  mean 
) [private]

Member Data Documentation

Definition at line 121 of file RFATimeFreqCrop.h.

Definition at line 121 of file RFATimeFreqCrop.h.

Definition at line 143 of file RFATimeFreqCrop.h.

Definition at line 132 of file RFATimeFreqCrop.h.

Definition at line 143 of file RFATimeFreqCrop.h.

Definition at line 134 of file RFATimeFreqCrop.h.

Definition at line 130 of file RFATimeFreqCrop.h.

Definition at line 149 of file RFATimeFreqCrop.h.

Definition at line 144 of file RFATimeFreqCrop.h.

Definition at line 154 of file RFATimeFreqCrop.h.

Definition at line 145 of file RFATimeFreqCrop.h.

Definition at line 150 of file RFATimeFreqCrop.h.

Definition at line 143 of file RFATimeFreqCrop.h.

Definition at line 125 of file RFATimeFreqCrop.h.

Definition at line 140 of file RFATimeFreqCrop.h.

Definition at line 141 of file RFATimeFreqCrop.h.

Definition at line 167 of file RFATimeFreqCrop.h.

Definition at line 138 of file RFATimeFreqCrop.h.

Definition at line 128 of file RFATimeFreqCrop.h.

Definition at line 144 of file RFATimeFreqCrop.h.

Definition at line 139 of file RFATimeFreqCrop.h.

Definition at line 126 of file RFATimeFreqCrop.h.

Definition at line 147 of file RFATimeFreqCrop.h.

Definition at line 145 of file RFATimeFreqCrop.h.

Definition at line 157 of file RFATimeFreqCrop.h.

Definition at line 158 of file RFATimeFreqCrop.h.

Definition at line 116 of file RFATimeFreqCrop.h.

Definition at line 154 of file RFATimeFreqCrop.h.

Definition at line 144 of file RFATimeFreqCrop.h.

Definition at line 129 of file RFATimeFreqCrop.h.

Definition at line 120 of file RFATimeFreqCrop.h.

Definition at line 146 of file RFATimeFreqCrop.h.

Definition at line 163 of file RFATimeFreqCrop.h.

Definition at line 162 of file RFATimeFreqCrop.h.

Definition at line 164 of file RFATimeFreqCrop.h.

Definition at line 165 of file RFATimeFreqCrop.h.

Definition at line 161 of file RFATimeFreqCrop.h.

Definition at line 144 of file RFATimeFreqCrop.h.

Definition at line 156 of file RFATimeFreqCrop.h.

Definition at line 131 of file RFATimeFreqCrop.h.

Definition at line 152 of file RFATimeFreqCrop.h.

Definition at line 145 of file RFATimeFreqCrop.h.

Definition at line 148 of file RFATimeFreqCrop.h.

Definition at line 143 of file RFATimeFreqCrop.h.

Definition at line 136 of file RFATimeFreqCrop.h.

Definition at line 137 of file RFATimeFreqCrop.h.

Definition at line 159 of file RFATimeFreqCrop.h.

Definition at line 119 of file RFATimeFreqCrop.h.

Definition at line 118 of file RFATimeFreqCrop.h.

Cube<Complex> casa::RFATimeFreqCrop::vc [private]

Definition at line 124 of file RFATimeFreqCrop.h.

Definition at line 117 of file RFATimeFreqCrop.h.

Definition at line 127 of file RFATimeFreqCrop.h.

Cube<Complex>* casa::RFATimeFreqCrop::vv [private]

Definition at line 123 of file RFATimeFreqCrop.h.


The documentation for this class was generated from the following file: