casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
casacore::MCFrame Class Reference

Measure frame calculations proxy. More...

#include <MCFrame.h>

Public Member Functions

 MCFrame (MeasFrame &inf)
 Construct using the MeasFrame parent. More...
 
 ~MCFrame ()
 Destructor. More...
 
void resetEpoch ()
 Reset Epoch value. More...
 
void resetPosition ()
 Reset Position value. More...
 
void resetDirection ()
 Reset Direction value. More...
 
void resetRadialVelocity ()
 Reset RadialVelocity value. More...
 
void resetComet ()
 Reset Comet. More...
 
void makeEpoch ()
 Make full Epoch. More...
 
void makePosition ()
 Make full Position. More...
 
void makeDirection ()
 Make full Direction. More...
 
void makeRadialVelocity ()
 Make full RadialVelocity. More...
 
void makeComet ()
 Make full Comet. More...
 
Bool getTDB (Double &tdb)
 Get TDB in days. More...
 
Bool getUT1 (Double &tdb)
 Get UT1 in days. More...
 
Bool getTT (Double &tdb)
 Get TT in days. More...
 
Bool getLong (Double &tdb)
 Get the longitude (in rad) More...
 
Bool getLat (Double &tdb)
 Get the latitude (ITRF) (in rad) More...
 
Bool getITRF (MVPosition &tdb)
 Get the position. More...
 
Bool getRadius (Double &tdb)
 Get the geocentric position (in m) More...
 
Bool getLatGeo (Double &tdb)
 Get the geodetic latitude. More...
 
Bool getLAST (Double &tdb)
 Get the LAST (in days) More...
 
Bool getLASTr (Double &tdb)
 Get the LAST (in rad) More...
 
Bool getJ2000 (MVDirection &tdb)
 Get J2000 coordinates (direction cosines) and long/lat (rad) More...
 
Bool getJ2000Long (Double &tdb)
 
Bool getJ2000Lat (Double &tdb)
 
Bool getB1950 (MVDirection &tdb)
 Get B1950 coordinates (direction cosines) and long/lat (rad) More...
 
Bool getB1950Long (Double &tdb)
 
Bool getB1950Lat (Double &tdb)
 
Bool getApp (MVDirection &tdb)
 Get apparent coordinates (direction cosines) and long/lat (rad) More...
 
Bool getAppLong (Double &tdb)
 
Bool getAppLat (Double &tdb)
 
Bool getLSR (Double &tdb)
 Get LSR radial velocity (m/s) More...
 
Bool getCometType (uInt &tdb)
 Get Comet type. More...
 
Bool getComet (MVPosition &tdb)
 Get Comet position. More...
 

Private Member Functions

 MCFrame ()
 Default constructor (not implemented) More...
 
 MCFrame (const MCFrame &other)
 Copy constructor (not implemented) More...
 
MCFrameoperator= (const MCFrame &other)
 Copy assignment (not implemented) More...
 

Private Attributes

MeasFrame myf
 The belonging frame pointer. More...
 
void * epConvTDB
 The actual measure conversion values. More...
 
DoubleepTDBp
 TDB time. More...
 
void * epConvUT1
 Conversion to UT1 time. More...
 
DoubleepUT1p
 UT1 time. More...
 
void * epConvTT
 Conversion to TT time. More...
 
DoubleepTTp
 TT time. More...
 
void * epConvLAST
 Conversion to LAST time. More...
 
DoubleepLASTp
 LAST time. More...
 
void * posConvLong
 Conversion to ITRF longitude/latitude. More...
 
Vector< Double > * posLongp
 Longitude. More...
 
MVPositionposITRFp
 Position. More...
 
void * posConvLongGeo
 Conversion to geodetic longitude/latitude. More...
 
Vector< Double > * posLongGeop
 Latitude. More...
 
MVPositionposGeop
 Position. More...
 
void * dirConvJ2000
 Conversion to J2000. More...
 
Vector< Double > * j2000Longp
 Longitude. More...
 
MVDirectiondirJ2000p
 J2000 coordinates. More...
 
void * dirConvB1950
 Conversion to B1950. More...
 
Vector< Double > * b1950Longp
 Longitude. More...
 
