Changeset 6493 in ntrip
- Timestamp:
- Dec 28, 2014, 6:11:53 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/satObs.cpp
r6482 r6493 121 121 //////////////////////////////////////////////////////////////////////////// 122 122 void t_satPhaseBias::writeEpoch(std::ostream* out, const QList<t_satPhaseBias>& biasList) { 123 123 if (!out || biasList.size() == 0) { 124 return; 125 } 126 out->setf(ios::fixed); 127 bncTime epoTime; 128 QListIterator<t_satPhaseBias> it(biasList); 129 while (it.hasNext()) { 130 const t_satPhaseBias& satPhaseBias = it.next(); 131 if (!epoTime.valid()) { 132 epoTime = satPhaseBias._time; 133 *out << "> PHASE_BIAS " << epoTime.datestr(' ') << ' ' << epoTime.timestr(1,' ') << " " 134 << biasList.size() << ' ' << satPhaseBias._staID << endl; 135 } 136 *out << satPhaseBias._prn.toString(); 137 for (unsigned ii = 0; ii < satPhaseBias._bias.size(); ii++) { 138 const t_frqPhaseBias& frqPhaseBias = satPhaseBias._bias[ii]; 139 *out << " " << frqPhaseBias._rnxType2ch << ' ' 140 << setw(10) << setprecision(4) << frqPhaseBias._value; 141 } 142 *out << endl; 143 } 144 out->flush(); 124 145 } 125 146 … … 132 153 //////////////////////////////////////////////////////////////////////////// 133 154 void t_vTec::write(std::ostream* out, const t_vTec& vTec) { 155 if (!out || vTec._layers.size() == 0) { 156 return; 157 } 158 out->setf(ios::fixed); 159 bncTime epoTime = vTec._time; 160 *out << "> VTEC " << epoTime.datestr(' ') << ' ' << epoTime.timestr(1,' ') << " " 161 << vTec._layers.size() << ' ' << vTec._staID << endl; 134 162 163 out->flush(); 135 164 } 136 165
Note:
See TracChangeset
for help on using the changeset viewer.