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

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

?? timetable.cpp

?? gpstk1.5的有關內容 對于剛剛接觸gps有一定的幫助 很有用的啊
?? CPP
?? 第 1 頁 / 共 3 頁
字號:
#pragma ident "$Id: Timetable.cpp 286 2006-11-08 02:21:51Z ocibu $"//============================================================================////  This file is part of GPSTk, the GPS Toolkit.////  The GPSTk is free software; you can redistribute it and/or modify//  it under the terms of the GNU Lesser General Public License as published//  by the Free Software Foundation; either version 2.1 of the License, or//  any later version.////  The GPSTk is distributed in the hope that it will be useful,//  but WITHOUT ANY WARRANTY; without even the implied warranty of//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the//  GNU Lesser General Public License for more details.////  You should have received a copy of the GNU Lesser General Public//  License along with GPSTk; if not, write to the Free Software Foundation,//  Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA//  //  Copyright 2004, The University of Texas at Austin////============================================================================//============================================================================////This software developed by Applied Research Laboratories at the University of//Texas at Austin, under contract to an agency or agencies within the U.S. //Department of Defense. The U.S. Government retains all rights to use,//duplicate, distribute, disclose, or release this software. ////Pursuant to DoD Directive 523024 //// DISTRIBUTION STATEMENT A: This software has been approved for public //                           release, distribution is unlimited.////=============================================================================/** * @file Timetable.cpp * Compute reference satellites time table for program DDBase. *///------------------------------------------------------------------------------------// TD Timetable.cpp  handle week rollover in TimeTable() and ReadTimeTable()// TD Timetable.cpp  check logic// TD Timetable.cpp  check output messages// TD Timetable.cpp  add several limits as input parameters// TD Timetable.cpp  4. edit TTab, removing segments that do not create gaps//------------------------------------------------------------------------------------// includes// system// GPSTk// Geomatics#include "DDid.hpp"#include "index.hpp"// DDBase#include "DDBase.hpp"//------------------------------------------------------------------------------------double RotatedAntennaElevation(double elevation, double azimuth); // ElevationMask.cpp//------------------------------------------------------------------------------------using namespace std;using namespace gpstk;//------------------------------------------------------------------------------------// Segment structure used in deducing time table// functions implemented in Timetable.cppclass TTSegment {public:   std::string site1,site2;   gpstk::GSatID sat;   int start,end;    // starting and ending counts   int first,last;   // counts to actually use in timetable   int length;       // length (in data points)   double minelev;   // minimum elevation in this segment   double maxelev;   // maximum elevation in this segment   TTSegment(void) : start(-1),length(0),minelev(0.0),maxelev(0.0) {}   double metric(void) const   { return (double(length)/100.0 + 100.0*(minelev+maxelev)/90.0); }   //bool operator<(const TTSegment& right) const   //{ return (metric() < right.metric()); }   //bool operator>(const TTSegment& right) const   //{ return (metric() > right.metric()); }   void findElev(void);   friend ostream& operator<<(ostream& s, const TTSegment& t);   friend bool increasingMetricSort(const TTSegment& left, const TTSegment& right);   friend bool decreasingMetricSort(const TTSegment& left, const TTSegment& right);   friend bool startSort(const TTSegment& left, const TTSegment& right);};//------------------------------------------------------------------------------------// local datalist<TTSegment> TimeTable;    // satellite time tablemap<SDid,SDData> SDmap;       // map of SD data - not full single differences//------------------------------------------------------------------------------------// prototypes -- this module onlyint ReadTimeTable(void);int ComputeBaselineTimeTable(const string& bl);int TTComputeSingleDifferences(const string& bl, const double ElevLimit);int TimeTableAlgorithm(list<TTSegment>& TTS, list<TTSegment>& TTab);bool startSort(const TTSegment& left, const TTSegment& right);bool increasingMetricSort(const TTSegment& left, const TTSegment& right);bool decreasingMetricSort(const TTSegment& left, const TTSegment& right);//------------------------------------------------------------------------------------// Find the entry in the timetable which applies to the baseline given in sdid and// the time tt. Set the satellite in sdid to the reference satellite, and set the// time tt to the time (in the future) when the reference will change again.// return 0 on success, 1 on failure.int QueryTimeTable(SDid& sdid, DayTime& tt){try {      // loop over the timetable, looking for a match : baseline and time   list<TTSegment>::iterator ttit;   for(ttit=TimeTable.begin(); ttit != TimeTable.end(); ttit++) {      if(((ttit->site1 == sdid.site1 && ttit->site2 == sdid.site2) ||          (ttit->site1 == sdid.site2 && ttit->site2 == sdid.site1)   ) &&         FirstEpoch+CI.DataInterval*ttit->first <= tt                  &&         FirstEpoch+CI.DataInterval*ttit->last  >= tt)      {                                                  // success         sdid.sat = ttit->sat;         tt = FirstEpoch+CI.DataInterval*ttit->last;         return 0;      }   }   return 1;      // failure}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); }}    //------------------------------------------------------------------------------------// Find the start and stop counts in the timetable which applies to the given baselineint QueryTimeTable(string baseline, int& beg, int& end){try {   string site1=StringUtils::word(baseline,0,'-');   string site2=StringUtils::word(baseline,1,'-');   beg = end = -1;      // loop over the timetable, looking for a match in baseline   list<TTSegment>::iterator ttit;   for(ttit=TimeTable.begin(); ttit != TimeTable.end(); ttit++) {      if((ttit->site1 == site1 && ttit->site2 == site2) ||         (ttit->site1 == site2 && ttit->site2 == site1)   )      {                                                  // success         if(beg == -1 || ttit->first < beg) beg = ttit->first;         if(end == -1 || ttit->last  > end) end = ttit->last;      }   }   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 Timetable(void){try {   if(CI.Verbose) oflog << "BEGIN Timetable()" << endl;   int ib,iret;   list<TTSegment>::iterator ttit;   if(CI.TimeTableFile.size() > 0) {      iret = ReadTimeTable();   }   else if(CI.RefSat.id != -1) {         // user says use this sat only      // loop over baselines      for(ib=0; ib<Baselines.size(); ib++) {         TTSegment ts;         ts.site1 = StringUtils::word(Baselines[ib],0,'-');         ts.site2 = StringUtils::word(Baselines[ib],1,'-');         ts.sat = CI.RefSat;         ts.start = ts.first = 0;         ts.end = ts.last = maxCount;         ts.minelev = ts.maxelev = 0.0;         ts.length = ts.end - ts.start + 1;         TimeTable.push_back(ts);         iret = 0;      }   }   else {      // loop over baselines      for(ib=0; ib<Baselines.size(); ib++) {         iret = ComputeBaselineTimeTable(Baselines[ib]);         if(iret) break;      }  // end loop over baselines   }   if(iret == 0) {      // write out timetable to log      // REF site site sat week use_first use_last data_start data_end      DayTime tt;      GSatID sat;      oflog << "Here is the time table (" << TimeTable.size() << ")" << endl;      if(CI.Screen)         cout << "Time table (" << TimeTable.size() << "):" << endl;      oflog << "# " << Title << endl;      oflog << "# REF site site sat week use_first use_last data_start data_end\n";      if(CI.Screen)         cout << "# REF site site sat week use_first use_last data_start data_end\n";      for(ttit=TimeTable.begin(); ttit != TimeTable.end(); ttit++) {         oflog << "REF " << ttit->site1 << " " << ttit->site2 << " " << ttit->sat;         if(CI.Screen)            cout << "REF " << ttit->site1 << " " << ttit->site2 << " " << ttit->sat;         tt = FirstEpoch + CI.DataInterval * ttit->first;         oflog << tt.printf(" %4F %10.3g");        // TD week rollover!         if(CI.Screen)            cout << tt.printf(" %4F %10.3g");        // TD week rollover!         tt = FirstEpoch + CI.DataInterval * ttit->last;         oflog << tt.printf(" %10.3g");         if(CI.Screen)            cout << tt.printf(" %10.3g");         tt = FirstEpoch + CI.DataInterval * ttit->start;         oflog << tt.printf(" %10.3g");         if(CI.Screen)            cout << tt.printf(" %10.3g");         tt = FirstEpoch + CI.DataInterval * ttit->end;         oflog << tt.printf(" %10.3g");         if(CI.Screen)            cout << tt.printf(" %10.3g");         // TD? ttit->minelev, ttit->maxelev, ttit->length, ttit->metric()         oflog << " " << fixed << setw(4) << setprecision(1) << ttit->minelev;         if(CI.Screen)            cout << " " << fixed << setw(4) << setprecision(1) << ttit->minelev;         oflog << " " << fixed << setw(4) << setprecision(1) << ttit->maxelev;         if(CI.Screen)            cout << " " << fixed << setw(4) << setprecision(1) << ttit->maxelev;         // write the number of counts for this ref         oflog << " " << setw(5) << ttit->length;         if(CI.Screen)            cout << " " << setw(5) << ttit->length;         oflog << endl;         if(CI.Screen)            cout << endl;         // for next time         sat = ttit->sat;      }      oflog << "End of time table." << endl;      if(CI.Screen)         cout << "End of time table." << endl;   }   return iret;   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); }}   // end Timetable()//------------------------------------------------------------------------------------// Input the time table from a fileint ReadTimeTable(void){try {   int week;   double sow;   string line;   DayTime tt;   // open an input file for all timetables   if(CI.Debug) oflog << "Try to open time table file " << CI.TimeTableFile << endl;   ifstream ttifs(CI.TimeTableFile.c_str());

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品婷婷国产综合久久性色| 5858s免费视频成人| 亚洲成人一区二区在线观看| 26uuu国产电影一区二区| 99re热视频精品| 美日韩黄色大片| 一区二区三区在线免费播放| 精品美女在线播放| 欧美无乱码久久久免费午夜一区 | 久久伊人蜜桃av一区二区| 91在线porny国产在线看| 日本不卡视频在线观看| 亚洲人吸女人奶水| 337p粉嫩大胆色噜噜噜噜亚洲| 欧美色图12p| av高清久久久| 国产成人在线色| 久久国内精品自在自线400部| 有码一区二区三区| 中文在线资源观看网站视频免费不卡| 欧美一区欧美二区| 欧美在线观看你懂的| 99v久久综合狠狠综合久久| 国产精品综合二区| 男女激情视频一区| 午夜成人免费电影| 亚洲成a人片在线观看中文| 亚洲精品国产一区二区三区四区在线| 久久婷婷国产综合国色天香| 欧美日韩国产综合视频在线观看 | 日韩一级免费观看| 欧美日韩国产电影| 欧美日韩精品一区二区三区四区| 91免费视频观看| 99视频在线观看一区三区| 成人福利视频在线看| 国产一区二区免费看| 极品少妇xxxx精品少妇| 理论电影国产精品| 久久国产成人午夜av影院| 青娱乐精品视频在线| 日日欢夜夜爽一区| 日韩一区欧美二区| 日韩成人免费电影| 日本欧美一区二区三区乱码| 青青草一区二区三区| 日本va欧美va精品| 奇米影视7777精品一区二区| 日日骚欧美日韩| 首页亚洲欧美制服丝腿| 日韩高清在线电影| 久久精品国产在热久久| 精品综合免费视频观看| 国内不卡的二区三区中文字幕| 久久99日本精品| 国产福利一区二区| 94-欧美-setu| 色婷婷国产精品久久包臀| 欧美三级中文字幕在线观看| 欧美高清视频在线高清观看mv色露露十八| 欧美日韩国产综合视频在线观看| 欧美精品色综合| 欧美精品一区二区三区四区| 日本一区二区三区dvd视频在线| 中文字幕av免费专区久久| 日韩一区在线免费观看| 亚洲成人1区2区| 久久精品久久精品| 不卡大黄网站免费看| 欧美一a一片一级一片| 欧美大尺度电影在线| 中文字幕乱码一区二区免费| 国产精品美女久久福利网站 | 国产一区999| jiyouzz国产精品久久| 欧美在线观看视频一区二区 | 欧美一区二区视频观看视频| 精品国产一区二区精华| 中文字幕在线不卡| 午夜精品在线看| 国产一区二区视频在线| 色综合亚洲欧洲| 精品日韩99亚洲| 亚洲特级片在线| 成人av电影在线观看| 一本一道综合狠狠老| 欧美一区二区免费视频| 国产欧美一区二区三区网站| 一个色妞综合视频在线观看| 国产一区二区美女| 欧美日韩一本到| 久久精品欧美一区二区三区不卡| 亚洲精品视频一区| 狠狠色伊人亚洲综合成人| 91搞黄在线观看| 国产精品女同互慰在线看| 日韩成人一区二区三区在线观看| 成人综合婷婷国产精品久久免费| 欧美精品一卡两卡| 亚洲人成在线观看一区二区| 捆绑调教美女网站视频一区| 色香色香欲天天天影视综合网 | 亚洲激情综合网| 国产揄拍国内精品对白| 欧美色图在线观看| 国产精品嫩草久久久久| 日日摸夜夜添夜夜添国产精品 | 久久毛片高清国产| 午夜在线电影亚洲一区| 91麻豆国产精品久久| 欧美国产日韩亚洲一区| 捆绑调教美女网站视频一区| 精品视频免费看| 亚洲欧美视频在线观看| 国产米奇在线777精品观看| 在线播放欧美女士性生活| 亚洲三级电影网站| 国产不卡视频一区二区三区| 精品区一区二区| 日韩成人精品在线| 欧美伦理视频网站| 亚洲国产成人精品视频| 色狠狠一区二区| 成人免费在线观看入口| 国产不卡在线一区| 国产日产欧美一区二区三区 | 久久99精品国产.久久久久| 欧美男人的天堂一二区| 亚洲一区中文日韩| 91久久国产综合久久| 亚洲欧美日韩人成在线播放| 91免费小视频| 亚洲欧美日韩在线不卡| 91免费在线视频观看| 亚洲精品欧美激情| 色婷婷亚洲精品| 亚洲激情中文1区| 欧美系列亚洲系列| 午夜久久久久久久久久一区二区| 欧美性色综合网| 亚洲午夜激情网页| 欧美日韩中文国产| 亚洲h在线观看| 欧美精品色一区二区三区| 人人精品人人爱| 精品国产99国产精品| 韩国av一区二区| 国产日韩欧美一区二区三区综合| 国产精品99久久久久久久vr | 亚洲欧美日韩一区二区| 91国内精品野花午夜精品| 亚洲成人免费电影| 欧美精品欧美精品系列| 蜜臀av一区二区| 久久精品一区四区| 成人av在线资源网| 一区二区三区四区亚洲| 欧美日韩在线综合| 蜜臀av一区二区在线观看 | 视频一区中文字幕国产| 欧美肥妇bbw| 国产高清亚洲一区| 亚洲乱码国产乱码精品精小说| 91福利国产精品| 日韩av电影免费观看高清完整版在线观看 | 欧美va亚洲va香蕉在线 | 91日韩一区二区三区| 亚洲欧美日韩久久| 欧美在线色视频| 久久99热99| 欧美精品一区男女天堂| 黑人巨大精品欧美一区| 91精品国产高清一区二区三区蜜臀| 亚洲一区二三区| 欧美剧在线免费观看网站 | 亚洲免费看黄网站| 777奇米四色成人影色区| 日韩高清在线电影| 久久久久久电影| eeuss鲁一区二区三区| 亚洲精品videosex极品| 欧美放荡的少妇| 石原莉奈一区二区三区在线观看| 欧美剧情片在线观看| 久久超碰97人人做人人爱| 欧美成人精品1314www| 懂色av一区二区三区蜜臀| 亚洲视频一二三| 欧美日韩国产天堂| 日日欢夜夜爽一区| 日本一区二区在线不卡| 91污在线观看| 亚洲一区免费视频| 久久夜色精品一区| bt欧美亚洲午夜电影天堂| 视频一区中文字幕国产| 国产欧美中文在线| 在线电影院国产精品| 国产成人在线视频播放| 香蕉成人伊视频在线观看|