Changeset 4675 in ntrip for trunk/BNC/src/rinex/reqcanalyze.cpp
- Timestamp:
- Sep 9, 2012, 10:48:39 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/reqcanalyze.cpp
r4674 r4675 221 221 // -------------------- 222 222 try { 223 unsigned iEpo = 0; 223 224 while ( (_currEpo = obsFile->nextEpoch()) != 0) { 224 225 … … 238 239 239 240 _allObsMap[prn].addObs(obs); 241 242 prepareObsStat(iEpo, obsFile->interval()); 240 243 } 241 244 … … 260 263 261 264 QMutableMapIterator<QString, t_allObs> it(_allObsMap); 262 bool firstPrn = true;263 265 while (it.hasNext()) { 264 266 it.next(); 265 267 QString prn = it.key(); 266 268 preparePlotData(prn, xyz, obsFile->interval(), 267 dataMP1, dataMP2, dataSNR1, dataSNR2, firstPrn); 268 firstPrn = false; 269 dataMP1, dataMP2, dataSNR1, dataSNR2); 269 270 } 270 271 … … 379 380 // 380 381 //////////////////////////////////////////////////////////////////////////// 382 void t_reqcAnalyze::prepareObsStat(unsigned iEpo, double obsInterval) { 383 const int numEpo = int(600.0 / obsInterval); // # epochs in one chunk (10 min) 384 if (iEpo % numEpo == 0) { 385 _obsStat._mjdX24 << _currEpo->tt.mjddec() * 24.0; 386 _obsStat._numSat << _currEpo->rnxSat.size(); 387 } 388 } 389 390 // 391 //////////////////////////////////////////////////////////////////////////// 381 392 void t_reqcAnalyze::preparePlotData(const QString& prn, const ColumnVector& xyz, 382 393 double obsInterval, … … 384 395 QVector<t_polarPoint*>* dataMP2, 385 396 QVector<t_polarPoint*>* dataSNR1, 386 QVector<t_polarPoint*>* dataSNR2, 387 bool firstPrn) { 397 QVector<t_polarPoint*>* dataSNR2) { 388 398 389 399 const int chunkStep = int( 30.0 / obsInterval); // chunk step (30 sec) … … 391 401 392 402 t_allObs& allObs = _allObsMap[prn]; 393 394 if (firstPrn) {395 _obsStat.reset();396 }397 403 398 404 // Loop over all Chunks of Data … … 401 407 chunkStart += chunkStep) { 402 408 403 // Chunk-Spe icific Variables404 // ------------------------ -409 // Chunk-Specific Variables 410 // ------------------------ 405 411 bncTime currTime; 406 412 bncTime prevTime; 407 413 bncTime chunkStartTime; 414 double mjdX24 = 0.0; 408 415 bool availL1 = false; 409 416 bool availL2 = false; … … 433 440 if (ii == 0) { 434 441 chunkStartTime = currTime; 442 mjdX24 = chunkStartTime.mjddec() * 24.0; 435 443 436 444 if (xyz.size()) { … … 457 465 } 458 466 } 459 467 460 468 // Check Interval 461 469 // -------------- … … 518 526 // Availability Plot Data 519 527 // ---------------------- 520 double mjdX24 = chunkStartTime.mjddec() * 24.0;521 528 if (availL1) { 522 529 if (slipL1) {
Note:
See TracChangeset
for help on using the changeset viewer.