Changeset 860 in ntrip
- Timestamp:
- Apr 26, 2008, 11:31:00 AM (17 years ago)
- Location:
- trunk/BNS
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNS/bnsoutf.h
r859 r860 21 21 virtual void closeFile(); 22 22 std::ofstream _out; 23 int _sampl; 23 24 24 25 private: … … 28 29 void resolveFileName(int GPSweek, const QDateTime& datTim); 29 30 30 int _sampl;31 31 bool _headerWritten; 32 32 QDateTime _nextCloseEpoch; -
trunk/BNS/bnssp3.cpp
r859 r860 79 79 //////////////////////////////////////////////////////////////////////////// 80 80 void bnsSP3::writeHeader(const QDateTime& datTim) { 81 _out << "#cP2007 7 1 0 0 0.00000000 96 ORBIT IGS05 HLM IGS" 82 << "## 1434 0.00000000 900.00000000 54282 0.0000000000000" 81 82 int GPSWeek; 83 double GPSWeeks; 84 GPSweekFromDateAndTime(datTim, GPSWeek, GPSWeeks); 85 86 double sec = fmod(GPSWeeks, 60.0); 87 88 int mjd; 89 double dayfrac; 90 mjdFromDateAndTime(datTim, mjd, dayfrac); 91 92 _out << "#aP" << datTim.toString("yyyy MM dd hh mm").toAscii().data() 93 << setw(12) << setprecision(8) << sec 94 << " 96 ORBIT IGS05 HLM IGS" << endl; 95 96 _out << "## " 97 << setw(4) << GPSWeek 98 << setw(16) << setprecision(8) << GPSWeeks 99 << setw(15) << setprecision(8) << double(_sampl) 100 << setw(6) << mjd 101 << setw(16) << setprecision(13) << dayfrac << endl; 83 102 84 103 _out << "+ 32 G01G02G03G04G05G06G07G08G09G10G11G12G13G14G15G16G17\n" -
trunk/BNS/bnsutils.cpp
r804 r860 92 92 currTime.second() + 93 93 currTime.msec() / 1000.0; 94 } 95 96 // 97 //////////////////////////////////////////////////////////////////////////// 98 void mjdFromDateAndTime(const QDateTime& dateTime, int& mjd, double& dayfrac) { 99 100 double mjddec = dateTime.date().toJulianDay() - 2400000.5 + 101 (dateTime.time().hour() + 102 (dateTime.time().minute() + 103 (dateTime.time().second() + 104 dateTime.time().msec() / 1000.0) / 60.0) / 60.0) / 24.0; 105 106 mjd = int(mjddec); 107 dayfrac = mjddec - mjd; 94 108 } 95 109 -
trunk/BNS/bnsutils.h
r854 r860 19 19 int& GPSWeek, double& GPSWeeks); 20 20 21 void mjdFromDateAndTime(const QDateTime& dateTime, int& mjd, double& dayfrac); 22 21 23 void currentGPSWeeks(int& week, double& sec); 22 24
Note:
See TracChangeset
for help on using the changeset viewer.