casacore
Loading...
Searching...
No Matches
MeasData.h
Go to the documentation of this file.
1//# MeasData.h: MeasData provides Measure computing data
2//# Copyright (C) 1995,1996,1997,1999,2003
3//# Associated Universities, Inc. Washington DC, USA.
4//#
5//# This library is free software; you can redistribute it and/or modify it
6//# under the terms of the GNU Library General Public License as published by
7//# the Free Software Foundation; either version 2 of the License, or (at your
8//# option) any later version.
9//#
10//# This library is distributed in the hope that it will be useful, but WITHOUT
11//# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12//# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13//# License for more details.
14//#
15//# You should have received a copy of the GNU Library General Public License
16//# along with this library; if not, write to the Free Software Foundation,
17//# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18//#
19//# Correspondence concerning AIPS++ should be addressed as follows:
20//# Internet email: casa-feedback@nrao.edu.
21//# Postal address: AIPS++ Project Office
22//# National Radio Astronomy Observatory
23//# 520 Edgemont Road
24//# Charlottesville, VA 22903-2475 USA
25
26#ifndef MEASURES_MEASDATA_H
27#define MEASURES_MEASDATA_H
28
29//# Includes
30#include <casacore/casa/aips.h>
31
32namespace casacore { //# NAMESPACE CASACORE - BEGIN
33
34//# Forward Declarations
35class RotMatrix;
36
37// <summary>
38// MeasData provides Measure computing data
39// </summary>
40
41// <use visibility=local>
42
43// <reviewed reviewer="UNKNOWN" date="before2004/08/25" tests="tMeasMath" demos="">
44// </reviewed>
45
46// <prerequisite>
47// <li> <linkto class=Measure>Measure</linkto> class
48// </prerequisite>
49//
50// <etymology>
51// MeasData from Measure and Data
52// </etymology>
53//
54// <synopsis>
55// MeasData contains the constant data
56// necessary for precession, nutation and other
57// <linkto class=Measure>Measure</linkto> related calculations.<br>
58// Database (Table) related data, or data that can be changed by the user,
59// is available in the <linkto class=MeasTable>MeasTable</linkto> class. <br>
60// All data. apart from a set of simple constants:
61// <srcblock>
62// MeasData::MJD2000
63// MeasData::MJDB1950
64// MeasData::MJDB1900
65// MeasData::MJDB1850
66// MeasData::TROPCEN
67// MeasData::JDCEN
68// MeasData::SECinDAY
69// </srcblock>
70// are obtained by calls to a method.
71// This class contains no constructors or destructors, only static
72// methods and (static) constants.
73// <br> References:<br> Explanatory supplements to the Astronomical Almanac
74// <br> C. Ron and J. Vondrak, Bull. Astron. Inst. Czechosl. 37, p96, 1986
75// <br> M. Soma, Th. Hirayama and H. Kinoshita, Celest. Mech. 41, p389, 1988
76// <br> V.S. Gubanov, Astron. Zh. 49, p1112, 1972 (English translation:
77// Sov. Astronomy - AJ, Vol. 16, No. 5, p. 907)
78// </synopsis>
79//
80// <example>
81// Usage examples can be found in <linkto class=Precession>Precession</linkto>
82// </example>
83//
84// <motivation>
85// To create a clean interface between the actual calculations and the
86// methods to obtain the parameters for these calculations. Note that the
87// tables are in general in the format and units found in the literature. This
88// is to be able to easy check and change them. However, in the future
89// re-arrangement could produce faster and more compact code.
90// </motivation>
91//
92// <todo asof="1997/04/17">
93// <li> more precise data for VLBI and pulsar
94// </todo>
95
96class MeasData {
97
98public:
99
100 //# Constants
101 // General constants
102 // <group>
103 // MJD of J2000.0
104 static const Double MJD2000;
105 // MJD of B1950.0
106 static const Double MJDB1950;
107 // MJD of B1900.0
108 static const Double MJDB1900;
109 // MJD of B1850.0
110 static const Double MJDB1850;
111 // Length Tropical century
112 static const Double TROPCEN;
113 // Length Julian century
114 static const Double JDCEN;
115 // Length of day in sec
116 static const Double SECinDAY;
117 // </group>
118
119 //# General Member Functions
120
121 // Get the rotation matrices for galactic coordinates
122 // <group>
123 static const RotMatrix &GALtoB1950();
124 static const RotMatrix &GALtoJ2000();
125 static const RotMatrix &J2000toGAL();
126 static const RotMatrix &B1950toGAL();
127 // </group>
128
129 // Get one of the 4 3x3 sub rotation matrices for B1950-J2000 conversions
130 // <group>
131 static const RotMatrix &MToB1950(uInt which);
132 static const RotMatrix &MToJ2000(uInt which);
133 // </group>
134
135 // Get the solar semi diameter at 1 AU in rad
137
138 // J2000 obliquity
140
141private:
142
143 //# Constructors
144 // Default constructor, NOT defined
146
147 // Copy assign, NOT defined
149
150 //# Destructor
151 // Destructor (NOT defined) and not declared to stop warning
152 // ~MeasData();
153 //# General member functions
154};
155
156
157} //# NAMESPACE CASACORE - END
158
159#endif
static const Double JDCEN
Length Julian century.
Definition MeasData.h:114
static const RotMatrix & MToB1950(uInt which)
Get one of the 4 3x3 sub rotation matrices for B1950-J2000 conversions.
static const Double MJDB1900
MJD of B1900.0.
Definition MeasData.h:108
static const RotMatrix & B1950toGAL()
static const Double TROPCEN
Length Tropical century.
Definition MeasData.h:112
static const Double MJD2000
General constants.
Definition MeasData.h:104
MeasData()
Default constructor, NOT defined.
static const RotMatrix & J2000toGAL()
static const Double MJDB1950
MJD of B1950.0.
Definition MeasData.h:106
static const RotMatrix & GALtoB1950()
Get the rotation matrices for galactic coordinates.
MeasData & operator=(const MeasData &other)
Copy assign, NOT defined.
static const Double SECinDAY
Length of day in sec.
Definition MeasData.h:116
static Double SunSemiDiameter()
Get the solar semi diameter at 1 AU in rad.
static const Double MJDB1850
MJD of B1850.0.
Definition MeasData.h:110
static const RotMatrix & MToJ2000(uInt which)
static const RotMatrix & GALtoJ2000()
static Double eps0J2000()
J2000 obliquity.
this file contains all the compiler specific defines
Definition mainpage.dox:28
unsigned int uInt
Definition aipstype.h:49
double Double
Definition aipstype.h:53