Changeset 4013 in ntrip for trunk/BNC/rinex


Ignore:
Timestamp:
Apr 22, 2012, 2:19:43 PM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/rinex
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/rinex/reqcedit.cpp

    r4010 r4013  
    100100////////////////////////////////////////////////////////////////////////////
    101101void t_reqcEdit::editObservations() {
     102
     103  // Easy Exit
     104  // ---------
     105  if (_obsFileNames.isEmpty() || _outObsFileName.isEmpty()) {
     106    return;
     107  }
    102108
    103109  // Initialize input observation files, sort them according to start time
     
    230236void t_reqcEdit::editEphemerides() {
    231237
     238  // Easy Exit
     239  // ---------
     240  if (_navFileNames.isEmpty() || _outNavFileName.isEmpty()) {
     241    return;
     242  }
     243
    232244  // Read All Ephemerides
    233245  // --------------------
  • trunk/BNC/rinex/rnxnavfile.cpp

    r4012 r4013  
    271271////////////////////////////////////////////////////////////////////////////
    272272void 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  
    6969 private:
    7070  void read(QTextStream* stream);
    71   void writeEphV2(const t_eph* eph);
    72   void writeEphV3(const t_eph* eph);
    7371
    7472  e_inpOut            _inpOut;
Note: See TracChangeset for help on using the changeset viewer.