Go to the documentation of this file.
29 #ifndef MS_MSDERIVEDVALUES_H
30 #define MS_MSDERIVEDVALUES_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/Arrays/Vector.h>
34 #include <casacore/measures/Measures.h>
35 #include <casacore/measures/Measures/MCDirection.h>
36 #include <casacore/measures/Measures/MDoppler.h>
37 #include <casacore/measures/Measures/MFrequency.h>
38 #include <casacore/measures/Measures/MCEpoch.h>
39 #include <casacore/measures/Measures/MCRadialVelocity.h>
40 #include <casacore/measures/Measures/MPosition.h>
41 #include <casacore/ms/MeasurementSets/MeasurementSet.h>
45 class MSAntennaColumns;
189 const Int linenum=0);
MSDerivedValues & setFrequencyReference(MFrequency::Types frqType)
Set the frequency frame (e.g., MFrequency::LSRK)
const MEpoch & last()
get LAST for given time, antenna
MRadialVelocity::Types getRadialVelocityType() const
A Measure: instant in time.
A Measure: position on Earth.
MSDerivedValues calculates values derived from a MS.
A Measure: radial velocity.
Quantity toVelocity(const Quantity &freq)
MDirection::Convert cHADecToAzEl_p
MSDerivedValues & setMeasurementSet(const MeasurementSet &ms)
Set an ms does not need to explicity setAntennas and is necessary if setRestFreqency(fieldid,...
void init()
initialize data
const MRadialVelocity & obsVel()
get observatory radial velocity for given epoch, position and direction
MSDerivedValues(const MSDerivedValues &other)
Copy constructor, this will initialize with other's MS.
const Vector< MPosition > & getAntennaPositions() const
MDirection::Convert cRADecToAzEl_p
const MDirection & azel()
get azimuth & elevation
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 SOURC...
Types
Types of known MRadialVelocity Warning: The order defines the order in the translation matrix FromTo...
MSDerivedValues & setAntennaPositions(const Vector< MPosition > &antPosition)
Set antenna positions, index in vector is antenna number for calls below.
MSDerivedValues & operator=(const MSDerivedValues &other)
Assignment, this will initialize with other's MS.
Container for Measure frame.
Vector< MPosition > mAntPos_p
Types
Types of known MDopplers Warning: The order defines the order in the translation matrix FromTo in th...
MSDerivedValues & setRestFrequency(const Quantity &restFreq)
Double parAngle()
get parallactic angle
MSDerivedValues & setAntenna(Int antenna)
Set antenna index, sets the position reference for the conversions.
Quantity toVelocity(const Quantity &freq, const Quantity &restFreq)
get velocity from frequency
MEpoch::Convert cUTCToLAST_p
MRadialVelocity::Types radialVelocityType_p
MDirection mFieldCenter_p
MSDerivedValues & setFieldCenter(const MDirection &fieldCenter)
Set field center.
friend class VisBufferAsync
A Measure: astronomical direction.
MDirection::Convert cRADecToHADec_p
this file contains all the compiler specific defines
MSDerivedValues()
thread-hostile shared pointers (Jim Jacobs 111104)
MSDerivedValues & setObservatoryPosition(const MPosition &obsPosition)
Set the observatory position.
MSDerivedValues & setEpoch(const MEpoch &time)
Set epoch.
Types
Types of known MFrequencies Warning: The order defines the order in the translation matrix FromTo in...
MSDerivedValues & setVelocityReference(MDoppler::Types dopType)
Set the velocity frame type (e.g., MRDoppler::RADIO)
MDirection mHADecPoleInAzEl_p
TableExprNode time(const TableExprNode &node)
MDirection mRADecInAzEl_p
MSDerivedValues & setFieldCenter(uInt fieldid=0)
If you have used setMeasurementSet then this version of setFieldCenter using field id makes sense.
MSDerivedValues & setAntennaMount(const Vector< String > &mount)
Set antenna mounts, should have same number of entries as antPosition in setAntennaPosition.
MRadialVelocity::Convert cTOPOToLSR_p
A Table intended to hold astronomical data (a set of Measurements).
Quantity toFrequency(const Quantity &vel, const Quantity &restFreq)
get frequency from velocity
A class to provide easy access to MSAntenna columns.
Int setAntennas(const MSAntennaColumns &ac)
Set antenna position from an antenna table Returns the number of antennas.
MSDerivedValues & setVelocityFrame(MRadialVelocity::Types vType)
Set the velocity frame type (e.g., MRadialVelocity::LSRK)
bool Bool
Define the standard types used by Casacore.
A 1-D Specialization of the Array class.
Double hourAngle()
get hour angle
Quantity toFrequency(const Quantity &vel)