| 
|   | MSDerivedValues () | 
|   | thread-hostile shared pointers (Jim Jacobs 111104)  
  | 
|   | 
|   | ~MSDerivedValues () | 
|   | 
|   | MSDerivedValues (const MSDerivedValues &other) | 
|   | Copy constructor, this will initialize with other's MS.  
  | 
|   | 
| MSDerivedValues &  | operator= (const MSDerivedValues &other) | 
|   | Assignment, this will initialize with other's MS.  
  | 
|   | 
| Int  | setAntennas (const MSAntennaColumns &ac) | 
|   | Set antenna position from an antenna table Returns the number of antennas.  
  | 
|   | 
| MSDerivedValues &  | setAntennaPositions (const Vector< MPosition > &antPosition) | 
|   | Set antenna positions, index in vector is antenna number for calls below.  
  | 
|   | 
| const Vector< MPosition > &  | getAntennaPositions () const | 
|   | 
| MSDerivedValues &  | setObservatoryPosition (const MPosition &obsPosition) | 
|   | Set the observatory position.  
  | 
|   | 
| MSDerivedValues &  | setAntennaMount (const Vector< String > &mount) | 
|   | Set antenna mounts, should have same number of entries as antPosition in setAntennaPosition.  
  | 
|   | 
| MSDerivedValues &  | setEpoch (const MEpoch &time) | 
|   | Set epoch.  
  | 
|   | 
| MSDerivedValues &  | setFieldCenter (const MDirection &fieldCenter) | 
|   | Set field center.  
  | 
|   | 
| MSDerivedValues &  | setFieldCenter (uInt fieldid=0) | 
|   | If you have used setMeasurementSet then this version of setFieldCenter using field id makes sense.  
  | 
|   | 
| MSDerivedValues &  | setAntenna (Int antenna) | 
|   | Set antenna index, sets the position reference for the conversions.  
  | 
|   | 
| MSDerivedValues &  | setVelocityFrame (MRadialVelocity::Types vType) | 
|   | Set the velocity frame type (e.g., MRadialVelocity::LSRK)  
  
  | 
|   | 
| MSDerivedValues &  | setVelocityReference (MDoppler::Types dopType) | 
|   | Set the velocity frame type (e.g., MRDoppler::RADIO)  
  
  | 
|   | 
| MRadialVelocity::Types  | getRadialVelocityType () const | 
|   | 
| MSDerivedValues &  | setFrequencyReference (MFrequency::Types frqType) | 
|   | Set the frequency frame (e.g., MFrequency::LSRK)  
  
  | 
|   | 
| Double  | hourAngle () | 
|   | get hour angle  
  | 
|   | 
| Double  | parAngle () | 
|   | get parallactic angle  
  | 
|   | 
| const MDirection &  | azel () | 
|   | get azimuth & elevation  
  | 
|   | 
| const MEpoch &  | last () | 
|   | get LAST for given time, antenna  
  | 
|   | 
| const MRadialVelocity &  | obsVel () | 
|   | get observatory radial velocity for given epoch, position and direction  
  | 
|   | 
| MSDerivedValues &  | setMeasurementSet (const MeasurementSet &ms) | 
|   | Set an ms does not need to explicity setAntennas and is necessary if setRestFreqency(fieldid, spwid) is used  
  
  | 
|   | 
| 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.  
  | 
|   | 
| MSDerivedValues &  | setRestFrequency (const Quantity &restFreq) | 
|   | 
| Quantity  | toFrequency (const Quantity &vel, const Quantity &restFreq) | 
|   | get frequency from velocity  
  | 
|   | 
| Quantity  | toFrequency (const Quantity &vel) | 
|   | 
| Quantity  | toVelocity (const Quantity &freq, const Quantity &restFreq) | 
|   | get velocity from frequency  
  | 
|   | 
| 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
 
MEpoch ep=MS::epochMeasure(msc.time());
 
MDirection dir=MS::directionMeasure(msc.field().phaseDir());
 
Double parAngle()
get parallactic angle
 
const MRadialVelocity & obsVel()
get observatory radial velocity for given epoch, position and direction
 
MSDerivedValues & setVelocityFrame(MRadialVelocity::Types vType)
Set the velocity frame type (e.g., MRadialVelocity::LSRK)
 
MSDerivedValues & setEpoch(const MEpoch &time)
Set epoch.
 
MSDerivedValues & setFieldCenter(const MDirection &fieldCenter)
Set field center.
 
Int setAntennas(const MSAntennaColumns &ac)
Set antenna position from an antenna table Returns the number of antennas.
 
void set(const Mv &dt)
Refill the specified entities.
 
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 107 of file MSDerivedValues.h.