Changeset 6493 in ntrip


Ignore:
Timestamp:
Dec 28, 2014, 6:11:53 PM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/satObs.cpp

    r6482 r6493  
    121121////////////////////////////////////////////////////////////////////////////
    122122void t_satPhaseBias::writeEpoch(std::ostream* out, const QList<t_satPhaseBias>& biasList) {
    123 
     123  if (!out || biasList.size() == 0) {
     124    return;
     125  }
     126  out->setf(ios::fixed);
     127  bncTime epoTime;
     128  QListIterator<t_satPhaseBias> it(biasList);
     129  while (it.hasNext()) {
     130    const t_satPhaseBias& satPhaseBias = it.next();
     131    if (!epoTime.valid()) {
     132      epoTime = satPhaseBias._time;
     133      *out << "> PHASE_BIAS " << epoTime.datestr(' ') << ' ' << epoTime.timestr(1,' ') << "    "
     134           << biasList.size() << ' ' << satPhaseBias._staID << endl;
     135    }
     136    *out << satPhaseBias._prn.toString();
     137    for (unsigned ii = 0; ii < satPhaseBias._bias.size(); ii++) {
     138      const t_frqPhaseBias& frqPhaseBias = satPhaseBias._bias[ii];
     139      *out << "   " << frqPhaseBias._rnxType2ch << ' '
     140           << setw(10) << setprecision(4) << frqPhaseBias._value;
     141    }
     142    *out << endl;
     143  }
     144  out->flush();
    124145}
    125146 
     
    132153////////////////////////////////////////////////////////////////////////////
    133154void t_vTec::write(std::ostream* out, const t_vTec& vTec) {
     155  if (!out || vTec._layers.size() == 0) {
     156    return;
     157  }
     158  out->setf(ios::fixed);
     159  bncTime epoTime = vTec._time;
     160  *out << "> VTEC " << epoTime.datestr(' ') << ' ' << epoTime.timestr(1,' ') << "    "
     161       << vTec._layers.size() << ' ' << vTec._staID << endl;
    134162
     163  out->flush();
    135164}
    136165
Note: See TracChangeset for help on using the changeset viewer.