MVDirectiondirB1950p
 B1950 coordinates. More...
 
void * dirConvApp
 Conversion to apparent coordinates. More...
 
Vector< Double > * appLongp
 Longitude. More...
 
MVDirectiondirAppp
 Apparent coordinates. More...
 
void * radConvLSR
 Conversion to LSR radial velocity. More...
 
DoubleradLSRp
 Radial velocity. More...
 

Detailed Description

Measure frame calculations proxy.

Intended use:

Internal

Review Status

Reviewed By:
UNKNOWN
Date Reviewed:
before2004/08/25
Test programs:
tMeasure

Prerequisite

Etymology

From Measure and Frame

Synopsis

The MeasFrame class contains the 'when and where' of an observed Measure. Calculations to get the appropiate value (e.g. the Earth's longitude) from this frame for conversions are done in this class, together with all the caching of (intermediate) results that can speed-up calculations.
The MCFrame class is used by the individual measure conversion classes (see MCBase class).

Example

MEpoch my_epoch(Quantity(MeasData::MJDB1950,"d")); // an epoch
MCFrame frame(my_epoch); // used in a frame
frame.set(obser); // add observatory (an MPosition)
MEpoch::Convert conv(my_epoch, MEPoch::Ref(MEpoch::LAST, frame));

The conv conversion engine will (transpararently) use the MCFrame class in calls from MCEpoch (the time conversions), which will be called by the MEpoch::Convert () operator.

Motivation

To separate the frame calculations from the Measure containers, to enable e.g. Tables to have Measures.

Definition at line 91 of file MCFrame.h.

Constructor & Destructor Documentation

casacore::MCFrame::MCFrame ( MeasFrame inf)

Construct using the MeasFrame parent.

casacore::MCFrame::~MCFrame ( )

Destructor.

casacore::MCFrame::MCFrame ( )
private

Default constructor (not implemented)

casacore::MCFrame::MCFrame ( const MCFrame other)
private

Copy constructor (not implemented)

Member Function Documentation

Bool casacore::MCFrame::getApp ( MVDirection tdb)

Get apparent coordinates (direction cosines) and long/lat (rad)

Bool casacore::MCFrame::getAppLat ( Double tdb)
Bool casacore::MCFrame::getAppLong ( Double tdb)
Bool casacore::MCFrame::getB1950 ( MVDirection tdb)

Get B1950 coordinates (direction cosines) and long/lat (rad)

Bool casacore::MCFrame::getB1950Lat ( Double tdb)
Bool casacore::MCFrame::getB1950Long ( Double tdb)
Bool casacore::MCFrame::getComet ( MVPosition tdb)

Get Comet position.

Bool casacore::MCFrame::getCometType ( uInt tdb)

Get Comet type.

Bool casacore::MCFrame::getITRF ( MVPosition tdb)

Get the position.

Bool casacore::MCFrame::getJ2000 ( MVDirection tdb)

Get J2000 coordinates (direction cosines) and long/lat (rad)

Bool casacore::MCFrame::getJ2000Lat ( Double tdb)
Bool casacore::MCFrame::getJ2000Long ( Double tdb)
Bool casacore::MCFrame::getLAST ( Double tdb)

Get the LAST (in days)

Bool casacore::MCFrame::getLASTr ( Double tdb)

Get the LAST (in rad)

Bool casacore::MCFrame::getLat ( Double tdb)

Get the latitude (ITRF) (in rad)

Bool casacore::MCFrame::getLatGeo ( Double tdb)

Get the geodetic latitude.

Bool casacore::MCFrame::getLong ( Double tdb)

Get the longitude (in rad)

Bool casacore::MCFrame::getLSR ( Double tdb)

Get LSR radial velocity (m/s)

Bool casacore::MCFrame::getRadius ( Double tdb)

Get the geocentric position (in m)

Bool casacore::MCFrame::getTDB ( Double tdb)

Get TDB in days.

Bool casacore::MCFrame::getTT ( Double tdb)

Get TT in days.

Bool casacore::MCFrame::getUT1 ( Double tdb)

Get UT1 in days.

void casacore::MCFrame::makeComet ( )

Make full Comet.

void casacore::MCFrame::makeDirection ( )

Make full Direction.

void casacore::MCFrame::makeEpoch ( )

Make full Epoch.

void casacore::MCFrame::makePosition ( )

Make full Position.

void casacore::MCFrame::makeRadialVelocity ( )

Make full RadialVelocity.

MCFrame& casacore::MCFrame::operator= ( const MCFrame other)
private

Copy assignment (not implemented)

void casacore::MCFrame::resetComet ( )

Reset Comet.

void casacore::MCFrame::resetDirection ( )

Reset Direction value.

void casacore::MCFrame::resetEpoch ( )

Reset Epoch value.

void casacore::MCFrame::resetPosition ( )

Reset Position value.

void casacore::MCFrame::resetRadialVelocity ( )

Reset RadialVelocity value.

Member Data Documentation

Vector<Double>* casacore::MCFrame::appLongp
private

Longitude.

Definition at line 224 of file MCFrame.h.

Vector<Double>* casacore::MCFrame::b1950Longp
private

Longitude.

Definition at line 218 of file MCFrame.h.

MVDirection* casacore::MCFrame::dirAppp
private

Apparent coordinates.

Definition at line 226 of file MCFrame.h.

MVDirection* casacore::MCFrame::dirB1950p
private

B1950 coordinates.

Definition at line 220 of file MCFrame.h.

void* casacore::MCFrame::dirConvApp
private

Conversion to apparent coordinates.

Definition at line 222 of file MCFrame.h.

void* casacore::MCFrame::dirConvB1950
private

Conversion to B1950.

Definition at line 216 of file MCFrame.h.

void* casacore::MCFrame::dirConvJ2000
private

Conversion to J2000.

Definition at line 210 of file MCFrame.h.

MVDirection* casacore::MCFrame::dirJ2000p
private

J2000 coordinates.

Definition at line 214 of file MCFrame.h.

void* casacore::MCFrame::epConvLAST
private

Conversion to LAST time.

Definition at line 194 of file MCFrame.h.

void* casacore::MCFrame::epConvTDB
private

The actual measure conversion values.

Conversion to TDB time (due to some (for me) unsolvable dependency errors) not the proper MeasConvert* here)

