casa
$Rev:20696$
|
#include <PlotCal.h>
Public Member Functions | |
PlotCal () | |
PlotCal: Class to plot calibration tables. | |
virtual | ~PlotCal () |
Destructor. | |
Bool | open (String tabName) |
open a calibration table | |
void | close () |
close...detach from tables but keep tablePlot alive | |
Bool | clearPlot (Int panel=0) |
Clear the plot or panel. | |
Bool | setPlotParam (Int subplot=111, const Bool overplot=False, const String &iteration="", const Vector< Double > &plotrange=Vector< Double >(0), const Bool &showflags=False, const String &plotsymbol="ro", const String &plotcolor="green", const Double &markersize=5.0, const Double &fontsize=10.0) |
Setting the plot look and feel. | |
Bool | selectCal (const String &antenna="", const String &field="", const String &spw="", const String &time="", const String &poln="") |
Select on caltable using MSSelection helpers. | |
Bool | oldplot (String plottype=String("PHASE"), String poltype=String("")) |
Plot the selection and table. | |
Bool | plot (String xaxis="", String yaxis="") |
Bool | saveFigure (const String &filename, const Int dpi, const String &orientation, const String &papertype, const String &facecolor, const String &edgecolor) |
Save the plot to an image file. | |
Bool | iterPlotNext () |
Trigger next iteration. | |
Bool | iterPlotStop (Bool rmplotter) |
stop iterations | |
Bool | markRegion (Int nrows, Int ncols, Int panel, Vector< Double > ®ion) |
mark a region | |
Bool | flagData (Bool direction) |
flag the data | |
Bool | locateData () |
Print Location of data. | |
Private Member Functions | |
void | createCalTab (String &tabName) |
void | getAxisTaQL (const String &axis, String &taql, String &label) |
Bool | doPlot () |
Int | multiTables (const Table &tablein, Vector< Table > &tablesout, Vector< String > &tablesoutnames, Vector< Int > &cdlist, Block< String > colNames) |
void | subplotToPanel (const Int &subplot, Int &nrows, Int &ncols, Int &panel) |
void | setPlotSymbols (const String &plotsymbol) |
One more function which is very matplotlib specific. | |
void | fillPlotOptions () |
Fill the option record into plotoption. | |
void | getMetaRecord () |
Get MS Meta data for labels and locating. | |
Vector< Int > | getAntIdx (const String &antenna) |
Vector< Int > | getFieldIdx (const String &field) |
Vector< Int > | getSpwIdx (const String &spw, Matrix< Int > &chanId) |
Vector< Int > | getCalDescIds (const Vector< Int > selspws) |
Matrix< Double > | getTimeRange (const String &time) |
void | getFreqInfo () |
get channel freq info for frequency labelling | |
void | virtualBPoly (Table &tabG, Int &nchan) |
Handle BPOLY. | |
Double | getChebVal (const Vector< Double > &coeff, const Double &xinit, const Double &xfinal, const Double &x) |
void | virtualGSpline (Table &tabG) |
Handle GSPLINE. | |
Double | getSplineVal (Double x, Vector< Double > &knots, Vector< Double > &coeff) |
Bool | timePlotK () |
Handle K. | |
void | virtualKTab (Table &tabB, Int &nAnt, Vector< Int > &ant1hash, Vector< Int > &ant2hash) |
String | CDIcol () |
Return which MAIN table column to return for "CAL_DESC_ID", depending on whether we are plotting a new or old table. | |
String | GAINcol () |
Private Attributes | |
TablePlot * | tp_p |
Private data. | |
String | tabName_p |
String | msName_p |
Table | tab_p |
Table | tabSel_p |
String | calType_p |
Int | nxPanels_p |
Int | nyPanels_p |
Bool | multiPlot_p |
Bool | overPlot_p |
Bool | antSel_p |
Bool | fldSel_p |
Bool | spwSel_p |
Record | plotopts_p |
PlotOptions | itsPlotOptions |
String | plotType_p |
String | polType_p |
String | xAxis_p |
String | yAxis_p |
Table | virtualTab_p |
This is the one that will have a flag column. | |
PtrBlock< Table * > | overlayTabs_p |
Vector< String > | plotTaQL_p |
Vector< String > | label_p |
Vector< String > | iterAxes_p |
Bool | iterating_p |
String | title_p |
String | titleMain_p |
String | titlePoln_p |
String | titleSpw_p |
String | titleFld_p |
String | titleAnt_p |
Int | whichPol_p |
whichPol_p determines which pol to plot 0 = "R" or "X" 1 = "L" or "Y" 2 = "diff of phase " or "ratio of amplitude" between R and L or X and Y 3 = "mean" of "R" and "L" or "X" and "Y" | |
Int | nCalDesc_p |
Matrix< Int > | tabSpws_p |
Matrix< Int > | chanId_p |
Vector< Double > | startFreq_p |
Vector< Double > | stepFreq_p |
Vector< Int > | nchan_p |
casa::TPResetCallBack * | resetCallBack_p |
The ResetCallBack. | |
Record | metaRec_p |
A record containing meta info for callbacks. | |
Vector< Vector< Int > > | fldlist_p |
Bool | noMS_p |
Vector< Int > | MSstartChan_p |
Bool | isNCT_p |
If True, we are plotting a NewCalTable, else the old kind. | |
NewCalTable | ct_p |
casa::PlotCal::PlotCal | ( | ) |
virtual casa::PlotCal::~PlotCal | ( | ) | [virtual] |
Destructor.
String casa::PlotCal::CDIcol | ( | ) | [inline, private] |
void casa::PlotCal::close | ( | ) |
close...detach from tables but keep tablePlot alive
Referenced by casa::PlotCalReset::reset().
void casa::PlotCal::createCalTab | ( | String & | tabName | ) | [private] |
Bool casa::PlotCal::doPlot | ( | ) | [private] |
void casa::PlotCal::fillPlotOptions | ( | ) | [private] |
Fill the option record into plotoption.
Double casa::PlotCal::getChebVal | ( | const Vector< Double > & | coeff, |
const Double & | xinit, | ||
const Double & | xfinal, | ||
const Double & | x | ||
) | [private] |
void casa::PlotCal::getFreqInfo | ( | ) | [private] |
get channel freq info for frequency labelling
void casa::PlotCal::getMetaRecord | ( | ) | [private] |
Get MS Meta data for labels and locating.
Double casa::PlotCal::getSplineVal | ( | Double | x, |
Vector< Double > & | knots, | ||
Vector< Double > & | coeff | ||
) | [private] |
Bool casa::PlotCal::iterPlotNext | ( | ) |
Trigger next iteration.
Bool casa::PlotCal::locateData | ( | ) |
Print Location of data.
mark a region
Int casa::PlotCal::multiTables | ( | const Table & | tablein, |
Vector< Table > & | tablesout, | ||
Vector< String > & | tablesoutnames, | ||
Vector< Int > & | cdlist, | ||
Block< String > | colNames | ||
) | [private] |
Plot the selection and table.
Bool casa::PlotCal::saveFigure | ( | const String & | filename, |
const Int | dpi, | ||
const String & | orientation, | ||
const String & | papertype, | ||
const String & | facecolor, | ||
const String & | edgecolor | ||
) |
Save the plot to an image file.
Bool casa::PlotCal::selectCal | ( | const String & | antenna = "" , |
const String & | field = "" , |
||
const String & | spw = "" , |
||
const String & | time = "" , |
||
const String & | poln = "" |
||
) |
Select on caltable using MSSelection helpers.
Bool casa::PlotCal::setPlotParam | ( | Int | subplot = 111 , |
const Bool | overplot = False , |
||
const String & | iteration = "" , |
||
const Vector< Double > & | plotrange = Vector< Double >(0) , |
||
const Bool & | showflags = False , |
||
const String & | plotsymbol = "ro" , |
||
const String & | plotcolor = "green" , |
||
const Double & | markersize = 5.0 , |
||
const Double & | fontsize = 10.0 |
||
) |
Setting the plot look and feel.
void casa::PlotCal::setPlotSymbols | ( | const String & | plotsymbol | ) | [private] |
One more function which is very matplotlib specific.
void casa::PlotCal::subplotToPanel | ( | const Int & | subplot, |
Int & | nrows, | ||
Int & | ncols, | ||
Int & | panel | ||
) | [private] |
Bool casa::PlotCal::timePlotK | ( | ) | [private] |
Handle K.
void casa::PlotCal::virtualGSpline | ( | Table & | tabG | ) | [private] |
Handle GSPLINE.
void casa::PlotCal::virtualKTab | ( | Table & | tabB, |
Int & | nAnt, | ||
Vector< Int > & | ant1hash, | ||
Vector< Int > & | ant2hash | ||
) | [private] |
Bool casa::PlotCal::antSel_p [private] |
String casa::PlotCal::calType_p [private] |
Matrix<Int> casa::PlotCal::chanId_p [private] |
NewCalTable casa::PlotCal::ct_p [private] |
Bool casa::PlotCal::fldSel_p [private] |
Bool casa::PlotCal::isNCT_p [private] |
If True, we are plotting a NewCalTable, else the old kind.
Definition at line 253 of file PlotCal.h.
Referenced by CDIcol().
Bool casa::PlotCal::iterating_p [private] |
Vector<String> casa::PlotCal::iterAxes_p [private] |
PlotOptions casa::PlotCal::itsPlotOptions [private] |
Vector<String> casa::PlotCal::label_p [private] |
Record casa::PlotCal::metaRec_p [private] |
String casa::PlotCal::msName_p [private] |
Vector<Int> casa::PlotCal::MSstartChan_p [private] |
Bool casa::PlotCal::multiPlot_p [private] |
Int casa::PlotCal::nCalDesc_p [private] |
Vector<Int> casa::PlotCal::nchan_p [private] |
Bool casa::PlotCal::noMS_p [private] |
Int casa::PlotCal::nxPanels_p [private] |
Int casa::PlotCal::nyPanels_p [private] |
PtrBlock<Table *> casa::PlotCal::overlayTabs_p [private] |
Bool casa::PlotCal::overPlot_p [private] |
Record casa::PlotCal::plotopts_p [private] |
Vector<String> casa::PlotCal::plotTaQL_p [private] |
String casa::PlotCal::plotType_p [private] |
String casa::PlotCal::polType_p [private] |
Bool casa::PlotCal::spwSel_p [private] |
Vector<Double> casa::PlotCal::startFreq_p [private] |
Vector<Double> casa::PlotCal::stepFreq_p [private] |
Table casa::PlotCal::tab_p [private] |
String casa::PlotCal::tabName_p [private] |
Table casa::PlotCal::tabSel_p [private] |
Matrix<Int> casa::PlotCal::tabSpws_p [private] |
String casa::PlotCal::title_p [private] |
String casa::PlotCal::titleAnt_p [private] |
String casa::PlotCal::titleFld_p [private] |
String casa::PlotCal::titleMain_p [private] |
String casa::PlotCal::titlePoln_p [private] |
String casa::PlotCal::titleSpw_p [private] |
TablePlot* casa::PlotCal::tp_p [private] |
Table casa::PlotCal::virtualTab_p [private] |
Int casa::PlotCal::whichPol_p [private] |
String casa::PlotCal::xAxis_p [private] |
String casa::PlotCal::yAxis_p [private] |