- Timestamp:
- Nov 1, 2006, 12:03:08 PM (18 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncrinex.cpp
r266 r267 148 148 nextDate = datTim.date().addDays(1); 149 149 } 150 QTime nextTime2 = nextTime.addMSecs(-100); 151 if (nextTime2 > nextTime) { 152 nextDate = nextDate.addDays(-1); 153 } 154 _nextCloseEpoch = QDateTime(nextDate, nextTime2); 150 _nextCloseEpoch = QDateTime(nextDate, nextTime); 155 151 156 152 QString ID4 = _statID.left(4); … … 181 177 // Write RINEX Header 182 178 //////////////////////////////////////////////////////////////////////////// 183 void bncRinex::writeHeader(const QDateTime& datTim) { 179 void bncRinex::writeHeader(const QDateTime& datTim, 180 const QDateTime& datTimNom) { 184 181 185 182 // Open the Output File 186 183 // -------------------- 187 resolveFileName(datTim );184 resolveFileName(datTimNom); 188 185 189 186 // Append to existing file and return … … 306 303 // ------------- 307 304 Observation* fObs = *dumpList.begin(); 308 QDateTime datTim = dateAndTimeFromGPSweek(fObs->GPSWeek, fObs->GPSWeeks); 305 QDateTime datTim = dateAndTimeFromGPSweek(fObs->GPSWeek, fObs->GPSWeeks); 306 QDateTime datTimNom = dateAndTimeFromGPSweek(fObs->GPSWeek, 307 floor(fObs->GPSWeeks+0.5)); 309 308 310 309 // Close the file 311 310 // -------------- 312 if (_nextCloseEpoch.isValid() && datTim >= _nextCloseEpoch) {311 if (_nextCloseEpoch.isValid() && datTimNom >= _nextCloseEpoch) { 313 312 closeFile(); 314 313 _headerWritten = false; … … 318 317 // ------------------ 319 318 if (!_headerWritten) { 320 writeHeader(datTim );319 writeHeader(datTim, datTimNom); 321 320 } 322 321 -
trunk/BNC/bncrinex.h
r256 r267 22 22 void resolveFileName(const QDateTime& datTim); 23 23 void readSkeleton(); 24 void writeHeader(const QDateTime& datTim );24 void writeHeader(const QDateTime& datTim, const QDateTime& datTimNom); 25 25 void closeFile(); 26 26
Note:
See TracChangeset
for help on using the changeset viewer.