Changeset 860 in ntrip for trunk/BNS/bnssp3.cpp


Ignore:
Timestamp:
Apr 26, 2008, 11:31:00 AM (14 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bnssp3.cpp

    r859 r860  
    7979////////////////////////////////////////////////////////////////////////////
    8080void bnsSP3::writeHeader(const QDateTime& datTim) {
    81   _out << "#cP2007  7  1  0  0  0.00000000      96 ORBIT IGS05 HLM  IGS"
    82        << "## 1434      0.00000000   900.00000000 54282 0.0000000000000"
     81
     82  int    GPSWeek;
     83  double GPSWeeks;
     84  GPSweekFromDateAndTime(datTim, GPSWeek, GPSWeeks);
     85
     86  double sec = fmod(GPSWeeks, 60.0);
     87
     88  int    mjd;
     89  double dayfrac;
     90  mjdFromDateAndTime(datTim, mjd, dayfrac);
     91
     92  _out << "#aP" << datTim.toString("yyyy MM dd hh mm").toAscii().data()
     93       << setw(12) << setprecision(8) << sec
     94       << "      96 ORBIT IGS05 HLM  IGS" << endl;
     95
     96  _out << "## "
     97       << setw(4)  << GPSWeek
     98       << setw(16) << setprecision(8) << GPSWeeks
     99       << setw(15) << setprecision(8) << double(_sampl)
     100       << setw(6)  << mjd
     101       << setw(16) << setprecision(13) << dayfrac << endl;
    83102
    84103  _out << "+   32   G01G02G03G04G05G06G07G08G09G10G11G12G13G14G15G16G17\n"
Note: See TracChangeset for help on using the changeset viewer.