4 #include "coordConv/physConst.h"
11 void nullRefSub (
int mode,
12 double refa,
double refb,
13 double hm,
double tlat,
double temp,
double press,
14 double humid,
double tlr,
double wavel,
15 double xin,
double yin,
double zin,
16 double *xout,
double *yout,
double *zout
30 for (
int i = 0, end =
aux.
size(); i < end; ++i) {
39 coordConv::Site
const &site
44 site.ut1_tai - site.utc_tai,
45 site.poleX * coordConv::RadPerDeg,
46 site.poleY * coordConv::RadPerDeg,
49 std::ostringstream os;
50 os <<
"tcsItimeo error: " << stat;
51 throw std::runtime_error(os.str());
56 site.meanLong * coordConv::RadPerDeg,
57 site.meanLat * coordConv::RadPerDeg,
59 site.wavelen / coordConv::AngstromsPerMicron,
64 std::ostringstream os;
65 os <<
"tcsIsite error: " << stat;
66 throw std::runtime_error(os.str());
72 double taiDays = tai / coordConv::SecPerDay;
74 double ttDays = taiDays +
teo.ttmtai;
76 tsite.ttj = slaEpj(ttDays);
78 double d = floor(tai);
79 tsite.st0 = slaDranrm(slaGmsta(d, (tai-d) -
teo.delat +
teo.delut) +
tsite.tlong + slaEqeqx(ttDays));
88 std::ostringstream os;
94 os <<
"# TcsSite" << std::endl;
96 os <<
"timestamp " << tcsSite.
timestamp <<
" # timestamp (TAI, MJD seconds)" << std::endl;
98 os <<
"tcsSite.teo: TCSpk time information" << std::endl;
101 os <<
"tcsSite.tsite: TCSpk site information" << std::endl;
105 for (
int i = 0; i < 3; ++i) {
106 os <<
"aux[" << i <<
"] " << tcsSite.
aux.
at(i) <<
" # Auxiliary data readings" << std::endl;
TIMEO teo
time information
std::tr1::array< double, MAXAUX > aux
auxiliary data for pointing model terms
std::string __repr__() const
double timestamp
tai of last update; 0 if never updated
SITE tsite
site information
std::ostream & operator<<(std::ostream &os, ChebyshevPolynomial const &cheby)
void update(double tai, coordConv::Site const &site)
reference at(size_type __n)