Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.apo.nmsu.edu/Telescopes/coordConv/html/time_8cc_source.html
Дата изменения: Thu May 7 21:42:46 2015
Дата индексирования: Sun Apr 10 01:54:48 2016
Кодировка:

Поисковые слова: carina nebula
lsst.coordConv: src/time.cc Source File
lsst.coordConv  unknown
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
time.cc
Go to the documentation of this file.
1 #include "slalib.h"
2 #include "coordConv/mathUtils.h"
3 #include "coordConv/physConst.h"
4 #include "coordConv/time.h"
5 
6 namespace {
7  inline double ttDaysFromTAI(double tai) {
9  }
10 
11  inline double taiFromTTDays(double ttDays) {
12  return (ttDays * coordConv::SecPerDay) - coordConv::TT_TAI;
13  }
14 }
15 
16 namespace coordConv {
17 
18  double lastFromTAI(double tai, Site const &site) {
19  // compute Greenwich mean sidereal time, in degrees
20  double ut1Days = (tai + site.ut1_tai) / SecPerDay;
21  double gmst = slaGmst(ut1Days) / RadPerDeg;
22 
23  // compute apparent - mean sidereal time, in degrees
24  double ttDays = (tai + TT_TAI) / SecPerDay;
25  double appMinusMean = slaEqeqx(ttDays) / RadPerDeg;
26 
27  // compute local apparent sideral time, in degrees, in range [0, 360)
28  return wrapPos(gmst + site.corrLong + appMinusMean);
29  }
30 
31  double julianEpochFromTAI(double tai) {
32  return 2000.0 + ((ttDaysFromTAI(tai) - MJDJ2000) / DaysPerYear);
33  }
34 
35  double taiFromJulianEpoch(double julianEpoch) {
36  return taiFromTTDays(MJDJ2000 + ((julianEpoch - 2000.0) * DaysPerYear));
37  }
38 
39  double besselianEpochFromTAI(double tai) {
40  return 1900.0 + (ttDaysFromTAI(tai) - 15019.81352 ) / 365.242198781;
41  }
42 
43  double taiFromBesselianEpoch(double date) {
44  return taiFromTTDays(15019.81352 + (date - 1900.0) * 365.242198781);
45  }
46 
47 }
double taiFromBesselianEpoch(double besselianEpoch)
Definition: time.cc:43
double lastFromTAI(double tai, Site const &site)
Definition: time.cc:18
double ut1_tai
UT1-TAI (seconds) at date of coordinate conversion.
Definition: site.h:18
double taiFromJulianEpoch(double julianEpoch)
Definition: time.cc:35
const double SecPerDay
Definition: physConst.h:23
const double DaysPerYear
Definition: physConst.h:24
const double TT_TAI
Definition: physConst.h:35
const double MJDJ2000
Definition: physConst.h:30
double besselianEpochFromTAI(double mjdSec)
Definition: time.cc:39
const double RadPerDeg
Definition: physConst.h:19
double julianEpochFromTAI(double mjdSec)
Definition: time.cc:31
double corrLong
longitude corrected for pole wander (deg)
Definition: site.h:21
double wrapPos(double ang)
Definition: mathUtils.cc:20