MCRadialVelocity.h

Classes

MCRadialVelocity -- MRadialVelocity conversion routines (full description)

class MCRadialVelocity : public MCBase

Types

enum Routes

LSRD_BARY
BARY_LSRD
BARY_GEO
GEO_TOPO
GEO_BARY
TOPO_GEO
LSRD_GALACTO
GALACTO_LSRD
LSRK_BARY
BARY_LSRK
BARY_LGROUP
LGROUP_BARY
BARY_CMB
CMB_BARY
N_Routes

Interface

Public Members
MCRadialVelocity()
~MCRadialVelocity()
static String showState()
Private Members
MCRadialVelocity(const MCRadialVelocity &other)
MCRadialVelocity &operator=(const MCRadialVelocity &other)
virtual void getConvert(MConvertBase &mc, const MRBase &inref, const MRBase &outref)
virtual void initConvert(uInt which, MConvertBase &mc)
virtual void clearConvert()
virtual void doConvert(MeasValue &in, MRBase &inref, MRBase &outref, const MConvertBase &mc)
void doConvert(MVRadialVelocity &in, MRBase &inref, MRBase &outref, const MConvertBase &mc)

Description

Review Status

Reviewed By:
UNKNOWN
Date Reviewed:
before2004/08/25
Programs:
Tests:

Prerequisite

Etymology

Measure, Convert and RadialVelocity

Synopsis

Contains state machinery and cashing for actual conversions

Example

Get the Doppler shift for an oberved HI RadialVelocity of 100 km/s
	#include <measures/Measures.h>
	#include <measures/Measures/MRadialVelocity.h>
	#include <measures/Measures/MDoppler.h>
	cout << "Redshift for 100 km/s: " <<
		MDoppler::Convert( MRadialVelocity( Quantity(100., "km/s"),
				      MRadialVelocity::TOPO).toDoppler(QC::HI),
				   MDoppler::Z)() << endl;

Motivation

To Do

Member Description

MCRadialVelocity()

Default constructor

~MCRadialVelocity()

static String showState()

Show the state of the conversion engine (mainly for debugging purposes)

enum Routes

The list of actual routines provided.
Warning Each AA_BB in the list points to routine that can be used in the FromTo list in the getConvert routine. In addition the type to which each is converted should be in the ToRef array, again in the proper order.

MCRadialVelocity(const MCRadialVelocity &other)

Copy constructor (not implemented)

MCRadialVelocity &operator=(const MCRadialVelocity &other)

Assignment (not implemented)

virtual void getConvert(MConvertBase &mc, const MRBase &inref, const MRBase &outref)

Create conversion function pointer

virtual void initConvert(uInt which, MConvertBase &mc)

Create help structures for Measure conversion routines

virtual void clearConvert()

Delete the pointers used in the MeasConvert help structure cache

virtual void doConvert(MeasValue &in, MRBase &inref, MRBase &outref, const MConvertBase &mc)

Routine to convert RadialVelocity from one reference frame to another

void doConvert(MVRadialVelocity &in, MRBase &inref, MRBase &outref, const MConvertBase &mc)

Conversion routine to cater for inheritance question