3 #include "coordConv/physConst.h"
19 wavelen / coordConv::AngstromsPerMicron,
22 std::ostringstream os;
23 os <<
"tcsIast mount error: " << stat;
24 throw std::runtime_error(os.str());
31 wavelen / coordConv::AngstromsPerMicron,
34 std::ostringstream os;
35 os <<
"tcsIast rot error: " << stat;
36 throw std::runtime_error(os.str());
42 coordConv::PVTCoord
const &obsPos,
45 coordConv::PVT obsPVT[2];
46 obsPos.getSphPVT(obsPVT[0], obsPVT[1]);
50 for (
int i = 0; i < 2; ++i) {
51 bool isAz = (i == 0) && (
m_ast.cosys == AZEL_TOPO);
58 std::ostringstream os;
59 os <<
"tcsItar error: " << stat;
60 throw std::runtime_error(os.str());
65 std::ostringstream os;
71 os <<
"# TcsAstrom" << std::endl;
73 os <<
"m_ast # ASTROM struct for the object" << std::endl;
74 os << tcsAstrom.
m_ast;
75 os <<
"r_ast: ASTROM struct for the rotator" << std::endl;
76 os << tcsAstrom.
r_ast;
bool tcsFromPVT(double &pos, double &vel, coordConv::PVT const &pvt, double tai, bool isAz=false)
ASTROM r_ast
rotator astrometry information
ASTROM m_ast
mount astrometry information
TcsAstrom(double wavelen)
std::ostream & operator<<(std::ostream &os, ChebyshevPolynomial const &cheby)
void initTarget(TARG &tar, coordConv::PVTCoord const &obsPos, double tai) const
std::string __repr__() const