casa
5.7.0-16
|
MSDerivedValues calculates values derived from a MS. More...
#include <MSDerivedValues.h>
Public Member Functions | |
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 ROMSAntennaColumns &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) |
Private Member Functions | |
void | init () |
initialize data More... | |
Friends | |
class | VisBufferAsync |
MSDerivedValues calculates values derived from a MS.
Public interface
MSDerivedValues calculates values derived from those in a MS
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.
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.
Definition at line 110 of file MSDerivedValues.h.
casacore::MSDerivedValues::MSDerivedValues | ( | ) |
thread-hostile shared pointers (Jim Jacobs 111104)
casacore::MSDerivedValues::~MSDerivedValues | ( | ) |
casacore::MSDerivedValues::MSDerivedValues | ( | const MSDerivedValues & | other | ) |
Copy constructor, this will initialize with other's MS.
const MDirection& casacore::MSDerivedValues::azel | ( | ) |
get azimuth & elevation
MRadialVelocity::Types casacore::MSDerivedValues::getRadialVelocityType | ( | ) | const |
Double casacore::MSDerivedValues::hourAngle | ( | ) |
get hour angle
|
private |
initialize data
const MEpoch& casacore::MSDerivedValues::last | ( | ) |
get LAST for given time, antenna
const MRadialVelocity& casacore::MSDerivedValues::obsVel | ( | ) |
get observatory radial velocity for given epoch, position and direction
MSDerivedValues& casacore::MSDerivedValues::operator= | ( | const MSDerivedValues & | other | ) |
Assignment, this will initialize with other's MS.
Double casacore::MSDerivedValues::parAngle | ( | ) |
get parallactic angle
MSDerivedValues& casacore::MSDerivedValues::setAntenna | ( | Int | antenna | ) |
Set antenna index, sets the position reference for the conversions.
Use -1 to set the reference frame to the observatory position.
MSDerivedValues& casacore::MSDerivedValues::setAntennaMount | ( | const Vector< String > & | mount | ) |
Set antenna mounts, should have same number of entries as antPosition in setAntennaPosition.
MSDerivedValues& casacore::MSDerivedValues::setAntennaPositions | ( | const Vector< MPosition > & | antPosition | ) |
Set antenna positions, index in vector is antenna number for calls below.
Int casacore::MSDerivedValues::setAntennas | ( | const ROMSAntennaColumns & | ac | ) |
Set antenna position from an antenna table Returns the number of antennas.
Also sets the observatory position to the average of the antenna positions.
MSDerivedValues& casacore::MSDerivedValues::setEpoch | ( | const MEpoch & | time | ) |
Set epoch.
MSDerivedValues& casacore::MSDerivedValues::setFieldCenter | ( | const MDirection & | fieldCenter | ) |
Set field center.
MSDerivedValues& casacore::MSDerivedValues::setFieldCenter | ( | uInt | fieldid = 0 | ) |
If you have used setMeasurementSet then this version of setFieldCenter using field id makes sense.
MSDerivedValues& casacore::MSDerivedValues::setFrequencyReference | ( | MFrequency::Types | frqType | ) |
Set the frequency frame (e.g., MFrequency::LSRK)
MSDerivedValues& casacore::MSDerivedValues::setMeasurementSet | ( | const MeasurementSet & | ms | ) |
Set an ms does not need to explicity setAntennas and is necessary if setRestFreqency(fieldid, spwid) is used.
MSDerivedValues& casacore::MSDerivedValues::setObservatoryPosition | ( | const MPosition & | obsPosition | ) |
Set the observatory position.
Note that setAntennas will reset this.
Bool casacore::MSDerivedValues::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& casacore::MSDerivedValues::setRestFrequency | ( | const Quantity & | restFreq | ) |
MSDerivedValues& casacore::MSDerivedValues::setVelocityFrame | ( | MRadialVelocity::Types | vType | ) |
Set the velocity frame type (e.g., MRadialVelocity::LSRK)
MSDerivedValues& casacore::MSDerivedValues::setVelocityReference | ( | MDoppler::Types | dopType | ) |
Set the velocity frame type (e.g., MRDoppler::RADIO)
get frequency from velocity
get velocity from frequency
|
friend |
Definition at line 112 of file MSDerivedValues.h.
|
private |
Definition at line 211 of file MSDerivedValues.h.
|
private |
Definition at line 215 of file MSDerivedValues.h.
|
private |
Definition at line 214 of file MSDerivedValues.h.
|
private |
Definition at line 216 of file MSDerivedValues.h.
|
private |
Definition at line 222 of file MSDerivedValues.h.
|
private |
Definition at line 212 of file MSDerivedValues.h.
|
private |
Definition at line 217 of file MSDerivedValues.h.
|
private |
Definition at line 224 of file MSDerivedValues.h.
|
private |
Definition at line 225 of file MSDerivedValues.h.
Definition at line 213 of file MSDerivedValues.h.
|
private |
Definition at line 220 of file MSDerivedValues.h.
|
private |
Definition at line 219 of file MSDerivedValues.h.
|
private |
Definition at line 221 of file MSDerivedValues.h.
Definition at line 227 of file MSDerivedValues.h.
|
private |
Definition at line 218 of file MSDerivedValues.h.
|
private |
Definition at line 228 of file MSDerivedValues.h.
|
private |
Definition at line 229 of file MSDerivedValues.h.
|
private |
Definition at line 226 of file MSDerivedValues.h.
|
private |
Definition at line 223 of file MSDerivedValues.h.