Changeset 4669 in ntrip


Ignore:
Timestamp:
Sep 8, 2012, 6:47:53 PM (10 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/rinex
Files:
3 edited

Legend:

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

    r4668 r4669  
    210210  return curve;
    211211}
    212 
    213 //
    214 //////////////////////////////////////////////////////////////////////////////
    215 void t_availPlot::setNumSat(const QVector<double>& _numSatTim,
    216                             const QVector<double>& _numSat) {
    217   QwtPlotCurve* curve = new QwtPlotCurve("# sat");
    218   curve->setXAxis(QwtPlot::xBottom);
    219   curve->setYAxis(QwtPlot::yRight);
    220   curve->setSamples(_numSatTim, _numSat);
    221   curve->attach(this);
    222 }
  • trunk/BNC/src/rinex/availplot.h

    r4667 r4669  
    1414public:
    1515  t_availPlot(QWidget* parent, QMap<QString, t_availData>* availDataMap);
    16   void setNumSat(const QVector<double>& _numSatTim,
    17                  const QVector<double>& _numSat);
    1816
    1917private:
  • trunk/BNC/src/rinex/reqcanalyze.cpp

    r4668 r4669  
    220220  // --------------------
    221221  try {
    222     int       iEpo = 0;
    223     const int step = int( 30.0 / obsFile->interval());
    224     unsigned  numSat = 0;
    225     _numSat.clear();
    226     _numSatTim.clear();
    227222    while ( (_currEpo = obsFile->nextEpoch()) != 0) {
    228223 
    229       ++iEpo;
    230       if (numSat < _currEpo->rnxSat.size()) {
    231         numSat = _currEpo->rnxSat.size();
    232       }
    233       if ( (iEpo % step) == 0 ) {
    234         if (_numSatTim.size() > 0) {
    235           _numSatTim << _numSatTim.last();
    236           _numSat    << numSat;
    237         }
    238         _numSatTim << _currEpo->tt.mjddec() * 24.0;
    239         _numSat    << numSat;
    240         numSat = 0;
    241       }
    242 
    243224      // Loop over all satellites
    244225      // ------------------------
     
    593574
    594575    t_availPlot* plotA = new t_availPlot(0, &_availDataMap);
    595     plotA->setNumSat(_numSatTim, _numSat);
    596576    plotA->setTitle(title);
    597577
Note: See TracChangeset for help on using the changeset viewer.