Changeset 8397 in ntrip for trunk/BNC/src/bncrinex.cpp


Ignore:
Timestamp:
Jun 28, 2018, 12:47:06 PM (2 years ago)
Author:
stuerze
Message:

some changes to allow 10 Hz observation data generation with correct file names and observation data resampling (RINEX files, feed engine) and harmonization of all 3 applications

File:
1 edited

Legend:

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

    r8354 r8397  
    9090  _userName = _userName.leftJustified(20, ' ', true);
    9191
    92   _samplingRate = settings.value("rnxSampl").toInt();
     92  _samplingRateMult10 = int(settings.value("rnxSampl").toString().split("sec").first().toDouble() * 10.0);
     93
     94  if      (settings.value("rnxSampl").toString() == "0.1 sec") {
     95    _samplingRateStr = "_10Z";
     96  }
     97  else if (settings.value("rnxSampl").toString() == "1 sec") {
     98    _samplingRateStr = "_01S";
     99  }
     100  else if (settings.value("rnxSampl").toString() == "5 sec") {
     101    _samplingRateStr = "_05S";
     102  }
     103  else if (settings.value("rnxSampl").toString() == "10 sec") {
     104    _samplingRateStr = "_10S";
     105  }
     106  else if (settings.value("rnxSampl").toString() == "15 sec") {
     107    _samplingRateStr = "_15S";
     108  }
     109  else if (settings.value("rnxSampl").toString() == "30 sec") {
     110    _samplingRateStr = "_30S";
     111  }
     112  else if (settings.value("rnxSampl").toString() == "60 sec") {
     113    _samplingRateStr = "_01M";
     114  }
    93115
    94116  _writeRinexFileOnlyWithSkl = settings.value("rnxOnlyWithSKL").toBool();
     
    348370      }
    349371    }
    350     int sampl = settings.value("rnxSampl").toString().mid(0,2).toInt();
    351     if (!sampl)
    352       sampl++;
     372
    353373    path += ID4 +
    354374            QString("%1").arg(monNum, 1, 10) +
     
    359379            QString("%1").arg(datTim.date().dayOfYear(), 3, 10, QChar('0')) +
    360380            hlpStr + // HMS_period
    361             QString("_%1S").arg(sampl, 2, 10, QChar('0')) + // sampling rate
     381            QString("%1").arg(_samplingRateStr) + // sampling rate
    362382            "_MO" + // mixed OBS
    363383            distStr +
Note: See TracChangeset for help on using the changeset viewer.