|
| | MSDerivedValues () |
| | thread-hostile shared pointers (Jim Jacobs 111104) More...
|
| |
| | ~MSDerivedValues () |
| |
| | MSDerivedValues (const MSDerivedValues &other) |
| | Copy constructor, this will initialize with other's MS. More...
|
| |
| MSDerivedValues & | operator= (const MSDerivedValues &other) |
| | Assignment, this will initialize with other's MS. More...
|
| |
| Int | setAntennas (const MSAntennaColumns &ac) |
| | Set antenna position from an antenna table Returns the number of antennas. More...
|
| |
| MSDerivedValues & | setAntennaPositions (const Vector< MPosition > &antPosition) |
| | Set antenna positions, index in vector is antenna number for calls below. More...
|
| |
| const Vector< MPosition > & | getAntennaPositions () const |
| |
| MSDerivedValues & | setObservatoryPosition (const MPosition &obsPosition) |
| | Set the observatory position. More...
|
| |
| MSDerivedValues & | setAntennaMount (const Vector< String > &mount) |
| | Set antenna mounts, should have same number of entries as antPosition in setAntennaPosition. More...
|
| |
| MSDerivedValues & | setEpoch (const MEpoch &time) |
| | Set epoch. More...
|
| |
| MSDerivedValues & | setFieldCenter (const MDirection &fieldCenter) |
| | Set field center. More...
|
| |
| MSDerivedValues & | setFieldCenter (uInt fieldid=0) |
| | If you have used setMeasurementSet then this version of setFieldCenter using field id makes sense. More...
|
| |
| MSDerivedValues & | setAntenna (Int antenna) |
| | Set antenna index, sets the position reference for the conversions. More...
|
| |
| MSDerivedValues & | setVelocityFrame (MRadialVelocity::Types vType) |
| | Set the velocity frame type (e.g., MRadialVelocity::LSRK)
More...
|
| |
| MSDerivedValues & | setVelocityReference (MDoppler::Types dopType) |
| | Set the velocity frame type (e.g., MRDoppler::RADIO)
More...
|
| |
| MRadialVelocity::Types | getRadialVelocityType () const |
| |
| MSDerivedValues & | setFrequencyReference (MFrequency::Types frqType) |
| | Set the frequency frame (e.g., MFrequency::LSRK)
More...
|
| |
| Double | hourAngle () |
| | get hour angle More...
|
| |
| Double | parAngle () |
| | get parallactic angle More...
|
| |
| const MDirection & | azel () |
| | get azimuth & elevation More...
|
| |
| const MEpoch & | last () |
| | get LAST for given time, antenna More...
|
| |
| const MRadialVelocity & | obsVel () |
| | get observatory radial velocity for given epoch, position and direction More...
|
| |
| MSDerivedValues & | setMeasurementSet (const MeasurementSet &ms) |
| | Set an ms does not need to explicity setAntennas and is necessary if setRestFreqency(fieldid, spwid) is used
More...
|
| |
| Bool | setRestFrequency (const Int fieldid, const Int spwid, const Int linenum=0) |
| | Set restFrequencies...make it look for it for the fieldid, spwid and line number defined in the SOURCE table return False if it fails to find the restFrquency. More...
|
| |
| MSDerivedValues & | setRestFrequency (const Quantity &restFreq) |
| |
| Quantity | toFrequency (const Quantity &vel, const Quantity &restFreq) |
| | get frequency from velocity More...
|
| |
| Quantity | toFrequency (const Quantity &vel) |
| |
| Quantity | toVelocity (const Quantity &freq, const Quantity &restFreq) |
| | get velocity from frequency More...
|
| |
| Quantity | toVelocity (const Quantity &freq) |
| |
MSDerivedValues calculates values derived from a MS
Intended use:
Public interface
Review Status
- Date Reviewed:
- yyyy/mm/dd
Prerequisite
Etymology
MSDerivedValues calculates values derived from those in a MS
Synopsis
MSDerivedValues is a class that computes values derived from those present in a MeasurementSet. E.g., calculate feed position angles on the sky from time, antenna positions and feed characteristics.
Example
MSColumns msc(myMS);
msd.setAntennas(msc.antenna());
MEpoch ep=MS::epochMeasure(msc.time());
ep.set(MVEpoch(
Quantity(msc.time()(0),
"s")));
msd.setEpoch(ep);
MDirection dir=MS::directionMeasure(msc.field().phaseDir());
dir.set(MVDirection(Vector<Double>(msc.field().phaseDir()(0))));
msd.setFieldCenter(dir);
MRadialVelocity observatoryVel = msd.obsVel();
MSDerivedValues()
thread-hostile shared pointers (Jim Jacobs 111104)
Double parAngle()
get parallactic angle
MeasurementSet MS
MeasurementSet is too cumbersome for a number of common uses, so we give a typedef here.
Quantum< Double > Quantity
Motivation
Values derived from those in a MS are needed in various places, e.g., for plotting purposes. This class combines the commonly needed calculations in one place.
Thrown Exceptions
To Do
-
the interface should be less cumbersome
-
probably needs speeding up
Definition at line 110 of file MSDerivedValues.h.