[6176] | 1 | #include <iostream>
|
---|
[6177] | 2 | #include <iomanip>
|
---|
[6176] | 3 | #include <sstream>
|
---|
[6144] | 4 |
|
---|
| 5 | #include "satObs.h"
|
---|
[6178] | 6 |
|
---|
[6144] | 7 | using namespace std;
|
---|
| 8 |
|
---|
[6466] | 9 | // Constructor
|
---|
[6144] | 10 | ////////////////////////////////////////////////////////////////////////////
|
---|
[6466] | 11 | t_clkCorr::t_clkCorr() {
|
---|
[6160] | 12 | _iod = 0;
|
---|
| 13 | _dClk = 0.0;
|
---|
| 14 | _dotDClk = 0.0;
|
---|
| 15 | _dotDotDClk = 0.0;
|
---|
[6144] | 16 | }
|
---|
| 17 |
|
---|
| 18 | //
|
---|
| 19 | ////////////////////////////////////////////////////////////////////////////
|
---|
[6455] | 20 | void t_clkCorr::writeEpoch(std::ostream* out, const QList<t_clkCorr>& corrList) {
|
---|
[6456] | 21 | if (!out || corrList.size() == 0) {
|
---|
| 22 | return;
|
---|
| 23 | }
|
---|
[6457] | 24 | out->setf(ios::fixed);
|
---|
| 25 | bncTime epoTime;
|
---|
| 26 | QListIterator<t_clkCorr> it(corrList);
|
---|
| 27 | while (it.hasNext()) {
|
---|
| 28 | const t_clkCorr& corr = it.next();
|
---|
| 29 | if (!epoTime.valid()) {
|
---|
| 30 | epoTime = corr._time;
|
---|
[6459] | 31 | *out << "> CLOCK " << epoTime.datestr(' ') << ' ' << epoTime.timestr(1,' ') << " "
|
---|
[6458] | 32 | << corrList.size() << ' ' << corr._staID << endl;
|
---|
[6457] | 33 | }
|
---|
| 34 | *out << corr._prn.toString() << ' ' << setw(3) << corr._iod << ' '
|
---|
| 35 | << setw(10) << setprecision(4) << corr._dClk * t_CST::c << ' '
|
---|
| 36 | << setw(10) << setprecision(4) << corr._dotDClk * t_CST::c << ' '
|
---|
| 37 | << setw(10) << setprecision(4) << corr._dotDotDClk * t_CST::c << endl;
|
---|
| 38 | }
|
---|
[6456] | 39 | out->flush();
|
---|
[6144] | 40 | }
|
---|
| 41 |
|
---|
| 42 | //
|
---|
| 43 | ////////////////////////////////////////////////////////////////////////////
|
---|
[6465] | 44 | void t_clkCorr::readEpoch(const QStringList& lines, QList<t_clkCorr>& corrList) {
|
---|
[6180] | 45 | }
|
---|
| 46 |
|
---|
[6466] | 47 | // Constructor
|
---|
[6180] | 48 | ////////////////////////////////////////////////////////////////////////////
|
---|
[6466] | 49 | t_orbCorr::t_orbCorr() {
|
---|
| 50 | _iod = 0;
|
---|
| 51 | _system = 'R';
|
---|
[6160] | 52 | _xr.ReSize(3); _xr = 0.0;
|
---|
| 53 | _dotXr.ReSize(3); _dotXr = 0.0;
|
---|
[6144] | 54 | }
|
---|
| 55 |
|
---|
| 56 | //
|
---|
| 57 | ////////////////////////////////////////////////////////////////////////////
|
---|
[6455] | 58 | void t_orbCorr::writeEpoch(std::ostream* out, const QList<t_orbCorr>& corrList) {
|
---|
[6456] | 59 | if (!out || corrList.size() == 0) {
|
---|
| 60 | return;
|
---|
| 61 | }
|
---|
[6460] | 62 | out->setf(ios::fixed);
|
---|
| 63 | bncTime epoTime;
|
---|
| 64 | QListIterator<t_orbCorr> it(corrList);
|
---|
| 65 | while (it.hasNext()) {
|
---|
| 66 | const t_orbCorr& corr = it.next();
|
---|
| 67 | if (!epoTime.valid()) {
|
---|
| 68 | epoTime = corr._time;
|
---|
| 69 | *out << "> ORBIT " << epoTime.datestr(' ') << ' ' << epoTime.timestr(1,' ') << " "
|
---|
| 70 | << corrList.size() << ' ' << corr._staID << endl;
|
---|
| 71 | }
|
---|
| 72 | *out << corr._prn.toString() << ' ' << setw(3) << corr._iod << ' '
|
---|
| 73 | << setw(10) << setprecision(4) << corr._xr[0] << ' '
|
---|
| 74 | << setw(10) << setprecision(4) << corr._xr[1] << ' '
|
---|
| 75 | << setw(10) << setprecision(4) << corr._xr[2] << " "
|
---|
| 76 | << setw(10) << setprecision(4) << corr._dotXr[0] << ' '
|
---|
| 77 | << setw(10) << setprecision(4) << corr._dotXr[1] << ' '
|
---|
| 78 | << setw(10) << setprecision(4) << corr._dotXr[2] << endl;
|
---|
| 79 | }
|
---|
[6456] | 80 | out->flush();
|
---|
[6144] | 81 | }
|
---|
| 82 |
|
---|
[6455] | 83 | //
|
---|
| 84 | ////////////////////////////////////////////////////////////////////////////
|
---|
[6465] | 85 | void t_orbCorr::readEpoch(const QStringList& lines, QList<t_orbCorr>& corrList) {
|
---|
[6455] | 86 | }
|
---|
[6475] | 87 |
|
---|
| 88 | //
|
---|
| 89 | ////////////////////////////////////////////////////////////////////////////
|
---|
| 90 | void t_satCodeBias::writeEpoch(std::ostream* out, const QList<t_satCodeBias>& biasList) {
|
---|
[6476] | 91 | if (!out || biasList.size() == 0) {
|
---|
| 92 | return;
|
---|
| 93 | }
|
---|
| 94 | out->setf(ios::fixed);
|
---|
| 95 | bncTime epoTime;
|
---|
| 96 | QListIterator<t_satCodeBias> it(biasList);
|
---|
| 97 | while (it.hasNext()) {
|
---|
| 98 | const t_satCodeBias& satCodeBias = it.next();
|
---|
| 99 | if (!epoTime.valid()) {
|
---|
| 100 | epoTime = satCodeBias._time;
|
---|
| 101 | *out << "> CODE_BIAS " << epoTime.datestr(' ') << ' ' << epoTime.timestr(1,' ') << " "
|
---|
| 102 | << biasList.size() << ' ' << satCodeBias._staID << endl;
|
---|
| 103 | }
|
---|
[6477] | 104 | *out << satCodeBias._prn.toString();
|
---|
| 105 | for (unsigned ii = 0; ii < satCodeBias._bias.size(); ii++) {
|
---|
| 106 | const t_frqCodeBias& frqCodeBias = satCodeBias._bias[ii];
|
---|
| 107 | *out << " " << frqCodeBias._rnxType2ch << ' '
|
---|
| 108 | << setw(10) << setprecision(4) << frqCodeBias._value;
|
---|
| 109 | }
|
---|
[6476] | 110 | *out << endl;
|
---|
| 111 | }
|
---|
| 112 | out->flush();
|
---|
[6475] | 113 | }
|
---|
| 114 |
|
---|
| 115 | //
|
---|
| 116 | ////////////////////////////////////////////////////////////////////////////
|
---|
| 117 | void t_satCodeBias::readEpoch(const QStringList& lines, QList<t_satCodeBias>& biasList) {
|
---|
| 118 | }
|
---|
[6481] | 119 |
|
---|
| 120 | //
|
---|
| 121 | ////////////////////////////////////////////////////////////////////////////
|
---|
| 122 | void t_satPhaseBias::writeEpoch(std::ostream* out, const QList<t_satPhaseBias>& biasList) {
|
---|
| 123 |
|
---|
| 124 | }
|
---|
| 125 |
|
---|
| 126 | //
|
---|
| 127 | ////////////////////////////////////////////////////////////////////////////
|
---|
| 128 | void t_satPhaseBias::readEpoch(const QStringList& lines, QList<t_satPhaseBias>& biasList) {
|
---|
| 129 | }
|
---|
[6482] | 130 |
|
---|
| 131 | //
|
---|
| 132 | ////////////////////////////////////////////////////////////////////////////
|
---|
| 133 | void t_vTec::write(std::ostream* out, const t_vTec& vTec) {
|
---|
| 134 |
|
---|
| 135 | }
|
---|
| 136 |
|
---|
| 137 | //
|
---|
| 138 | ////////////////////////////////////////////////////////////////////////////
|
---|
| 139 | void t_vTec::read(const QStringList& lines, t_vTec& vTec) {
|
---|
| 140 | }
|
---|