59 using namespace StringUtils;
69 int main(
int argc,
char **argv)
85 LOGlevel = ConfigureLOG::Level(
"DEBUG7");
91 ttag.
setMJD(
static_cast<long double>(54195.5));
94 UT1mUTC = -0.072073685;
98 LOG(
INFO) <<
"Test EarthOrientation";
99 LOG(
INFO) <<
"Epoch 2007/ 4/ 5 12: 0:0.000 UTC";
100 LOG(
INFO) <<
"Polar angles xp yp = " << fixed << setprecision(7)
101 << xp <<
" " << yp <<
" arcsec";
102 LOG(
INFO) <<
"UT1-UTC = " << fixed << setprecision(9) << UT1mUTC;
116 << setprecision(1) <<
"Times: UTC " <<
MJD_TO_JD <<
" + "
117 << setprecision(15) << setw(21) <<
mjd << endl
118 << setprecision(1) <<
" TAI " <<
MJD_TO_JD <<
" + "
119 << setprecision(15) << setw(21) <<
TAI << endl
120 << setprecision(1) <<
" TT " <<
MJD_TO_JD <<
" + "
121 << setprecision(15) << setw(21) <<
TT << endl
122 << setprecision(1) <<
" UT1 " <<
MJD_TO_JD <<
" + "
123 << setprecision(15) << setw(21) << UT1;
127 LOG(
INFO) <<
"\nIERS 1996 / IAU 1976/1980 "
128 <<
"------------------------------------------"
129 <<
"\n\nNO Adjustments made";
130 nGF96.
xp = xp; nGF96.
yp = yp; nGF96.
UT1mUTC = UT1mUTC;
132 LOG(
INFO) <<
"\ncelestial-to-terrestrial matrix:\n" << showpos << fixed
133 << setprecision(15) << setw(18) <<
transpose(M);
135 LOG(
INFO) <<
"\nIERS 2003 / IAU 2000A, CIO "
136 <<
"-----------------------------------------"
137 <<
"\n\nNO Adjustments made";
138 nGF03.
xp = xp; nGF03.
yp = yp; nGF03.
UT1mUTC = UT1mUTC;
140 LOG(
INFO) <<
"\ncelestial-to-terrestrial matrix:\n" << showpos << fixed
141 << setprecision(15) << setw(18) <<
transpose(M);
143 LOG(
INFO) <<
"\nIERS 2010 / IAU 2000A, CIO "
144 <<
"-----------------------------------------\n"
145 <<
"\nUsing XY series\n"
146 <<
"\nNO Adjustments made\n";
147 nGF10.
xp = xp; nGF10.
yp = yp; nGF10.
UT1mUTC = UT1mUTC;
149 LOG(
INFO) <<
"\ncelestial-to-terrestrial matrix:\n" << showpos << fixed
150 << setprecision(15) << setw(18) <<
transpose(M);
156 cerr <<
"Exception: " << e;
160 cerr <<
"Unknown exception. Abort." << endl;