Muvw.h
Classes
- Muvw -- A Measure: uvw on Earth (full description)
class Muvw : public MeasBase<MVuvw, MeasRef<Muvw> >
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(Muvw) Types Types
- Muvw()
- Muvw(const MVuvw &dt)
- Muvw(const MVuvw &dt, const Muvw::Ref &rf)
- Muvw(const MVuvw &dt, Muvw::Types rf)
- Muvw(const Measure *dt)
- Muvw(const MeasValue *dt)
- Muvw(const Muvw &)
- Muvw &operator=(const Muvw &)
- virtual ~Muvw()
- virtual const String &tellMe() const
- static const String &showMe()
- virtual uInt type() const
- static void assure(const Measure &in)
- static Muvw::Types castType(uInt tp)
- static const String &showType(Muvw::Types tp)
- static const String &showType(uInt tp)
- static Bool getType(Muvw::Types &tp, const String &in)
- Bool giveMe(Muvw::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 Muvw::Types fromDirType(const MDirection::Types in)
- static MDirection::Types toDirType(const Muvw::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 uvw
Synopsis
Muvw is the derived Measure class for an interferometer uvw.
uvws 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 uvw), plate motion (not relevant for telescopes on same plate) and
relativistic effects are incorporated. B1950 has the same caveat as in
MDirection.
Example
// Specify an Epoch and a telescope position
MEpoch tbm(Quantity(50927.92931, "d"));
MPosition pos(MVPosition(-4750915.84032, 2792906.17778,
-3200483.75028),
MPosition::ITRF);
// Use them in a frame
MeasFrame mf(tbm, pos);
// Specify an uvw (note that values here are in m)
MVuvw mvb0(100 ,10, 0);
cout << "uvw: " << mvb0 << endl;
// Specify a reference (type and where and when) for the following uvw
Muvw::Ref mbref0(Muvw::ITRF, mf);
Muvw mb0(mvb0, mbref0);
// Show the uvw
cout << "uvw: " << mb0 << endl;
cout << "uvw reference: " << mbref0 << endl;
// Another reference
Muvw::Ref mbref1(Muvw::J2000);
cout << "uvw reference: " << mbref1 << endl;
// Convert the uvw coordinates to the other reference and show it
cout << "Test uvw conversion ..." << endl;
Muvw::Convert bconv(mb0, mbref1);
cout << "Converted " << mb0 << endl <<
" to " << mbref1 << endl <<
" as " << bconv() << endl;
Motivation
To be able to handle conversions between uvw coordinates with different
reference directions.
To Do
Member Description
Types of known Muvws
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
Muvw(const Muvw &)
Muvw &operator=(const Muvw &)
Copy constructor and assign
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(Muvw::Types &tp, const String &in)
Bool giveMe(Muvw::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 Muvw 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