Changeset 4013 in ntrip for trunk/BNC/rinex
- Timestamp:
- Apr 22, 2012, 2:19:43 PM (13 years ago)
- Location:
- trunk/BNC/rinex
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/rinex/reqcedit.cpp
r4010 r4013 100 100 //////////////////////////////////////////////////////////////////////////// 101 101 void t_reqcEdit::editObservations() { 102 103 // Easy Exit 104 // --------- 105 if (_obsFileNames.isEmpty() || _outObsFileName.isEmpty()) { 106 return; 107 } 102 108 103 109 // Initialize input observation files, sort them according to start time … … 230 236 void t_reqcEdit::editEphemerides() { 231 237 238 // Easy Exit 239 // --------- 240 if (_navFileNames.isEmpty() || _outNavFileName.isEmpty()) { 241 return; 242 } 243 232 244 // Read All Ephemerides 233 245 // -------------------- -
trunk/BNC/rinex/rnxnavfile.cpp
r4012 r4013 271 271 //////////////////////////////////////////////////////////////////////////// 272 272 void t_rnxNavFile::writeEph(const t_eph* eph) { 273 if (version() < 3.0) { 274 writeEphV2(eph); 275 } 276 else { 277 writeEphV3(eph); 278 } 279 } 280 281 // 282 //////////////////////////////////////////////////////////////////////////// 283 void t_rnxNavFile::writeEphV2(const t_eph* eph) { 284 } 285 286 // 287 //////////////////////////////////////////////////////////////////////////// 288 void t_rnxNavFile::writeEphV3(const t_eph* eph) { 289 290 bncTime tt(eph->GPSweek(), eph->GPSweeks()); 291 292 unsigned year, month, day, hour, min; 293 double sec; 294 tt.civil_date(year, month, day); 295 tt.civil_time(hour, min, sec); 296 297 QString dateStr; 298 QTextStream(&dateStr) << QString(" %1 %2 %3 %4 %5 %6") 299 .arg(year, 4) 300 .arg(month, 2, 10, QChar('0')) 301 .arg(day, 2, 10, QChar('0')) 302 .arg(hour, 2, 10, QChar('0')) 303 .arg(min, 2, 10, QChar('0')) 304 .arg(int(sec), 2, 10, QChar('0')); 305 306 *_stream << eph->prn() << dateStr << endl; 307 } 273 *_stream << eph->toString(version()); 274 } -
trunk/BNC/rinex/rnxnavfile.h
r4011 r4013 69 69 private: 70 70 void read(QTextStream* stream); 71 void writeEphV2(const t_eph* eph);72 void writeEphV3(const t_eph* eph);73 71 74 72 e_inpOut _inpOut;
Note:
See TracChangeset
for help on using the changeset viewer.