Changeset 8084 in ntrip for trunk/BNC/src/bncsp3.cpp
- Timestamp:
- Mar 23, 2017, 1:12:50 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncsp3.cpp
r6533 r8084 12 12 * Created: 25-Apr-2008 13 13 * 14 * Changes: 14 * Changes: 15 15 * 16 16 * -----------------------------------------------------------------------*/ … … 35 35 if (!_stream.good()) { 36 36 throw "t_sp3File: cannot open file " + fileName; 37 } 37 } 38 38 39 39 while (_stream.good()) { … … 47 47 // Constructor 48 48 //////////////////////////////////////////////////////////////////////////// 49 bncSP3::bncSP3(const QString& sklFileName, const QString& intr, int sampl) 49 bncSP3::bncSP3(const QString& sklFileName, const QString& intr, int sampl) 50 50 : bncoutf(sklFileName, intr, sampl) { 51 51 _inpOut = output; … … 63 63 // Write One Epoch 64 64 //////////////////////////////////////////////////////////////////////////// 65 t_irc bncSP3::write(int GPSweek, double GPSweeks, const QString& prn, 65 t_irc bncSP3::write(int GPSweek, double GPSweeks, const QString& prn, 66 66 const ColumnVector& xCoM, double sp3Clk) { 67 67 … … 80 80 } 81 81 82 // Print the new epoch 82 // Print the new epoch 83 83 // ------------------- 84 84 _out << "* " << epoTime.datestr(' ') << ' ' << epoTime.timestr(8, ' ') << endl; … … 92 92 << setw(14) << setprecision(6) << xCoM(3) / 1000.0 93 93 << setw(14) << setprecision(6) << sp3Clk * 1e6 << endl; 94 94 95 95 return success; 96 96 } … … 120 120 double dayfrac; 121 121 mjdFromDateAndTime(datTim, mjd, dayfrac); 122 122 123 123 int numEpo = _numSec; 124 124 if (_sampl > 0) { … … 126 126 } 127 127 128 _out << "#aP" << datTim.toString("yyyy MM dd hh mm").toAscii().data() 128 _out << "#aP" << datTim.toString("yyyy MM dd hh mm").toAscii().data() 129 129 << setw(12) << setprecision(8) << sec 130 << " " << setw(7) << numEpo << " ORBIT IGS 08HLM IGS" << endl;131 132 _out << "## " 130 << " " << setw(7) << numEpo << " ORBIT IGS14 HLM IGS" << endl; 131 132 _out << "## " 133 133 << setw(4) << GPSWeek 134 134 << setw(16) << setprecision(8) << GPSWeeks … … 186 186 t_sp3Sat* sp3Sat = new t_sp3Sat(); 187 187 istringstream in(_lastLine.substr(1).c_str()); 188 in >> sp3Sat->_prn >> sp3Sat->_xyz(1) >> sp3Sat->_xyz(2) >> sp3Sat->_xyz(3) >> sp3Sat->_clk; 188 in >> sp3Sat->_prn >> sp3Sat->_xyz(1) >> sp3Sat->_xyz(2) >> sp3Sat->_xyz(3) >> sp3Sat->_clk; 189 189 190 190 if (sp3Sat->_xyz.norm_Frobenius() == 0.0) {
Note:
See TracChangeset
for help on using the changeset viewer.