casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FlagAgentDisplay.h
Go to the documentation of this file.
1 //# FlagAgentDisplay.h: This file contains the interface definition of the FlagAgentDisplay class.
2 //#
3 //# CASA - Common Astronomy Software Applications (http://casa.nrao.edu/)
4 //# Copyright (C) Associated Universities, Inc. Washington DC, USA 2011, All rights reserved.
5 //# Copyright (C) European Southern Observatory, 2011, All rights reserved.
6 //#
7 //# This library is free software; you can redistribute it and/or
8 //# modify it under the terms of the GNU Lesser General Public
9 //# License as published by the Free software Foundation; either
10 //# version 2.1 of the License, or (at your option) any later version.
11 //#
12 //# This library is distributed in the hope that it will be useful,
13 //# but WITHOUT ANY WARRANTY, without even the implied warranty of
14 //# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 //# Lesser General Public License for more details.
16 //#
17 //# You should have received a copy of the GNU Lesser General Public
18 //# License along with this library; if not, write to the Free Software
19 //# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
20 //# MA 02111-1307 USA
21 //# $Id: $
22 
23 #ifndef FlagAgentDisplay_H_
24 #define FlagAgentDisplay_H_
25 
27 
32 
33 
35 
36 
37 namespace casa { //# NAMESPACE CASA - BEGIN
38 
40 
41  public:
42 
43  FlagAgentDisplay(FlagDataHandler *dh, casacore::Record config, casacore::Bool writePrivateFlagCube = false);
45 
46  // Make plots and either display or write to a file
47  casacore::Bool displayReports(FlagReport &combinedReport);
48 
49  // Get a report/summary
51 
52  protected:
53 
54  // Compute flags for a given (time,freq) map
55  bool computeAntennaPairFlags(const vi::VisBuffer2 &visBuffer, VisMapper &visibilities,FlagMapper &flag,casacore::Int antenna1,casacore::Int antenna2,std::vector<casacore::uInt> &rows);
56 
57  void preProcessBuffer(const vi::VisBuffer2 &visBuffer);
58 
59  // Choose how to step through the baselines in the current chunk
60  void iterateAntennaPairsInteractive(antennaPairMap *antennaPairMap_ptr);
61 
62  // Parse configuration parameters
64 
65  private:
66 
71 
72 
73  void getChunkInfo(const vi::VisBuffer2 &visBuffer);
74  casacore::Bool skipBaseline(std::pair<casacore::Int,casacore::Int> antennaPair);
75 
76  void getUserInput();
77  void getReportUserInput();
78 
83 
84  // Plotter members
87 
88  // GUI parameters
91 
93 
94  // Control parameters
96 
97  // visBuffer state variables
107 
108  casacore::Bool dataDisplay_p, reportDisplay_p; // show per chunk plots and/or end-of-casacore::MS plots
111  // casacore::Bool reportReturn_p;
113 
116 // casacore::Bool showBandpass_p;
117 
118  // Control parameters
119 // casacore::Bool stopAndExit_p;
120 // casacore::Bool pause_p;
121 // casacore::Bool dataDisplay_p, reportDisplay_p; // show per chunk plots and/or end-of-casacore::MS plots
122 // casacore::Bool reportReturn_p;
123 // casacore::String reportFormat_p;
124 
125  // visBuffer state variables
126 // casacore::Int fieldId_p;
127 // casacore::String fieldName_p;
128 // casacore::Int scanStart_p;
129 // casacore::Int scanEnd_p;
130 // casacore::Int spwId_p;
131 // casacore::String antenna1_p;
132 // casacore::String antenna2_p;
133 
134 // casacore::uInt nPolarizations_p;
135 // casacore::Vector<casacore::Double> freqList_p;
136 
137  // GUI parameters
138 // casacore::String userChoice_p;
139 // casacore::String userFixA1_p, userFixA2_p;
140 
141 // casacore::Int skipScan_p, skipSpw_p, skipField_p;
142 
144 
145 
146  };
147 
148 
149 } //# NAMESPACE CASA - END
150 
151 #endif /* FLAGAGENTDISPLAY_H_ */
152 
casacore::Bool skipBaseline(std::pair< casacore::Int, casacore::Int > antennaPair)
casacore::String userChoice_p
GUI parameters.
int Int
Definition: aipstype.h:50
casacore::String fieldName_p
A top level class defining the data handling interface for the flagging module.
casacore::String antenna2_p
casacore::String userFixA1_p
void DisplayRaster(casacore::Int xdim, casacore::Int ydim, casacore::Vector< casacore::Float > &data, casacore::uInt frame)
casacore::Bool stopAndExit_p
void setAgentParameters(casacore::Record config)
Parse configuration parameters.
casacore::Vector< dbus::variant > panels_p
casacore::Vector< casacore::String > plotColours_p
casacore::Bool showBandpass_p;
casacore::String reportFormat_p
FlagPlotServerProxy * dataplotter_p
Plotter members.
Everything going into the FlagReport is by value Everything going out of it is by reference...
Definition: FlagReport.h:40
casacore::Int fieldId_p
visBuffer state variables
std::map< std::pair< casacore::Int, casacore::Int >, std::vector< casacore::uInt > > antennaPairMap
ABSTRACT CLASSES Deliberately vague to be general enough to allow for many different types of data
Definition: PlotData.h:48
bool computeAntennaPairFlags(const vi::VisBuffer2 &visBuffer, VisMapper &visibilities, FlagMapper &flag, casacore::Int antenna1, casacore::Int antenna2, std::vector< casacore::uInt > &rows)
Compute flags for a given (time,freq) map.
casacore::Bool buildReportPlotWindow()
casacore::Bool reportDisplay_p
A top level class defining the interface for flagging agents.
casacore::Bool setDataLayout()
FlagAgentDisplay(FlagDataHandler *dh, casacore::Record config, casacore::Bool writePrivateFlagCube=false)
FlagPlotServerProxy * reportplotter_p
void DisplayLine(casacore::Int xdim, casacore::Vector< casacore::Double > &xdata, casacore::Vector< casacore::Float > &ydata, casacore::String label, casacore::String color, casacore::Bool hold, casacore::uInt frame)
casacore::uInt nPolarizations_p
A hierarchical collection of named fields of various types.
Definition: Record.h:180
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
const char * report_dock_xml_p
casacore::Bool dataDisplay_p
void DisplayScatter(casacore::Int xdim, casacore::Vector< casacore::Double > &xdata, casacore::Vector< casacore::Float > &ydata, casacore::String label, casacore::String color, casacore::Bool hold, casacore::uInt frame)
FlagReport getReport()
Get a report/summary.
casacore::String userFixA2_p
casacore::Bool showBandpass_p
casacore::Bool reportReturn_p;
casacore::String antenna1_p
casacore::Vector< casacore::Double > freqList_p
casacore::Bool displayReports(FlagReport &combinedReport)
Make plots and either display or write to a file.
casacore::Vector< dbus::variant > report_panels_p
VisBuffer2s encapsulate one chunk of visibility data for processing.
Definition: VisBuffer2.h:141
casacore::Bool buildDataPlotWindow()
casacore::Bool setReportLayout()
ABSTRACT CLASSES Deliberately vague to be general enough to allow for many different types of but is it too vague to be useful Since the interface is meant to be a simple plotter
Definition: PlotData.h:48
String: the storage and methods of handling collections of characters.
Definition: String.h:223
void DisplayLineScatterError(FlagPlotServerProxy *&plotter, casacore::String &plottype, casacore::Vector< casacore::Float > &xdata, casacore::Vector< casacore::Float > &ydata, casacore::String &errortype, casacore::Vector< casacore::Float > &error, casacore::String label, casacore::String color, casacore::uInt frame)
void getChunkInfo(const vi::VisBuffer2 &visBuffer)
void preProcessBuffer(const vi::VisBuffer2 &visBuffer)
Common functionality for each visBuffer (don&#39;t repeat at the row level)
void iterateAntennaPairsInteractive(antennaPairMap *antennaPairMap_ptr)
Choose how to step through the baselines in the current chunk.
ABSTRACT CLASSES Abstract class for colors Any implementation of color should be able to provide a hexadecimal form of the color(i.e.,"000000"for black) and
casacore::Bool pause_p
Control parameters.
unsigned int uInt
Definition: aipstype.h:51