Changeset 4701 in ntrip


Ignore:
Timestamp:
Sep 9, 2012, 6:40:12 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

    r4700 r4701  
    208208    *_log << "\nAnalyze File\n"
    209209          <<   "------------\n"
    210           << "File:        " << obsFile->fileName().toAscii().data() << endl;
     210          << "File:            " << obsFile->fileName().toAscii().data() << endl;
    211211  }
    212212
     
    255255          }
    256256          if (newObs->_slipL1 && newObs->_slipL2) {
    257             _obsStat._prnStat[prn]._numSlips += 1;
     257            _obsStat._prnStat[prn]._numSlipsFlagged += 1;
    258258          }
    259259        }
     
    570570        slipL1 = true;
    571571        slipL2 = true;
    572         _obsStat._prnStat[prn]._numSlips += 1;
     572        _obsStat._prnStat[prn]._numSlipsFound += 1;
    573573      }
    574574      else {
     
    717717  }
    718718
    719   *_log << "Marker name: " << _obsStat._markerName   << endl
    720         << "Receiver:    " << _obsStat._receiverType << endl
    721         << "Antenna:     " << _obsStat._antennaName  << endl
    722         << "Start time:  " << _obsStat._startTime.datestr().c_str() << ' '
    723                            << _obsStat._startTime.timestr().c_str() << endl
    724         << "End time:    " << _obsStat._endTime.datestr().c_str() << ' '
    725                            << _obsStat._endTime.timestr().c_str() << endl
    726         << "Interval:    " << _obsStat._interval << endl
    727         << "# Sat.:      " << _obsStat._prnStat.size() << endl;
    728 
    729   int numObs   = 0;
    730   int numSlips = 0;
     719  *_log << "Marker name:     " << _obsStat._markerName   << endl
     720        << "Receiver:        " << _obsStat._receiverType << endl
     721        << "Antenna:         " << _obsStat._antennaName  << endl
     722        << "Start time:      " << _obsStat._startTime.datestr().c_str() << ' '
     723                               << _obsStat._startTime.timestr().c_str() << endl
     724        << "End time:        " << _obsStat._endTime.datestr().c_str() << ' '
     725                               << _obsStat._endTime.timestr().c_str() << endl
     726        << "Interval:        " << _obsStat._interval << endl
     727        << "# Sat.:          " << _obsStat._prnStat.size() << endl;
     728
     729  int numObs          = 0;
     730  int numSlipsFlagged = 0;
     731  int numSlipsFound   = 0;
    731732  QMapIterator<QString, t_prnStat> it(_obsStat._prnStat);
    732733  while (it.hasNext()) {
    733734    it.next();
    734735    const t_prnStat& prnStat = it.value();
    735     numObs   += prnStat._numObs;
    736     numSlips += prnStat._numSlips;
    737   }
    738   *_log << "# Obs.:      " << numObs   << endl
    739         << "# Slips:     " << numSlips << endl;
     736    numObs          += prnStat._numObs;
     737    numSlipsFlagged += prnStat._numSlipsFlagged;
     738    numSlipsFound   += prnStat._numSlipsFound;
     739  }
     740  *_log << "# Obs.:          " << numObs          << endl
     741        << "# Slips (file):  " << numSlipsFlagged << endl
     742        << "# Slips (found): " << numSlipsFound   << endl;
    740743
    741744  for (int kk = 1; kk <= 4; kk++) {
     
    744747    if      (kk == 1) {
    745748      data = dataMP1;
    746       text = "Mean MP1:    ";
     749      text = "Mean MP1:        ";
    747750    }
    748751    else if (kk == 2) {
    749752      data = dataMP2;
    750       text = "Mean MP2:    ";
     753      text = "Mean MP2:        ";
    751754    }
    752755    else if (kk == 3) {
    753756      data = dataSNR1;
    754       text = "Mean SNR1:   ";
     757      text = "Mean SNR1:       ";
    755758    }
    756759    else if (kk == 4) {
    757760      data = dataSNR2;
    758       text = "Mean SNR2:   ";
     761      text = "Mean SNR2:       ";
    759762    }
    760763    double mean = 0.0;
  • trunk/BNC/src/rinex/reqcanalyze.h

    r4696 r4701  
    4949 public:
    5050  t_prnStat() {
    51     _numObs   = 0;
    52     _numSlips = 0;
    53     _numGaps  = 0;
     51    _numObs          = 0;
     52    _numSlipsFlagged = 0;
     53    _numSlipsFound   = 0;
     54    _numGaps         = 0;
    5455  }
    5556  int _numObs;
    56   int _numSlips;
     57  int _numSlipsFlagged;
     58  int _numSlipsFound;
    5759  int _numGaps;
    5860};
Note: See TracChangeset for help on using the changeset viewer.