MCRadialVelocity.h
Classes
- MCRadialVelocity -- MRadialVelocity conversion routines (full description)
Types
- 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)
Review Status
- Date Reviewed:
- yyyy/mm/dd
- 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 <aips/Measures.h>
#include <aips/Measures/MRadialVelocity.h>
#include <aips/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
Default constructor
Show the state of the conversion engine (mainly for debugging purposes)
The list of actual routines provided.
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.
Copy constructor (not implemented)
MCRadialVelocity &operator=(const MCRadialVelocity &other)
Assignment (not implemented)
Create conversion function pointer
Create help structures for Measure conversion routines
Delete the pointers used in the MeasConvert help structure cache
Routine to convert RadialVelocity from one reference frame to another
Conversion routine to cater for inheritance question