Changeset 7179 in ntrip for trunk/BNC/src/bnccore.cpp


Ignore:
Timestamp:
Aug 11, 2015, 3:46:18 PM (9 years ago)
Author:
stuerze
Message:

RINEX v3 filenames can now be formed optionally during RINEX file generation from RTCM observation and navigation streams

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bnccore.cpp

    r7026 r7179  
    125125  qRegisterMetaType<QList<t_satPhaseBias> > ("QList<t_satPhaseBias>");
    126126  qRegisterMetaType<t_vTec>                 ("t_vTec");
    127 
    128127}
    129128
     
    291290    QDateTime datTim = currentDateAndTimeGPS();
    292291
    293     QString ephFileNameGPS = _ephPath + "BRDC" +
    294                QString("%1").arg(datTim.date().dayOfYear(), 3, 10, QChar('0'));
     292    QString ephFileNameGPS = _ephPath + "BRDC";
     293
     294    bool ephV3filenames = settings.value("ephV3filenames").toBool();
    295295
    296296    QString hlpStr = bncRinex::nextEpochStr(datTim,
    297                          settings.value("ephIntr").toString());
     297                         settings.value("ephIntr").toString(), ephV3filenames);
    298298
    299299    if (_rinexVers == 3) {
    300       ephFileNameGPS += hlpStr + datTim.toString(".yyP");
    301     }
    302     else {
    303       ephFileNameGPS += hlpStr + datTim.toString(".yyN");
     300      if (ephV3filenames) {
     301        QString country = "WLD";
     302        QString monNum = "0";
     303        QString recNum = "0";
     304        ephFileNameGPS += QString("%1").arg(monNum, 1, 10) +
     305                          QString("%1").arg(recNum, 1, 10) +
     306                          country +
     307                          "_S_" +     // stream
     308                          QString("%1").arg(datTim.date().year()) +
     309                          QString("%1").arg(datTim.date().dayOfYear(), 3, 10, QChar('0')) +
     310                          hlpStr +   // HMS_period
     311                          "_MN.rnx"; // mixed BRDC
     312      }
     313      else { // RNX v3 with old filenames
     314        ephFileNameGPS +=  QString("%1").arg(datTim.date().dayOfYear(), 3, 10, QChar('0')) +
     315                           hlpStr + datTim.toString(".yyP");
     316      }
     317    }
     318    else { // RNX v2.11
     319      ephFileNameGPS += QString("%1").arg(datTim.date().dayOfYear(), 3, 10, QChar('0')) +
     320                        hlpStr + datTim.toString(".yyN");
    304321    }
    305322
Note: See TracChangeset for help on using the changeset viewer.