Changeset 4541 in ntrip


Ignore:
Timestamp:
Aug 21, 2012, 6:03:14 PM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/rinex
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/rinex/reqcanalyze.cpp

    r4525 r4541  
    195195  // Loop over all Epochs
    196196  // --------------------
    197   while ( (_currEpo = obsFile->nextEpoch()) != 0) {
    198 
    199     // Loop over all satellites
    200     // ------------------------
    201     for (unsigned iObs = 0; iObs < _currEpo->rnxSat.size(); iObs++) {
    202       const t_rnxObsFile::t_rnxSat& rnxSat = _currEpo->rnxSat[iObs];
    203       t_obs obs;
    204       t_postProcessing::setObsFromRnx(obsFile, _currEpo, rnxSat, obs);
    205 
    206       if (obs.satSys == 'R') {
    207         continue; // TODO: set channel number
    208       }
    209 
    210       QString prn = QString("%1%2").arg(obs.satSys)
    211                                    .arg(obs.satNum, 2, 10, QChar('0'));
    212 
    213       t_satStat& satStat = _satStat[prn];
    214 
    215       satStat.addObs(obs);
    216     }
    217 
    218   } // while (_currEpo)
     197  try {
     198    while ( (_currEpo = obsFile->nextEpoch()) != 0) {
     199 
     200      // Loop over all satellites
     201      // ------------------------
     202      for (unsigned iObs = 0; iObs < _currEpo->rnxSat.size(); iObs++) {
     203        const t_rnxObsFile::t_rnxSat& rnxSat = _currEpo->rnxSat[iObs];
     204        t_obs obs;
     205        t_postProcessing::setObsFromRnx(obsFile, _currEpo, rnxSat, obs);
     206 
     207        if (obs.satSys == 'R') {
     208          continue; // TODO: set channel number
     209        }
     210 
     211        QString prn = QString("%1%2").arg(obs.satSys)
     212                                     .arg(obs.satNum, 2, 10, QChar('0'));
     213 
     214        t_satStat& satStat = _satStat[prn];
     215 
     216        satStat.addObs(obs);
     217      }
     218 
     219    } // while (_currEpo)
     220  }
     221  catch (QString str) {
     222    if (_log) {
     223      *_log << "Exception " << str << endl;
     224    }
     225    else {
     226      qDebug() << str;   
     227    }
     228    return;
     229  }
    219230
    220231  // Analyze the Multipath
  • trunk/BNC/src/rinex/reqcedit.cpp

    r4525 r4541  
    254254    }
    255255    t_rnxObsFile::t_rnxEpo* epo = 0;
    256     while ( (epo = obsFile->nextEpoch()) != 0) {
    257       if (_begTime.valid() && epo->tt < _begTime) {
    258         continue;
    259       }
    260       if (_endTime.valid() && epo->tt > _endTime) {
    261         break;
    262       }
    263    
    264       if (_samplingRate == 0 ||
    265           fmod(round(epo->tt.gpssec()), _samplingRate) == 0) {
    266         applyLLI(obsFile, epo);
    267         outObsFile.writeEpoch(epo);
     256    try {
     257      while ( (epo = obsFile->nextEpoch()) != 0) {
     258        if (_begTime.valid() && epo->tt < _begTime) {
     259          continue;
     260        }
     261        if (_endTime.valid() && epo->tt > _endTime) {
     262          break;
     263        }
     264     
     265        if (_samplingRate == 0 ||
     266            fmod(round(epo->tt.gpssec()), _samplingRate) == 0) {
     267          applyLLI(obsFile, epo);
     268          outObsFile.writeEpoch(epo);
     269        }
     270        else {
     271          rememberLLI(obsFile, epo);
     272        }
     273      }
     274    }
     275    catch (QString str) {
     276      if (_log) {
     277        *_log << "Exception " << str << endl;
    268278      }
    269279      else {
    270         rememberLLI(obsFile, epo);
    271       }
     280        qDebug() << str;   
     281      }
     282      return;
    272283    }
    273284  }
Note: See TracChangeset for help on using the changeset viewer.