Definition at line 182 of file MCFrame.h.

void* casacore::MCFrame::epConvTT
private

Conversion to TT time.

Definition at line 190 of file MCFrame.h.

void* casacore::MCFrame::epConvUT1
private

Conversion to UT1 time.

Definition at line 186 of file MCFrame.h.

Double* casacore::MCFrame::epLASTp
private

LAST time.

Definition at line 196 of file MCFrame.h.

Double* casacore::MCFrame::epTDBp
private

TDB time.

Definition at line 184 of file MCFrame.h.

Double* casacore::MCFrame::epTTp
private

TT time.

Definition at line 192 of file MCFrame.h.

Double* casacore::MCFrame::epUT1p
private

UT1 time.

Definition at line 188 of file MCFrame.h.

Vector<Double>* casacore::MCFrame::j2000Longp
private

Longitude.

Definition at line 212 of file MCFrame.h.

MeasFrame casacore::MCFrame::myf
private

The belonging frame pointer.

Definition at line 176 of file MCFrame.h.

void* casacore::MCFrame::posConvLong
private

Conversion to ITRF longitude/latitude.

Definition at line 198 of file MCFrame.h.

void* casacore::MCFrame::posConvLongGeo
private

Conversion to geodetic longitude/latitude.

Definition at line 204 of file MCFrame.h.

MVPosition* casacore::MCFrame::posGeop
private

Position.

Definition at line 208 of file MCFrame.h.

MVPosition* casacore::MCFrame::posITRFp
private

Position.

Definition at line 202 of file MCFrame.h.

Vector<Double>* casacore::MCFrame::posLongGeop
private

Latitude.

Definition at line 206 of file MCFrame.h.

Vector<Double>* casacore::MCFrame::posLongp
private

Longitude.

Definition at line 200 of file MCFrame.h.

void* casacore::MCFrame::radConvLSR
private

Conversion to LSR radial velocity.

Definition at line 228 of file MCFrame.h.

Double* casacore::MCFrame::radLSRp
private

Radial velocity.

Definition at line 230 of file MCFrame.h.


The documentation for this class was generated from the following file: