Ignore:
Timestamp:
May 7, 2024, 10:36:55 AM (5 months ago)
Author:
stuerze
Message:

BNC writes combination results now in a separate output file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/combination/bnccomb.cpp

    r10477 r10479  
    313313  }
    314314
     315  // Logfile
     316  // -------
     317  QString intr = "1 day";
     318  QString logFileCmb = settings.value("cmbLogpath").toString();
     319  int l = logFileCmb.length();
     320  if (logFileCmb.isEmpty()) {
     321    _logFile = 0;
     322  }
     323  else {
     324    if (l && logFileCmb[l-1] != QDir::separator() ) {
     325      logFileCmb += QDir::separator();
     326    }
     327
     328    logFileCmb = logFileCmb + "COMB00BNC" + "${V3PROD}" + ".CMB";
     329
     330    _logFile = new bncoutf(logFileCmb, intr, _cmbSampl);
     331  }
     332
    315333  _newCorr = 0;
    316334}
     
    345363  delete _antex;
    346364  delete _bsx;
     365  delete _logFile;
    347366
    348367  QMapIterator<char, unsigned> itSys(_cmbSysPrn);
     
    518537      if ((newClk._time >= currentTime) ||       // future time stamp
    519538          (currentTime - newClk._time) > 60.0) { // very old data sets
    520   #ifdef BNC_DEBUG_CMB
    521539        emit newMessage("bncComb: future or very old data sets: " + acName.toLatin1() + " " + newClk._prn.toString().c_str() +
    522540            QString(" %1 ").arg(newClk._time.timestr().c_str()).toLatin1() + "vs. current time" +
    523541            QString(" %1 ").arg(currentTime.timestr().c_str()).toLatin1(), true);
    524   #endif
    525542        continue;
    526543      }
     
    530547    // --------------------
    531548    if (_resTime.valid() && newClk._time <= _resTime) {
    532 #ifdef BNC_DEBUG_CMB
    533549      emit newMessage("bncComb: old correction: " + acName.toLatin1() + " " + newClk._prn.toString().c_str() +
    534550          QString(" %1 ").arg(newClk._time.timestr().c_str()).toLatin1() + "vs. last processing Epoch" +
    535551          QString(" %1 ").arg(_resTime.timestr().c_str()).toLatin1(), true);
    536 #endif
    537552      continue;
    538553    }
     
    711726    t_eph* ephPrev = _ephUser.ephPrev(prn);
    712727    if (ephLast == 0) {
    713 #ifdef BNC_DEBUG_CMB
    714728      emit newMessage("bncComb: eph not found for "  + prn.mid(0,3).toLatin1(), true);
    715 #endif
    716729      delete _newCorr; _newCorr = 0;
    717730      continue;
     
    721734             ephLast->checkState() == t_eph::outdated ||
    722735             ephLast->checkState() == t_eph::unhealthy) {
    723 #ifdef BNC_DEBUG_CMB
    724736      emit newMessage("bncComb: ephLast not ok (checkState: " +  ephLast->checkStateToString().toLatin1() + ") for "  + prn.mid(0,3).toLatin1(), true);
    725 #endif
    726737      delete _newCorr; _newCorr = 0;
    727738      continue;
     
    739750      }
    740751      else {
    741 #ifdef BNC_DEBUG_CMB
    742752        emit newMessage("bncComb: eph not found for "  + prn.mid(0,3).toLatin1() +
    743753                        QString(" with IOD %1").arg(_newCorr->_iod).toLatin1(), true);
    744 #endif
    745754        delete _newCorr; _newCorr = 0;
    746755        continue;
     
    815824    processSystem(epoTime, sys, out);
    816825    _buffer.remove(sys);
    817     emit newMessage(_log, false);
     826    //emit newMessage(_log, false);
     827    if (_logFile) {
     828      _logFile->write(epoTime.gpsw(),epoTime.gpssec(), QString(_log));
     829    }
    818830  }
    819831}
Note: See TracChangeset for help on using the changeset viewer.