#include #include #include #include "satObs.h" using namespace std; // Constructor //////////////////////////////////////////////////////////////////////////// t_clkCorr::t_clkCorr() { _iod = 0; _dClk = 0.0; _dotDClk = 0.0; _dotDotDClk = 0.0; } // //////////////////////////////////////////////////////////////////////////// void t_clkCorr::writeEpoch(std::ostream* out, const QList& corrList) { if (!out || corrList.size() == 0) { return; } out->setf(ios::fixed); bncTime epoTime; QListIterator it(corrList); while (it.hasNext()) { const t_clkCorr& corr = it.next(); if (!epoTime.valid()) { epoTime = corr._time; *out << "> CLOCK " << epoTime.datestr(' ') << ' ' << epoTime.timestr(1,' ') << " " << corrList.size() << ' ' << corr._staID << endl; } *out << corr._prn.toString() << ' ' << setw(3) << corr._iod << ' ' << setw(10) << setprecision(4) << corr._dClk * t_CST::c << ' ' << setw(10) << setprecision(4) << corr._dotDClk * t_CST::c << ' ' << setw(10) << setprecision(4) << corr._dotDotDClk * t_CST::c << endl; } out->flush(); } // //////////////////////////////////////////////////////////////////////////// void t_clkCorr::readEpoch(const QStringList& lines, QList& corrList) { } // Constructor //////////////////////////////////////////////////////////////////////////// t_orbCorr::t_orbCorr() { _iod = 0; _system = 'R'; _xr.ReSize(3); _xr = 0.0; _dotXr.ReSize(3); _dotXr = 0.0; } // //////////////////////////////////////////////////////////////////////////// void t_orbCorr::writeEpoch(std::ostream* out, const QList& corrList) { if (!out || corrList.size() == 0) { return; } out->setf(ios::fixed); bncTime epoTime; QListIterator it(corrList); while (it.hasNext()) { const t_orbCorr& corr = it.next(); if (!epoTime.valid()) { epoTime = corr._time; *out << "> ORBIT " << epoTime.datestr(' ') << ' ' << epoTime.timestr(1,' ') << " " << corrList.size() << ' ' << corr._staID << endl; } *out << corr._prn.toString() << ' ' << setw(3) << corr._iod << ' ' << setw(10) << setprecision(4) << corr._xr[0] << ' ' << setw(10) << setprecision(4) << corr._xr[1] << ' ' << setw(10) << setprecision(4) << corr._xr[2] << " " << setw(10) << setprecision(4) << corr._dotXr[0] << ' ' << setw(10) << setprecision(4) << corr._dotXr[1] << ' ' << setw(10) << setprecision(4) << corr._dotXr[2] << endl; } out->flush(); } // //////////////////////////////////////////////////////////////////////////// void t_orbCorr::readEpoch(const QStringList& lines, QList& corrList) { } // //////////////////////////////////////////////////////////////////////////// void t_satCodeBias::writeEpoch(std::ostream* out, const QList& biasList) { if (!out || biasList.size() == 0) { return; } out->setf(ios::fixed); bncTime epoTime; QListIterator it(biasList); while (it.hasNext()) { const t_satCodeBias& satCodeBias = it.next(); if (!epoTime.valid()) { epoTime = satCodeBias._time; *out << "> CODE_BIAS " << epoTime.datestr(' ') << ' ' << epoTime.timestr(1,' ') << " " << biasList.size() << ' ' << satCodeBias._staID << endl; } *out << satCodeBias._prn.toString(); for (unsigned ii = 0; ii < satCodeBias._bias.size(); ii++) { const t_frqCodeBias& frqCodeBias = satCodeBias._bias[ii]; *out << " " << frqCodeBias._rnxType2ch << ' ' << setw(10) << setprecision(4) << frqCodeBias._value; } *out << endl; } out->flush(); } // //////////////////////////////////////////////////////////////////////////// void t_satCodeBias::readEpoch(const QStringList& lines, QList& biasList) { } // //////////////////////////////////////////////////////////////////////////// void t_satPhaseBias::writeEpoch(std::ostream* out, const QList& biasList) { } // //////////////////////////////////////////////////////////////////////////// void t_satPhaseBias::readEpoch(const QStringList& lines, QList& biasList) { } // //////////////////////////////////////////////////////////////////////////// void t_vTec::write(std::ostream* out, const t_vTec& vTec) { } // //////////////////////////////////////////////////////////////////////////// void t_vTec::read(const QStringList& lines, t_vTec& vTec) { }