|
void | setAgentParameters (casacore::Record config) |
| Parse configuration parameters. More...
|
|
bool | computeAntennaPairFlags (const vi::VisBuffer2 &visBuffer, VisMapper &visibilities, FlagMapper &flags, casacore::Int antenna1, casacore::Int antenna2, std::vector< casacore::uInt > &rows) |
| Compute flags for a given (time,freq) map. More...
|
|
void | passIntermediate (const vi::VisBuffer2 &visBuffer) |
| Extract automatically computed thresholds to use them in the next pass. More...
|
|
void | passFinal (const vi::VisBuffer2 &visBuffer) |
| Remove automatically computed thresholds for the following scans. More...
|
|
casacore::Double | mean (std::vector< casacore::Double > &data, std::vector< casacore::Double > &counts) |
| Convenience function to get simple averages. More...
|
|
casacore::Double | median (std::vector< casacore::Double > &data) |
| Convenience function to compute median. More...
|
|
void | noiseVsRef (std::vector< casacore::Double > &data, casacore::Double ref) |
|
casacore::Double | computeThreshold (std::vector< casacore::Double > &data, std::vector< casacore::Double > &dataSquared, std::vector< casacore::Double > &counts) |
| Convenience function to get simple averages. More...
|
|
void | computeAntennaPairFlagsCore (std::pair< casacore::Int, casacore::Int > spw_field, casacore::Double noise, casacore::Double scutoff, casacore::uInt timeStart, casacore::uInt timeStop, casacore::uInt centralTime, VisMapper &visibilities, FlagMapper &flags) |
| casacore::Function to be called for each timestep/channel More...
|
|
void | robustMean (casacore::uInt timestep_i, casacore::uInt pol_k, casacore::uInt nChannels, casacore::Double &AverageReal, casacore::Double &AverageImag, casacore::Double &StdReal, casacore::Double &StdImag, casacore::Double &SumWeightReal, casacore::Double &SumWeightImag, VisMapper &visibilities, FlagMapper &flags) |
|
void | simpleMedian (casacore::uInt timestep_i, casacore::uInt pol_k, casacore::uInt nChannels, casacore::Double &AverageReal, casacore::Double &AverageImag, casacore::Double &StdReal, casacore::Double &StdImag, casacore::Double &SumWeightReal, casacore::Double &SumWeightImag, VisMapper &visibilities, FlagMapper &flags) |
|
FlagReport | getReport () |
| casacore::Function to return histograms More...
|
|
FlagReport | getReportCore (map< std::pair< casacore::Int, casacore::Int >, std::vector< casacore::Double > > &data, map< std::pair< casacore::Int, casacore::Int >, std::vector< casacore::Double > > &dataSquared, map< std::pair< casacore::Int, casacore::Int >, std::vector< casacore::Double > > &counts, map< std::pair< casacore::Int, casacore::Int >, casacore::Double > &threshold, FlagReport &totalReport, string label, casacore::Double scale) |
| casacore::Function to return histograms More...
|
|
void | generateThresholds (map< std::pair< casacore::Int, casacore::Int >, std::vector< casacore::Double > > &data, map< std::pair< casacore::Int, casacore::Int >, std::vector< casacore::Double > > &dataSquared, map< std::pair< casacore::Int, casacore::Int >, std::vector< casacore::Double > > &counts, map< std::pair< casacore::Int, casacore::Int >, casacore::Double > &threshold, string label) |
| Dedicated method to generate threshold values. More...
|
|
void | initialize () |
|
void | runCore () |
| Convenience function to be shared by parallel/non-parallel mode. More...
|
|
void | setDataSelection (casacore::Record config) |
|
casacore::String | sanitizeCorrExpression (casacore::String corrExpression, std::vector< casacore::String > *corrProducts) |
| Method to sanitize correlation expression and keep going. More...
|
|
void | generateAllIndex () |
|
void | generateRowsIndex (casacore::uInt nRows) |
|
void | generateChannelIndex (casacore::uInt nChannels) |
|
void | generatePolarizationIndex (casacore::uInt nPolarizations) |
|
std::vector< casacore::uInt > * | generateAntennaPairRowsIndex (casacore::Int antenna1, casacore::Int antenna2) |
|
void | indigen (std::vector< casacore::uInt > &index, casacore::uInt size) |
| Generate index for all rows. More...
|
|
bool | find (const casacore::Vector< casacore::Int > &validRange, casacore::Int element) |
| For checking ids. More...
|
|
bool | find (const casacore::Matrix< casacore::Double > &validRange, casacore::Double element) |
| For checking ranges. More...
|
|
bool | find (const casacore::Matrix< casacore::Int > &validPairs, casacore::Int element1, casacore::Int element2) |
| For checking pairs. More...
|
|
bool | find (const casacore::Block< int > &columns, int col) |
| For checking columns. More...
|
|
bool | isNaN (casacore::Double number) |
| Check if a given number is nan (for visibilities,gains and Tsys primarily) More...
|
|
bool | isNaN (casacore::Float number) |
|
bool | isZero (casacore::Double number) |
|
bool | isZero (casacore::Float number) |
|
bool | isNaNOrZero (casacore::Float number) |
|
bool | isNaNOrZero (casacore::Double number) |
|
bool | checkIfProcessBuffer () |
| Check if buffer has to be processed. More...
|
|
virtual void | preProcessBuffer (const vi::VisBuffer2 &visBuffer) |
| Common functionality for each visBuffer (don't repeat at the row level) More...
|
|
void | iterateRows () |
| Iterate trough list of rows. More...
|
|
void | iterateInRows () |
| Iterate trough visibilities mapper. More...
|
|
void | iterateAntennaPairs () |
| Iterate trough list of antenna pairs. More...
|
|
void | iterateAntennaPairsFlags () |
| Iterate trough list of antenna pairs w/o loading visibilities. More...
|
|
void | processAntennaPair (casacore::Int antenna1, casacore::Int antenna2) |
| Methods to interactively iterate trough list of antenna pairs. More...
|
|
virtual void | iterateAntennaPairsInteractive (antennaPairMap *antennaPairMap_ptr) |
|
void | setVisibilitiesMap (std::vector< casacore::uInt > *rows, VisMapper *visMap) |
| Mapping functions (abs, real, imag, etc.) as requested by Urvashi. More...
|
|
void | setFlagsMap (std::vector< casacore::uInt > *rows, FlagMapper *flagMap) |
|
casacore::Bool | checkVisExpression (polarizationMap *polMap) |
|
virtual bool | computeRowFlags (const vi::VisBuffer2 &visBuffer, FlagMapper &flags, casacore::uInt row) |
| Compute flags for a given visibilities point. More...
|
|
virtual bool | computeInRowFlags (const vi::VisBuffer2 &visBuffer, VisMapper &visibilities, FlagMapper &flags, casacore::uInt row) |
| Compute flags for a given visibilities point. More...
|
|
virtual bool | computeAntennaPairFlags (const vi::VisBuffer2 &visBuffer, FlagMapper &flags, casacore::Int antenna1, casacore::Int antenna2, std::vector< casacore::uInt > &rows) |
| Compute flags for a given (time,freq) antenna pair map w/o using visibilities. More...
|
|
bool | isStarted () const |
|
|
casacore::Bool | doflag_p |
| General parameters. More...
|
|
casacore::Bool | doplot_p |
|
casacore::uInt | nTimeSteps_p |
|
casacore::Double | noiseScale_p |
| flagdata task param timedevscale More...
|
|
casacore::Double | scutoffScale_p |
| flagdata task param freqdevscale More...
|
|
casacore::uInt | nIterationsRobust_p |
| Spectral Robust fit. More...
|
|
std::vector< casacore::Double > | thresholdRobust_p |
|
casacore::Double | spectralmin_p |
|
casacore::Double | spectralmax_p |
|
casacore::uInt | optype_p |
|
void(casa::FlagAgentRFlag::* | spectralAnalysis_p )(casacore::uInt, casacore::uInt, casacore::uInt, casacore::Double &, casacore::Double &, casacore::Double &, casacore::Double &, casacore::Double &, casacore::Double &, VisMapper &, FlagMapper &) |
|
map< std::pair< casacore::Int,
casacore::Int >, std::vector
< casacore::Double > > | field_spw_frequency_p |
| Store frequency to be used in Reports. More...
|
|
map< std::pair< casacore::Int,
casacore::Int >
, casacore::Double > | field_spw_frequencies_p |
|
casacore::Double | noise_p |
| casacore::Time-direction analysis More...
|
|
map< std::pair< casacore::Int,
casacore::Int >
, casacore::Double > | field_spw_noise_map_p |
| holds the timedev thresholds for every field-SPW pair More...
|
|
map< std::pair< casacore::Int,
casacore::Int >
, casacore::Bool > | user_field_spw_noise_map_p |
|
map< std::pair< casacore::Int,
casacore::Int >, std::vector
< casacore::Double > > | field_spw_noise_histogram_sum_p |
|
map< std::pair< casacore::Int,
casacore::Int >, std::vector
< casacore::Double > > | field_spw_noise_histogram_sum_squares_p |
|
map< std::pair< casacore::Int,
casacore::Int >, std::vector
< casacore::Double > > | field_spw_noise_histogram_counts_p |
|
casacore::Double | scutoff_p |
| Spectral analysis. More...
|
|
map< std::pair< casacore::Int,
casacore::Int >
, casacore::Double > | field_spw_scutoff_map_p |
| holds the freqdev thresholds for every field-SPW pair More...
|
|
map< std::pair< casacore::Int,
casacore::Int >
, casacore::Bool > | user_field_spw_scutoff_map_p |
|
map< std::pair< casacore::Int,
casacore::Int >, std::vector
< casacore::Double > > | field_spw_scutoff_histogram_sum_p |
|
map< std::pair< casacore::Int,
casacore::Int >, std::vector
< casacore::Double > > | field_spw_scutoff_histogram_sum_squares_p |
|
map< std::pair< casacore::Int,
casacore::Int >, std::vector
< casacore::Double > > | field_spw_scutoff_histogram_counts_p |
|
A flag agent that implements the 'rflag' flagdata mode.
Uses the FlagAgentBase::ANTENNA_PAIRS iteration approach.
Note that the user interface provided by flagdata is complex/misleading in trying to replicate the use patterns of RFlag in AIPS. This produces a potentially confusing pattern when implementing the virtuals of FlagAgentBase. The per-channel RMS/variance values are calculated in computeAntennaPairFlagsCore(). Then, the overall thresholds (timedev, freqdev) are calculated in getReport(). The different display modes are essentially implemented in getReportCore().
This implementation takes as reference implementation the AIPS task RFlag by Erich Greisen, see The AIPS Cookbook Appendix E : Special Considerations for EVLA data calibration and imaging in AIPS E.5 Detailed Flagging http://www.aips.nrao.edu/cook.html#CEE
Definition at line 54 of file FlagAgentRFlag.h.