casa
$Rev:20696$
|
#include <MsPlotConvert.h>
Public Member Functions | |
MSPlotConvertChanToVelocity (Vector< Int > inSpwIds, ROMSColumns *columns, MsPlot *inMsPlot, Bool onXAxis) | |
Constructor. | |
~MSPlotConvertChanToVelocity () | |
Destructor. | |
void | setSpwIds (Vector< Int > inIds) |
This is a MAJOR HACK to support multiple spws!!! Just a word of warning that this really needs to be cleaned up at some point. | |
Double | Xconvert_col (Double x, Int row, Int tblnum) |
Conversion along the Xaxis. | |
Double | Yconvert_col (Double y, Int row, Int tblnum) |
Conversion along the Yaxis. | |
Protected Member Functions | |
Int | getSpwId (Int tblNum) |
Check if the supplied table ID is smaller then our list of Ids. | |
Int | getFieldId (Int rowNum) |
Check if the supplied row number and if valid then get the field ID. | |
Private Attributes | |
MsPlot * | itsMsPlot |
Measurement set the data belongs to. | |
Vector< Int > | itsSpwIds |
List of Ids assoc. | |
Vector< Int > | itsFieldIds |
List of Field Ids assoc. | |
Bool | itsAveragingOn |
Averaging information, the list of averaged ranges in two lists. | |
Vector< Vector< Int > > | itsStartChans |
Vector< Vector< Int > > | itsStepChans |
Vector< Vector< Int > > | itsEndChans |
Bool | convertOnX |
Indicate if we are averaging on the X or Y axis. | |
SLog * | log |
Message logger. | |
uInt | numPlotted |
A counter for messaging. | |
Static Private Attributes | |
static const String | clname |
Definition at line 1485 of file MsPlotConvert.h.
casa::MSPlotConvertChanToVelocity::MSPlotConvertChanToVelocity | ( | Vector< Int > | inSpwIds, |
ROMSColumns * | columns, | ||
MsPlot * | inMsPlot, | ||
Bool | onXAxis | ||
) | [inline] |
Constructor.
Store the list of Ids for each table locally. The Ids are currently SPWs, but in the future the will be Data Desc Ids.
Store the list of field Ids for each table row locally. If in the future we have DATA DESC IDs we can likely retrieve this using the measurement set.
Store the Measurement Set data locally
Store which axis we are converting on.
Definition at line 1489 of file MsPlotConvert.h.
References clname, convertOnX, casa::ROMSMainColumns::fieldId(), casa::SLog::FnEnter(), casa::SLog::FnExit(), casa::ROScalarColumn< T >::getColumn(), itsFieldIds, itsMsPlot, itsSpwIds, log, numPlotted, and casa::SLog::slog().
casa::MSPlotConvertChanToVelocity::~MSPlotConvertChanToVelocity | ( | ) | [inline] |
Destructor.
Definition at line 1519 of file MsPlotConvert.h.
References clname, casa::SLog::FnEnter(), casa::SLog::FnExit(), and log.
Check if the supplied row number and if valid then get the field ID.
Check that our rowNum is with in range.
Should never get here, and exception occurs in logMessage()
If we are here all is good, and we can simply look up the Field ID from our stored list.
Definition at line 1643 of file MsPlotConvert.h.
References CASA_MPC_DBG_FREQ, clname, casa::SLog::FnEnter(), casa::SLog::FnExit(), itsFieldIds, log, casa::ArrayBase::nelements(), numPlotted, casa::SLog::out(), casa::LogMessage::SEVERE, String, casa::vpf::toString(), and casa::True.
Referenced by Xconvert_col(), and Yconvert_col().
Check if the supplied table ID is smaller then our list of Ids.
If it's larger and exception is thrown.
Check that our tblNum is with in range.
Should never get here, and exception occurs in logMessage()
If we are here all is good, and we can simply look up the Spw ID from our stored list.
Definition at line 1608 of file MsPlotConvert.h.
References CASA_MPC_DBG_FREQ, clname, casa::SLog::FnEnter(), casa::SLog::FnExit(), itsSpwIds, log, casa::ArrayBase::nelements(), numPlotted, casa::SLog::out(), casa::LogMessage::SEVERE, String, casa::vpf::toString(), and casa::True.
Referenced by Xconvert_col(), and Yconvert_col().
This is a MAJOR HACK to support multiple spws!!! Just a word of warning that this really needs to be cleaned up at some point.
Definition at line 1529 of file MsPlotConvert.h.
References itsSpwIds.
Double casa::MSPlotConvertChanToVelocity::Xconvert_col | ( | Double | x, |
Int | row, | ||
Int | tblnum | ||
) | [inline, virtual] |
Conversion along the Xaxis.
Check table number with our list of SPW Ids and get the spwId for the table
Find the field Number associated with this Row of data.
Look up the frequency from our stored information.
Reimplemented from casa::TPConvertBase.
Definition at line 1533 of file MsPlotConvert.h.
References CASA_MPC_DBG_FREQ, clname, convertOnX, casa::LogMessage::DEBUG1, casa::SLog::FnEnter(), casa::SLog::FnExit(), casa::MsPlot::getChanVelocity(), getFieldId(), getSpwId(), itsMsPlot, log, numPlotted, casa::SLog::out(), String, and casa::String::toString().
Double casa::MSPlotConvertChanToVelocity::Yconvert_col | ( | Double | y, |
Int | row, | ||
Int | tblnum | ||
) | [inline, virtual] |
Conversion along the Yaxis.
Check table number with our list of SPW Ids and get the spwId for the table
Find the field Number associated with this Row of data.
Look up the frequency from our stored information.
Reimplemented from casa::TPConvertBase.
Definition at line 1571 of file MsPlotConvert.h.
References CASA_MPC_DBG_FREQ, clname, convertOnX, casa::LogMessage::DEBUG1, casa::SLog::FnEnter(), casa::SLog::FnExit(), casa::MsPlot::getChanVelocity(), getFieldId(), getSpwId(), itsMsPlot, log, numPlotted, casa::SLog::out(), String, and casa::String::toString().
const String casa::MSPlotConvertChanToVelocity::clname [static, private] |
Definition at line 1701 of file MsPlotConvert.h.
Referenced by getFieldId(), getSpwId(), MSPlotConvertChanToVelocity(), Xconvert_col(), Yconvert_col(), and ~MSPlotConvertChanToVelocity().
Indicate if we are averaging on the X or Y axis.
Definition at line 1697 of file MsPlotConvert.h.
Referenced by MSPlotConvertChanToVelocity(), Xconvert_col(), and Yconvert_col().
Averaging information, the list of averaged ranges in two lists.
The list in which each range starts on and the list each range ends on.
Definition at line 1691 of file MsPlotConvert.h.
Vector< Vector< Int > > casa::MSPlotConvertChanToVelocity::itsEndChans [private] |
Definition at line 1694 of file MsPlotConvert.h.
List of Field Ids assoc.
with each row of data given to TablePlot.
Definition at line 1686 of file MsPlotConvert.h.
Referenced by getFieldId(), and MSPlotConvertChanToVelocity().
Measurement set the data belongs to.
Definition at line 1672 of file MsPlotConvert.h.
Referenced by MSPlotConvertChanToVelocity(), Xconvert_col(), and Yconvert_col().
List of Ids assoc.
with each table given to TablePlot. May not need this, Its needed if different tables passed in have different channel ranges. Not that index 0, is the SPW ID of table 0, ..\.
Definition at line 1682 of file MsPlotConvert.h.
Referenced by getSpwId(), MSPlotConvertChanToVelocity(), and setSpwIds().
Vector< Vector< Int > > casa::MSPlotConvertChanToVelocity::itsStartChans [private] |
Definition at line 1692 of file MsPlotConvert.h.
Vector< Vector< Int > > casa::MSPlotConvertChanToVelocity::itsStepChans [private] |
Definition at line 1693 of file MsPlotConvert.h.
SLog* casa::MSPlotConvertChanToVelocity::log [private] |
Message logger.
Definition at line 1700 of file MsPlotConvert.h.
Referenced by getFieldId(), getSpwId(), MSPlotConvertChanToVelocity(), Xconvert_col(), Yconvert_col(), and ~MSPlotConvertChanToVelocity().
A counter for messaging.
We really don't need to display millions of messages for debugging purposes. This seems to slow things down a lot if we do anyway -- even if they aren't printed to the logger.
Definition at line 1707 of file MsPlotConvert.h.
Referenced by getFieldId(), getSpwId(), MSPlotConvertChanToVelocity(), Xconvert_col(), and Yconvert_col().