亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? timetable.cpp

?? gpstk1.5的有關內容 對于剛剛接觸gps有一定的幫助 很有用的啊
?? CPP
?? 第 1 頁 / 共 3 頁
字號:
   if(!ttifs) {      cerr << "Failed to open input time table file " << CI.TimeTableFile << endl;      return -3;   }   //REF site site sat week use_first use_last data_start data_end   do {      getline(ttifs,line);      StringUtils::stripTrailing(line,'\r');      if(ttifs.eof() || !ttifs.good()) break;      if(line.size() <= 0) continue;                              // skip blank lines      if(line[0] == '#') continue;                                // skip comments      if(StringUtils::numWords(line) < 9) continue; // TD msg?    // skip bad lines      if(StringUtils::words(line,0,1) != string("REF")) continue; // only REF lines      TTSegment ts;      ts.site1 = StringUtils::words(line,1,1);      ts.site2 = StringUtils::words(line,2,1);      ts.sat.fromString(StringUtils::words(line,3,1));      week = StringUtils::asInt(StringUtils::words(line,4,1));      sow = StringUtils::asInt(StringUtils::words(line,5,1));      tt.setGPSfullweek(week,sow);           // TD handle week rollover      ts.first = int(0.5+(tt-FirstEpoch)/CI.DataInterval);      sow = StringUtils::asInt(StringUtils::words(line,6,1));      tt.setGPSfullweek(week,sow);      ts.last = int(0.5+(tt-FirstEpoch)/CI.DataInterval);      sow = StringUtils::asInt(StringUtils::words(line,7,1));      tt.setGPSfullweek(week,sow);      ts.start = int(0.5+(tt-FirstEpoch)/CI.DataInterval);      sow = StringUtils::asInt(StringUtils::words(line,8,1));      tt.setGPSfullweek(week,sow);      ts.end = int(0.5+(tt-FirstEpoch)/CI.DataInterval);      //ts.minelev = ts.maxelev = 0.0;      ts.length = ts.end - ts.start + 1;      ts.findElev();      TimeTable.push_back(ts);   } while(1);   // close the output timetable file   ttifs.close();   oflog << "Read time table from file " << CI.TimeTableFile << endl;   return 0;}catch(Exception& e) { GPSTK_RETHROW(e); }catch(exception& e) { Exception E("std except: "+string(e.what())); GPSTK_THROW(E); }catch(...) { Exception e("Unknown exception"); GPSTK_THROW(e); }}//------------------------------------------------------------------------------------int ComputeBaselineTimeTable(const string& bl){try {   int i,j;   map<SDid,SDData>::const_iterator it;   list<TTSegment> SegList;   SDmap.clear();   i = TTComputeSingleDifferences(bl,40.0);   if(i) return i;   // now compute the timetable based on SDmap   for(it=SDmap.begin(); it != SDmap.end(); it++) {      TTSegment ts;      ts.site1 = it->first.site1;      ts.site2 = it->first.site2;      ts.sat = it->first.sat;      ts.start = it->second.count[0];      ts.minelev = ts.maxelev = 0.0;      for(i=0; i<it->second.count.size()-1; i++) {         j = it->second.count.at(i+1) - it->second.count.at(i);         if(j > 1) {            TTSegment tts;            tts = ts;            tts.end = it->second.count.at(i);            tts.length = tts.end - tts.start + 1;            tts.findElev();            SegList.push_back(tts);            ts.start = it->second.count.at(i+1);         }      }      ts.end = it->second.count[it->second.count.size()-1];      ts.length = ts.end - ts.start + 1;      ts.findElev();      SegList.push_back(ts);   }      if(SegList.size() == 0) return -2;   // figure out the time table from the list of segments   list<TTSegment> TTable;   i = TimeTableAlgorithm(SegList, TTable);   if(i) return i;   // add this timetable to the master timetable.   list<TTSegment>::iterator ttit;   for(ttit=TTable.begin(); ttit != TTable.end(); ttit++)      TimeTable.push_back(*ttit);   return 0;}catch(Exception& e) { GPSTK_RETHROW(e); }catch(exception& e) { Exception E("std except: "+string(e.what())); GPSTK_THROW(E); }catch(...) { Exception e("Unknown exception"); GPSTK_THROW(e); }}//------------------------------------------------------------------------------------int TTComputeSingleDifferences(const string& bl, const double ElevLimit){try {   int i,j,k;   double elevi,elevj;   GSatID sat;   map<GSatID,RawData>::const_iterator it,jt;   map<SDid,SDData>::const_iterator kt;   ofstream rawofs;   format f62(6,2),f133(13,3);   // loop over buffered raw data of sats common to both   string est=StringUtils::word(bl,0,'-');   string fix=StringUtils::word(bl,1,'-');   for(it=Stations[est].RawDataBuffers.begin();       it != Stations[est].RawDataBuffers.end(); it++) {      // consider each satellite      sat = it->first;      if(CI.Verbose) oflog << "Single difference " << est << " " << fix << " " << sat;      // is sat also found at fixed site?      jt = Stations[fix].RawDataBuffers.find(sat);      if(jt == Stations[fix].RawDataBuffers.end()) {         if(CI.Verbose) oflog << " not found on both sites" << endl;         continue;      }      if(CI.Verbose) oflog << " (raw buffers size: " << it->second.count.size()         << " " << jt->second.count.size() << ")";      // compute continuous segments of SD data      // sdd.count is the intersection of the two count vectors      SDid sdid(fix,est,sat);      SDData sdd;      sdd.elevmin = 100.0;      sdd.elevmax = -1.0;      i = j = 0;      do {         if(it->second.count[i] == jt->second.count[j]) {            elevi = RotatedAntennaElevation(it->second.elev[i],it->second.az[i]);            elevj = RotatedAntennaElevation(jt->second.elev[j],jt->second.az[j]);            if(elevi >= ElevLimit && elevj >= ElevLimit) {               sdd.count.push_back(it->second.count[i]);               if(elevi < sdd.elevmin) sdd.elevmin = elevi;               if(elevi > sdd.elevmax) sdd.elevmax = elevi;            }            i++;            j++;         }         else if(it->second.count[i] < jt->second.count[j]) {            i++;         }         else {            j++;         }      } while( i < it->second.count.size() &&               j < jt->second.count.size() );      // TD ?      if(sdd.count.size() < 10) {         if(CI.Verbose) oflog << " size is too small ("            << sdd.count.size() << ")" << endl;         continue;      }      // save it in the map      SDmap[sdid] = sdd;      if(CI.Verbose) oflog << endl;   }  // end loop over raw buffered data common to both sites   // write out a summary of single differences   oflog << "Single differences summary :" << endl;   for(k=1,kt=SDmap.begin(); kt != SDmap.end(); kt++,k++) {      oflog << " " << setw(2) << k << " " << kt->first         << " " << setw(5) << kt->second.count.size()         << " " << setw(5) << kt->second.count.at(0)         << " - " << setw(5) << kt->second.count.at(kt->second.count.size()-1);         // elevation      oflog << " elev: "         << fixed << setw(4) << setprecision(1) << kt->second.elevmin         << " - " << setw(4) << setprecision(1) << kt->second.elevmax;         // gaps - (count : number of pts)      for(i=0; i<kt->second.count.size()-1; i++) {         j = kt->second.count.at(i+1) - kt->second.count.at(i);         if(j > 1)            oflog << " (" << kt->second.count.at(i)+1 << ":" << j-1 << ")";      }      oflog << endl;   }   if(SDmap.size() == 0) {      oflog << "Returning error code -1 from TTComputeSingleDifferences()" << endl;      return -1;   }   return 0;}catch(Exception& e) { GPSTK_RETHROW(e); }catch(exception& e) { Exception E("std except: "+string(e.what())); GPSTK_THROW(E); }catch(...) { Exception e("Unknown exception"); GPSTK_THROW(e); }}//------------------------------------------------------------------------------------// preprocess the segment list - get first and last countsint TimeTableAlgorithm(list<TTSegment>& TTS, list<TTSegment>& TTab){try {   bool keep;   int i,beg,end;   int begcount,endcount;   list<TTSegment>::iterator ttit,ttjt;   typedef pair<int,int> seg;   list<seg> Segs;   list<seg>::iterator lit,ljt;   // 0 sort list in order of decreasing metric()   // 0.5 delete very small segments   // 0.6 run through the list, finding the smallest begin, and largest end, counts;   // call these the begin and end counts.   // 1. run through the sorted list, starting at largest metric(), and pick out   // first segments which have the begin and/or end counts; add these to TTab   // and erase from TTS.   // 2. run through TTS again, starting at the largest metric(); if a segment   // includes some counts that have not been covered before, than add this   // to TTab and erase from TTS. Quit when either the entire range from   // begcount to endcount is covered, a given minimum metric() is reached,   // or when the end of TTS is reached.   // 3. if gaps remain in the coverage, these are real gaps in the data and   // the estimation will have to reset.   // 4. sort TTab in increasing order. Run through TTab looking for   // segments which can be removed without generating gaps; remove these.   // 0. sort in reverse order (largest metric() first)   // [ list has its own sort sort(TTS.rbegin(),TTS.rend()); ]   TTS.sort(decreasingMetricSort);   // 0.5 delete very small segments and output the sorted list   // 0.6 find begcount and endcount (after deletion)   begcount = endcount = -1;   oflog << "Here is the sorted list of segments:" << endl;   for(i=1,ttit=TTS.begin(); ttit != TTS.end(); i++) {      oflog << " " << setw(4) << i << *ttit;      if(ttit->length < 10) {         oflog << " -- delete this segment: too small";         ttit = TTS.erase(ttit); // ttit now points to next seg      }      else {         if(begcount < 0 || ttit->start < begcount)            begcount = ttit->start;         if(endcount < 0 || ttit->end > endcount)            endcount = ttit->end;         ttit++;      }      oflog << endl;   }   oflog << "End the sorted list; limits : " << begcount << " - " << endcount << endl;   for(ttit=TTS.begin(); ttit != TTS.end(); ttit++) {      if(ttit->length < 10) {      }   }      // 1.find the begin point   for(ttit=TTS.begin(); ttit != TTS.end(); ttit++) {      if(ttit->start == begcount) {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久综合资源网| 成人黄色在线网站| 日韩电影免费一区| 另类小说图片综合网| 亚洲免费观看视频| 欧美午夜影院一区| 国产精品福利一区二区三区| 国产在线不卡视频| 欧美日韩夫妻久久| 夜夜精品视频一区二区| 丁香另类激情小说| 亚洲精品一线二线三线无人区| 国产麻豆91精品| 成人免费在线视频| 午夜精品久久久久久久| 九色综合狠狠综合久久| 免费观看在线综合色| 91视频91自| 欧美大片一区二区三区| 亚洲男同1069视频| 成人福利视频网站| 精品久久久网站| 一区二区三区在线看| 毛片不卡一区二区| 9191精品国产综合久久久久久| 中文字幕成人av| 久久精品国产网站| 精品久久久网站| 日韩高清在线不卡| 91片在线免费观看| 国产精品免费久久久久| 国产精品一卡二卡| 欧美电视剧在线看免费| 日本欧美在线观看| 色偷偷一区二区三区| 自拍偷自拍亚洲精品播放| 日本亚洲一区二区| 欧美日韩视频在线第一区 | 日韩va亚洲va欧美va久久| 欧美性大战久久久| ...xxx性欧美| 成人福利视频网站| 综合分类小说区另类春色亚洲小说欧美| 强制捆绑调教一区二区| 欧美精品v国产精品v日韩精品| 亚洲欧美一区二区三区孕妇| 99久久精品情趣| 国产精品网站在线观看| 成人精品一区二区三区中文字幕| 欧美国产综合一区二区| 国产一区二区在线观看免费| 精品国产一区久久| 激情伊人五月天久久综合| 久久久久久久一区| 国产一区二区不卡在线| 欧美性猛交xxxxxxxx| 日韩激情av在线| 欧美精品久久久久久久多人混战| 午夜精品福利一区二区三区蜜桃| 日韩三级精品电影久久久| 日韩中文字幕麻豆| 日韩美一区二区三区| 国产真实乱子伦精品视频| 精品国产123| 国产精品77777| 一区二区三区在线视频免费| 国内成人免费视频| 国产精品萝li| 56国语精品自产拍在线观看| 久草中文综合在线| 国产精品午夜免费| 91麻豆福利精品推荐| 亚洲制服丝袜av| 3d动漫精品啪啪1区2区免费| 国产一区二区毛片| 国产精品久久久久久户外露出| 日本精品免费观看高清观看| 婷婷开心久久网| 久久久综合精品| 色天使色偷偷av一区二区| 九九热在线视频观看这里只有精品| 国产日韩视频一区二区三区| 91蜜桃免费观看视频| 激情丁香综合五月| 亚洲欧美激情插| 精品国产网站在线观看| 色视频一区二区| 国产麻豆成人传媒免费观看| 亚洲精品老司机| 国产精品视频第一区| 日韩欧美国产综合| 欧美日本在线视频| 成人黄色网址在线观看| 久久国产精品无码网站| 亚洲丝袜另类动漫二区| 欧美成人免费网站| 9191成人精品久久| 99精品视频一区| 精品一区在线看| 国产精品全国免费观看高清 | 3751色影院一区二区三区| 国产·精品毛片| 婷婷开心激情综合| 亚洲欧洲无码一区二区三区| 久久美女艺术照精彩视频福利播放| 在线中文字幕一区| 国产成人在线影院| 国产一区二区三区最好精华液| 亚瑟在线精品视频| 亚洲人吸女人奶水| 美女看a上一区| 午夜精品一区二区三区免费视频 | 欧美精品一区二区三区在线| 欧美一区二区在线免费观看| 欧美日韩免费视频| 欧美亚洲一区三区| 欧美自拍偷拍午夜视频| 欧美视频在线观看一区二区| 欧美在线|欧美| 欧美亚洲一区二区三区四区| 欧美丝袜自拍制服另类| 欧美无砖专区一中文字| 欧美日产国产精品| 欧美疯狂做受xxxx富婆| 在线观看日韩av先锋影音电影院| 成人免费观看男女羞羞视频| 国产成人h网站| 国产精品123| 国产精品白丝av| 久久99精品国产.久久久久久| 加勒比av一区二区| 五月激情丁香一区二区三区| 青青草91视频| 久久精品国产澳门| 国内精品国产成人国产三级粉色 | 亚洲国产cao| 亚洲国产日韩综合久久精品| 亚洲激情六月丁香| 亚洲在线视频网站| 水野朝阳av一区二区三区| 毛片av中文字幕一区二区| 一区二区三区免费| 亚洲国产日韩在线一区模特 | 中文字幕综合网| 亚洲精品自拍动漫在线| 亚洲国产sm捆绑调教视频 | 午夜影视日本亚洲欧洲精品| 天天综合色天天| 蜜桃av噜噜一区| 老司机午夜精品| 国产一区二区女| 蜜桃在线一区二区三区| 国产成人午夜精品影院观看视频| 国产91对白在线观看九色| 91麻豆.com| 欧美日韩免费在线视频| 久久综合精品国产一区二区三区| 久久精品免视看| 欧美不卡123| 国产精品国产三级国产普通话三级| 亚洲激情自拍偷拍| 蜜臀av性久久久久蜜臀av麻豆| 国产在线国偷精品免费看| 加勒比av一区二区| 一本色道久久综合亚洲91| 欧美一区二区网站| 久久久噜噜噜久久人人看| 国产精品入口麻豆九色| 亚洲第一福利一区| 国产高清精品网站| 91国产福利在线| 欧美成人a∨高清免费观看| 国产精品久久久久久久久搜平片| 美美哒免费高清在线观看视频一区二区 | 91视频精品在这里| 欧美一区二区二区| 精品欧美乱码久久久久久1区2区| 久久免费看少妇高潮| 亚洲欧洲日韩av| 日本美女视频一区二区| 成人深夜在线观看| 欧美日韩色一区| 亚洲欧洲另类国产综合| 美女被吸乳得到大胸91| 色婷婷亚洲一区二区三区| 精品国产一区二区亚洲人成毛片 | 成人午夜激情视频| 精品99999| 免费一级片91| 欧美影院一区二区| 亚洲蜜臀av乱码久久精品| 狠狠v欧美v日韩v亚洲ⅴ| 欧美一区二区三区电影| 亚洲综合丝袜美腿| 在线免费观看成人短视频| 欧美精品一区二区三区在线| 蜜桃视频一区二区三区在线观看| 欧美丝袜第三区| 亚洲视频在线观看三级| 色综合天天性综合|