casa
$Rev:20696$
|
#include <MsPlotConvert.h>
Public Member Functions | |
MSPlotConvertArrayPositions (ROMSColumns *msColumn) | |
Constructor. | |
~MSPlotConvertArrayPositions () | |
Destructor. | |
Double | Xconvert (Double x, Int row, Int tblNum) |
Conversion along the Xaxis. | |
Double | Yconvert (Double y, Int row, Int tblNum) |
Conversion along the Yaxis. | |
Protected Member Functions | |
MPosition | getObservatory (ROMSColumns *msColumn) |
Vector< MPosition > | getAntennas (ROMSColumns *msColumn) |
void | getTopocentricAnts (ROMSColumns *msColumn) |
Private Attributes | |
ROMSColumns * | itsMsColumn |
Variables. | |
Bool | convertOnX |
Vector< Double > | itsXValues |
Vector< Double > | itsYValues |
SLog * | log |
Message logger. | |
uInt | numPlotted |
A counter for messaging. | |
Static Private Attributes | |
static const String | clname |
Definition at line 898 of file MsPlotConvert.h.
casa::MSPlotConvertArrayPositions::MSPlotConvertArrayPositions | ( | ROMSColumns * | msColumn | ) | [inline] |
Constructor.
Calculate the converted X and Y values that will replace those stored in the table.
Definition at line 902 of file MsPlotConvert.h.
References clname, casa::SLog::FnEnter(), casa::SLog::FnExit(), getTopocentricAnts(), itsMsColumn, log, numPlotted, and casa::SLog::slog().
casa::MSPlotConvertArrayPositions::~MSPlotConvertArrayPositions | ( | ) | [inline] |
Destructor.
Definition at line 918 of file MsPlotConvert.h.
References clname, casa::SLog::FnEnter(), casa::SLog::FnExit(), itsMsColumn, and log.
Vector<MPosition> casa::MSPlotConvertArrayPositions::getAntennas | ( | ROMSColumns * | msColumn | ) | [inline, protected] |
retValue[i] = antPositions(i);
Definition at line 1023 of file MsPlotConvert.h.
References casa::ROMSColumns::antenna(), CASA_MPC_DBG_FREQ, clname, casa::SLog::FnEnter(), casa::SLog::FnExit(), log, casa::ROMSAntennaColumns::nrow(), numPlotted, and casa::ROMSAntennaColumns::positionMeas().
Referenced by getTopocentricAnts().
MPosition casa::MSPlotConvertArrayPositions::getObservatory | ( | ROMSColumns * | msColumn | ) | [inline, protected] |
Get the observatory details from the telescope information.
Should never get here, and exception occurs in logMessage()
Definition at line 990 of file MsPlotConvert.h.
References CASA_MPC_DBG_FREQ, clname, casa::SLog::FnEnter(), casa::SLog::FnExit(), casa::MPosition::ITRF, casa::String::length(), log, numPlotted, casa::ROMSColumns::observation(), casa::MeasTable::Observatory(), casa::SLog::out(), casa::LogMessage::SEVERE, String, casa::ROMSObservationColumns::telescopeName(), casa::True, and casa::MPosition::type().
Referenced by getTopocentricAnts().
void casa::MSPlotConvertArrayPositions::getTopocentricAnts | ( | ROMSColumns * | msColumn | ) | [inline, protected] |
Get the observatory information.
Get the anenna information.
Resize the vectors we need to store the values in.
Define some storage variables used in the loop
Store the cos and sin of both the longitude and latitude of the observatory. This is needed to rotate the antenna positions.
Double obsCosLatitude = cos( obsLatitude );
cout << endl << "observatory: " << observatory << endl << "lonlat = " << obsLongitude*180/3.1415 << " , " << obsLatitude*180/3.1415 << endl; cout << "obsXYZ = " << obsXYZ << endl;
Now do the conversion.
if (i<3) cout << i << ": " << antPositions[i] << " from " << (MPosition::Types)antPositions[i].type() << " to " << observatory.type() << ": ";
Translate the global coords to local components without rotating.
if (i<3) cout << "Trans = " << xTrans[i] << "," << yTrans[i] << "," << zTrans[i] << endl;
Now rotate and store the new position information
Definition at line 1040 of file MsPlotConvert.h.
References CASA_MPC_DBG_FREQ, clname, casa::cos(), casa::SLog::FnEnter(), casa::SLog::FnExit(), casa::MPosition::get(), casa::MPosition::getAngle(), getAntennas(), getObservatory(), casa::Quantum< Qtype >::getValue(), itsXValues, itsYValues, log, casa::ArrayBase::nelements(), numPlotted, casa::Vector< T >::resize(), casa::sin(), casa::type(), and casa::MPosition::type().
Referenced by MSPlotConvertArrayPositions().
Double casa::MSPlotConvertArrayPositions::Xconvert | ( | Double | x, |
Int | row, | ||
Int | tblNum | ||
) | [inline, virtual] |
Conversion along the Xaxis.
Should never get here, and exception occurs in logMessage()
Reimplemented from casa::TPConvertBase.
Definition at line 928 of file MsPlotConvert.h.
References CASA_MPC_DBG_FREQ, clname, casa::LogMessage::DEBUG1, casa::SLog::FnEnter(), casa::SLog::FnExit(), itsXValues, log, casa::ArrayBase::nelements(), numPlotted, casa::SLog::out(), casa::LogMessage::SEVERE, String, casa::vpf::toString(), casa::String::toString(), and casa::True.
Double casa::MSPlotConvertArrayPositions::Yconvert | ( | Double | y, |
Int | row, | ||
Int | tblNum | ||
) | [inline, virtual] |
Conversion along the Yaxis.
Should never get here, and exception occurs in logMessage()
Reimplemented from casa::TPConvertBase.
Definition at line 958 of file MsPlotConvert.h.
References CASA_MPC_DBG_FREQ, clname, casa::LogMessage::DEBUG1, casa::SLog::FnEnter(), casa::SLog::FnExit(), itsYValues, log, casa::ArrayBase::nelements(), numPlotted, casa::SLog::out(), casa::LogMessage::SEVERE, String, casa::vpf::toString(), casa::String::toString(), and casa::True.
const String casa::MSPlotConvertArrayPositions::clname [static, private] |
Definition at line 1116 of file MsPlotConvert.h.
Referenced by getAntennas(), getObservatory(), getTopocentricAnts(), MSPlotConvertArrayPositions(), Xconvert(), Yconvert(), and ~MSPlotConvertArrayPositions().
Definition at line 1110 of file MsPlotConvert.h.
Variables.
Definition at line 1109 of file MsPlotConvert.h.
Referenced by MSPlotConvertArrayPositions(), and ~MSPlotConvertArrayPositions().
Definition at line 1111 of file MsPlotConvert.h.
Referenced by getTopocentricAnts(), and Xconvert().
Definition at line 1112 of file MsPlotConvert.h.
Referenced by getTopocentricAnts(), and Yconvert().
SLog* casa::MSPlotConvertArrayPositions::log [private] |
Message logger.
Definition at line 1115 of file MsPlotConvert.h.
Referenced by getAntennas(), getObservatory(), getTopocentricAnts(), MSPlotConvertArrayPositions(), Xconvert(), Yconvert(), and ~MSPlotConvertArrayPositions().
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 1122 of file MsPlotConvert.h.
Referenced by getAntennas(), getObservatory(), getTopocentricAnts(), MSPlotConvertArrayPositions(), Xconvert(), and Yconvert().