casa  $Rev:20696$
Public Member Functions | Protected Member Functions | Private Attributes | Static Private Attributes
casa::MSPlotConvertArrayPositions Class Reference

#include <MsPlotConvert.h>

Inheritance diagram for casa::MSPlotConvertArrayPositions:
casa::TPConvertBase

List of all members.

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< MPositiongetAntennas (ROMSColumns *msColumn)
void getTopocentricAnts (ROMSColumns *msColumn)

Private Attributes

ROMSColumnsitsMsColumn
 Variables.
Bool convertOnX
Vector< DoubleitsXValues
Vector< DoubleitsYValues
SLoglog
 Message logger.
uInt numPlotted
 A counter for messaging.

Static Private Attributes

static const String clname

Detailed Description

Definition at line 898 of file MsPlotConvert.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

Vector<MPosition> casa::MSPlotConvertArrayPositions::getAntennas ( ROMSColumns msColumn) [inline, protected]
MPosition casa::MSPlotConvertArrayPositions::getObservatory ( ROMSColumns msColumn) [inline, protected]
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]
Double casa::MSPlotConvertArrayPositions::Yconvert ( Double  y,
Int  row,
Int  tblNum 
) [inline, virtual]

Member Data Documentation

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().

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().


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