Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.apo.nmsu.edu/Telescopes/TCC/html/earth_8cc_source.html
Дата изменения: Tue Sep 15 02:25:37 2015
Дата индексирования: Sun Apr 10 00:27:38 2016
Кодировка:

Поисковые слова: arp 220
lsst.tcc: src/earth.cc Source File
lsst.tcc  1.2.2-3-g89ecb63
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
earth.cc
Go to the documentation of this file.
1 /*
2 Earth orientation predictions
3 */
4 #include <stdexcept>
5 #include "coordConv/physConst.h"
6 #include "tcc/earth.h"
7 
8 namespace tcc {
9 
11  :
12  utcDay(0),
13  startTAI(),
14  ut1_taiIntercept(),
15  poleInterceptX(),
16  poleInterceptY(),
17  ut1_taiSlope(),
18  poleSlopeX(),
19  poleSlopeY()
20  {};
21 
22  void Earth::updateSite(coordConv::Site &site, double tai) const {
23  int ind;
24  for (ind = 0; ind < 2; ++ind) {
25  if ((tai >= startTAI.at(ind)) && (tai < startTAI.at(ind + 1))) {
26  break;
27  }
28  }
29  if (ind > 1) {
30  throw std::runtime_error("No earth orientation data for this TAI date");
31  }
32 
33  double deltaT = tai - startTAI.at(ind);
34  site.utc_tai = (utcDay * coordConv::SecPerDay) - startTAI.at(0);
35  site.ut1_tai = ut1_taiIntercept.at(ind) + (ut1_taiSlope.at(ind) * deltaT);
36  double poleX = poleInterceptX.at(ind) + (poleSlopeX.at(ind) * deltaT);
37  double poleY = poleInterceptY.at(ind) + (poleSlopeY.at(ind) * deltaT);
38  site.setPoleWander(poleX, poleY);
39  }
40 
41 }
std::tr1::array< double, 2 > poleInterceptX
Definition: earth.h:18
Earth()
Definition: earth.cc:10
std::tr1::array< double, 2 > poleInterceptY
Definition: earth.h:19
std::tr1::array< double, 2 > poleSlopeY
Definition: earth.h:22
void updateSite(coordConv::Site &site, double tai) const
Definition: earth.cc:22
int utcDay
Definition: earth.h:15
std::tr1::array< double, 2 > ut1_taiSlope
Definition: earth.h:20
std::tr1::array< double, 2 > poleSlopeX
Definition: earth.h:21
std::tr1::array< double, 3 > startTAI
Definition: earth.h:16
double tai()
Definition: tai.cc:7
std::tr1::array< double, 2 > ut1_taiIntercept
Definition: earth.h:17
reference at(size_type __n)