MBaseline.h
Classes
- MBaseline -- A Measure: Baseline on Earth (full description)
class MBaseline : public MeasBase<MVBaseline, MeasRef<MBaseline> >
Types
- J2000
-
- JMEAN
-
- JTRUE
-
- APP
-
- B1950
-
- BMEAN
-
- BTRUE
-
- GALACTIC
-
- HADEC
-
- AZEL
-
- AZELSW
-
- AZELGEO
-
- AZELSWGEO
-
- JNAT
-
- ECLIPTIC
-
- MECLIPTIC
-
- TECLIPTIC
-
- SUPERGAL
-
- ITRF
-
- TOPO
-
- ICRS
-
- N_Types
-
- DEFAULT = ITRF,
-
Defaults
- AZELNE = AZEL,
-
Synonyms
Synonyms
Interface
- Public Members
- typedef WHATEVER_SUN_TYPEDEF(MBaseline) Types Types
- MBaseline()
- MBaseline(const MVBaseline &dt)
- MBaseline(const MVBaseline &dt, const MBaseline::Ref &rf)
- MBaseline(const MVBaseline &dt, MBaseline::Types rf)
- MBaseline(const Measure *dt)
- MBaseline(const MeasValue *dt)
- MBaseline(const MBaseline &)
- MBaseline &operator=(const MBaseline &)
- virtual ~MBaseline()
- virtual const String &tellMe() const
- static const String &showMe()
- virtual uInt type() const
- static void assure(const Measure &in)
- static MBaseline::Types castType(uInt tp)
- static const String &showType(MBaseline::Types tp)
- static const String &showType(uInt tp)
- static Bool getType(MBaseline::Types &tp, const String &in)
- Bool giveMe(MBaseline::Ref &mr, const String &in)
- virtual Bool setOffset(const Measure &in)
- virtual Bool setRefString(const String &in)
- virtual const String &getDefaultType() const
- virtual const String *const allTypes(Int &nall, Int &nextra, const uInt *&typ) const
- static const String *const allMyTypes(Int &nall, Int &nextra, const uInt *&typ)
- virtual void checkTypes() const
- static void checkMyTypes()
- static MBaseline::Types fromDirType(const MDirection::Types in)
- static MDirection::Types toDirType(const MBaseline::Types in)
- virtual String getRefString() const
- static uInt myType()
- Quantum<Vector<Double> > get(const Unit &inunit) const
- Quantum<Vector<Double> > getAngle() const
- Quantum<Vector<Double> > getAngle(const Unit &inunit) const
- virtual Measure *clone() const
Review Status
- Reviewed By:
- UNKNOWN
- Date Reviewed:
- before2004/08/25
- Programs:
- Tests:
Prerequisite
Etymology
From Measure and Baseline
Synopsis
MBaseline forms derived Measure class for an interferometer baseline.
Baselines can be given in any of the direction types, or as ITRF, the
IERS base.
Note that at the moment no correction for Earth tides (error <~ 0.05 mm/km
EW baseline), plate motion (not relevant for telescopes on same plate) and
relativistic effects are incorporated. B1950 has the same caveat as in
MDirection.
Example
Motivation
To Do
- add some Earth tide model
Member Description
Types of known MBaselines
The order defines the order in the translation matrix FromTo
in the getConvert routine. Do not change the order without
changing the array. Additions should be made before N_types, and
an additional row and column should be coded in FromTo, and
in showType().
Reference enum Types (included originally for gcc 2.95)
In the following constructors and other functions, all
MeasRef can be replaced with simple Measure::TYPE
where no offsets or frames are needed in the reference.
Default constructor; generates the ITRF centre
Create from data and reference
MBaseline(const MBaseline &)
MBaseline &operator=(const MBaseline &)
virtual const String &tellMe() const
static const String &showMe()
virtual uInt type() const
static void assure(const Measure &in)
Tell me your type
Translate reference code. The uInt version has a check for valid codes
(i.e. it is a safe cast).
Thrown Exceptions
- AipsError in the uInt interface if illegal code given
static Bool getType(MBaseline::Types &tp, const String &in)
Bool giveMe(MBaseline::Ref &mr, const String &in)
Translate string to reference code
Set the offset in the reference (False if non-matching Measure)
Set the reference type to the specified String. False if illegal
string, reference set to DEFAULT.
Get the default reference type
virtual const String *const allTypes(Int &nall, Int &nextra, const uInt *&typ) const
static const String *const allMyTypes(Int &nall, Int &nextra, const uInt *&typ)
Get a list of all known reference codes. nall returns the number in list,
nextra the number of specials (like planets) that should be at
end of list). typ returns the list of corresponding types.
Check if all internal tables of types (both enum and String) are
complete and correct. This function is called automatically if and when
necessary.
Thrown Exceptions
- AipsError if a (programming) error in the types.
Get the correct MBaseline type from a given direction type (or v.v.)
Get the reference type (for records, including codes like R_)
static uInt myType()
Get my type (as Register)
Get Measure data
Make copy