casa  $Rev:20696$
Public Member Functions | Private Member Functions | Private Attributes
casa::PlotCal Class Reference

#include <PlotCal.h>

List of all members.

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 > &region)
 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< IntgetAntIdx (const String &antenna)
Vector< IntgetFieldIdx (const String &field)
Vector< IntgetSpwIdx (const String &spw, Matrix< Int > &chanId)
Vector< IntgetCalDescIds (const Vector< Int > selspws)
Matrix< DoublegetTimeRange (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

TablePlottp_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< StringplotTaQL_p
Vector< Stringlabel_p
Vector< StringiterAxes_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< InttabSpws_p
Matrix< IntchanId_p
Vector< DoublestartFreq_p
Vector< DoublestepFreq_p
Vector< Intnchan_p
casa::TPResetCallBackresetCallBack_p
 The ResetCallBack.
Record metaRec_p
 A record containing meta info for callbacks.
Vector< Vector< Int > > fldlist_p
Bool noMS_p
Vector< IntMSstartChan_p
Bool isNCT_p
 If True, we are plotting a NewCalTable, else the old kind.
NewCalTable ct_p

Detailed Description

Definition at line 45 of file PlotCal.h.


Constructor & Destructor Documentation

casa::PlotCal::PlotCal ( )

PlotCal: Class to plot calibration tables.

Intended use:

Public interface

Prerequisite

Etymology

From "Plot" and "Calibration Table"

Synopsis

To plot calibration tables ...encapsulates knowledge of different cal tables Default constructor

virtual casa::PlotCal::~PlotCal ( ) [virtual]

Destructor.


Member Function Documentation

String casa::PlotCal::CDIcol ( ) [inline, private]

Return which MAIN table column to return for "CAL_DESC_ID", depending on whether we are plotting a new or old table.

Definition at line 189 of file PlotCal.h.

References isNCT_p.

Bool casa::PlotCal::clearPlot ( Int  panel = 0)

Clear the plot or panel.

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.

Bool casa::PlotCal::flagData ( Bool  direction)

flag the data

String casa::PlotCal::GAINcol ( ) [inline, private]

Definition at line 190 of file PlotCal.h.

Vector<Int> casa::PlotCal::getAntIdx ( const String antenna) [private]
void casa::PlotCal::getAxisTaQL ( const String axis,
String taql,
String label 
) [private]
Vector<Int> casa::PlotCal::getCalDescIds ( const Vector< Int selspws) [private]
Double casa::PlotCal::getChebVal ( const Vector< Double > &  coeff,
const Double xinit,
const Double xfinal,
const Double x 
) [private]
Vector<Int> casa::PlotCal::getFieldIdx ( const String field) [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]
Vector<Int> casa::PlotCal::getSpwIdx ( const String spw,
Matrix< Int > &  chanId 
) [private]
Matrix<Double> casa::PlotCal::getTimeRange ( const String time) [private]
Bool casa::PlotCal::iterPlotNext ( )

Trigger next iteration.

Bool casa::PlotCal::iterPlotStop ( Bool  rmplotter)

stop iterations

Bool casa::PlotCal::locateData ( )

Print Location of data.

Bool casa::PlotCal::markRegion ( Int  nrows,
Int  ncols,
Int  panel,
Vector< Double > &  region 
)

mark a region

Int casa::PlotCal::multiTables ( const Table tablein,
Vector< Table > &  tablesout,
Vector< String > &  tablesoutnames,
Vector< Int > &  cdlist,
Block< String colNames 
) [private]
Bool casa::PlotCal::oldplot ( String  plottype = String("PHASE"),
String  poltype = String("") 
)

Plot the selection and table.

Bool casa::PlotCal::open ( String  tabName)

open a calibration table

Bool casa::PlotCal::plot ( String  xaxis = "",
String  yaxis = "" 
)
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 = VectorDouble >(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::virtualBPoly ( Table tabG,
Int nchan 
) [private]

Handle BPOLY.

void casa::PlotCal::virtualGSpline ( Table tabG) [private]

Handle GSPLINE.

void casa::PlotCal::virtualKTab ( Table tabB,
Int nAnt,
Vector< Int > &  ant1hash,
Vector< Int > &  ant2hash 
) [private]

Member Data Documentation

Definition at line 208 of file PlotCal.h.

Definition at line 201 of file PlotCal.h.

Definition at line 235 of file PlotCal.h.

Definition at line 255 of file PlotCal.h.

Definition at line 246 of file PlotCal.h.

Definition at line 208 of file PlotCal.h.

If True, we are plotting a NewCalTable, else the old kind.

Definition at line 253 of file PlotCal.h.

Referenced by CDIcol().

Definition at line 223 of file PlotCal.h.

Definition at line 222 of file PlotCal.h.

Definition at line 211 of file PlotCal.h.

Definition at line 220 of file PlotCal.h.

A record containing meta info for callbacks.

Definition at line 244 of file PlotCal.h.

Definition at line 196 of file PlotCal.h.

Definition at line 250 of file PlotCal.h.

Definition at line 205 of file PlotCal.h.

Definition at line 234 of file PlotCal.h.

Definition at line 238 of file PlotCal.h.

Definition at line 248 of file PlotCal.h.

Definition at line 204 of file PlotCal.h.

Definition at line 204 of file PlotCal.h.

Definition at line 218 of file PlotCal.h.

Definition at line 206 of file PlotCal.h.

Definition at line 210 of file PlotCal.h.

Definition at line 219 of file PlotCal.h.

Definition at line 213 of file PlotCal.h.

Definition at line 213 of file PlotCal.h.

The ResetCallBack.

Definition at line 241 of file PlotCal.h.

Definition at line 208 of file PlotCal.h.

Definition at line 236 of file PlotCal.h.

Definition at line 237 of file PlotCal.h.

Definition at line 198 of file PlotCal.h.

Definition at line 195 of file PlotCal.h.

Definition at line 199 of file PlotCal.h.

Definition at line 235 of file PlotCal.h.

Definition at line 225 of file PlotCal.h.

Definition at line 226 of file PlotCal.h.

Definition at line 226 of file PlotCal.h.

Definition at line 226 of file PlotCal.h.

Definition at line 226 of file PlotCal.h.

Definition at line 226 of file PlotCal.h.

Private data.

Definition at line 190 of file PlotCal.h.

This is the one that will have a flag column.

Definition at line 217 of file PlotCal.h.

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"

Definition at line 232 of file PlotCal.h.

Definition at line 214 of file PlotCal.h.

Definition at line 214 of file PlotCal.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines