MBaseline.h

Classes

MBaseline -- A Measure: Baseline on Earth (full description)

class MBaseline : public MeasBase<MVBaseline, MeasRef<MBaseline> >

Types

enum 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

Description

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

Member Description

enum Types

Types of known MBaselines

Warning 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().

typedef WHATEVER_SUN_TYPEDEF(MBaseline) Types Types

Reference enum Types (included originally for gcc 2.95)

MBaseline()

Tip 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

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)

Create from data and reference

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)

Tell me your type

static MBaseline::Types castType(uInt tp)
static const String &showType(MBaseline::Types tp)
static const String &showType(uInt tp)

Translate reference code. The uInt version has a check for valid codes (i.e. it is a safe cast).

Thrown Exceptions

static Bool getType(MBaseline::Types &tp, const String &in)
Bool giveMe(MBaseline::Ref &mr, const String &in)

Translate string to reference code

virtual Bool setOffset(const Measure &in)

Set the offset in the reference (False if non-matching Measure)

virtual Bool setRefString(const String &in)

Set the reference type to the specified String. False if illegal string, reference set to DEFAULT.

virtual const String &getDefaultType() const

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.

virtual void checkTypes() const
static void checkMyTypes()

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

static MBaseline::Types fromDirType(const MDirection::Types in)
static MDirection::Types toDirType(const MBaseline::Types in)

Get the correct MBaseline type from a given direction type (or v.v.)

virtual String getRefString() const

Get the reference type (for records, including codes like R_)

static uInt myType()

Get my type (as Register)

Quantum<Vector<Double> > get(const Unit &inunit) const
Quantum<Vector<Double> > getAngle() const
Quantum<Vector<Double> > getAngle(const Unit &inunit) const

Get Measure data

virtual Measure *clone() const

Make copy