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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? timetable.cpp

?? linux的gps應(yīng)用
?? 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());

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
7777精品伊人久久久大香线蕉经典版下载 | 欧美日韩中文字幕一区| 99精品视频在线播放观看| 91国产成人在线| 欧美日韩色一区| 久久影音资源网| 亚洲一区二区三区四区的| 精品亚洲国内自在自线福利| 91色综合久久久久婷婷| 日韩午夜av电影| 国产精品不卡视频| 免费不卡在线观看| 91在线小视频| 日韩欧美一级二级三级| 亚洲欧美日韩成人高清在线一区| 日韩成人午夜精品| 99久久久精品免费观看国产蜜| 欧美一区二区视频在线观看2020| 中文av一区特黄| 免费成人性网站| 色欧美乱欧美15图片| 精品国产伦一区二区三区观看体验 | 国产欧美日韩视频一区二区| 亚洲高清在线视频| 99精品久久久久久| 欧美精品一区二区不卡| 亚洲国产精品视频| 不卡的电影网站| 久久久久久久电影| 喷水一区二区三区| 欧美欧美欧美欧美| 一区二区三区四区高清精品免费观看 | 2020国产精品自拍| 激情综合网激情| 日韩一区二区在线观看视频 | 欧美日韩国产不卡| 亚洲午夜一区二区| 在线亚洲一区二区| 国产精品欧美久久久久无广告| 蜜臀av一区二区| 欧美一区二区免费| 日韩经典一区二区| 666欧美在线视频| 日韩专区中文字幕一区二区| 欧美日韩国产在线观看| 亚洲第一福利视频在线| 欧美日韩另类一区| 亚洲3atv精品一区二区三区| 在线观看日韩一区| 一区二区三区在线播放| 色视频一区二区| 一区二区三区免费观看| 色综合天天天天做夜夜夜夜做| 国产三级一区二区| 大白屁股一区二区视频| 国产精品青草综合久久久久99| 亚洲丶国产丶欧美一区二区三区| 成人美女视频在线看| 国产精品国产三级国产普通话三级 | 亚洲一区日韩精品中文字幕| 91免费版在线| 一级日本不卡的影视| 亚洲香蕉伊在人在线观| 老司机一区二区| 久久久久久久久免费| 福利视频网站一区二区三区| 国产精品久久毛片| 91成人国产精品| 日韩不卡在线观看日韩不卡视频| 91精品国产综合久久精品图片 | 亚洲国产精品传媒在线观看| 国产精品资源在线| 国产精品初高中害羞小美女文| 日本高清成人免费播放| 全部av―极品视觉盛宴亚洲| 久久久噜噜噜久噜久久综合| www.日韩大片| 亚洲电影视频在线| 2021中文字幕一区亚洲| 成人99免费视频| 亚洲成人午夜电影| 精品久久久三级丝袜| 97久久久精品综合88久久| 亚洲国产精品久久久久秋霞影院| 欧美一区二区久久| 国产成人综合自拍| 亚洲图片欧美色图| 久久美女高清视频| 91国内精品野花午夜精品| 久久精品久久精品| 一区二区中文视频| 欧美一级日韩一级| 菠萝蜜视频在线观看一区| 亚洲国产人成综合网站| 26uuu成人网一区二区三区| 色老综合老女人久久久| 久久国产免费看| 亚洲激情在线激情| 欧美成人一区二区三区片免费| 91片在线免费观看| 亚洲一区二区三区不卡国产欧美| 精品奇米国产一区二区三区| 91麻豆免费在线观看| 久久99热狠狠色一区二区| 一区二区三区四区蜜桃| 久久综合国产精品| 欧美日韩精品欧美日韩精品一综合| 国产老妇另类xxxxx| 婷婷成人综合网| 亚洲精品国产无套在线观| 欧美精品一区二区高清在线观看 | 夜夜嗨av一区二区三区中文字幕 | 蜜臀av一区二区三区| 国产精品每日更新| 欧美精品在欧美一区二区少妇| 极品少妇xxxx精品少妇偷拍| 亚洲自拍欧美精品| 亚洲少妇屁股交4| 精品久久久三级丝袜| 欧美精品123区| 91久久国产综合久久| 99精品国产视频| 成人免费精品视频| 国产盗摄一区二区三区| 国产一区二区看久久| 久久精品国产精品青草| 性做久久久久久免费观看| 亚洲精品你懂的| 日韩美女视频19| 国产欧美综合在线| 在线成人午夜影院| 欧美高清性hdvideosex| 日本二三区不卡| 色综合久久88色综合天天6 | 成人丝袜高跟foot| 国产精品一级黄| 国产99久久久国产精品免费看| 国内外成人在线| 国产一区二区视频在线播放| 成人夜色视频网站在线观看| 国产 日韩 欧美大片| 成人黄色小视频| 不卡的av中国片| 色8久久人人97超碰香蕉987| 高清shemale亚洲人妖| 极品少妇一区二区| 丰满白嫩尤物一区二区| 99精品视频在线播放观看| 色婷婷综合久色| 91亚洲午夜精品久久久久久| 欧美伊人精品成人久久综合97 | 欧美丝袜自拍制服另类| 9191成人精品久久| 久久综合国产精品| 国产精品理论片| 一区二区三区中文字幕| 日本中文一区二区三区| 激情欧美一区二区| a亚洲天堂av| 制服丝袜在线91| 久久先锋影音av| 亚洲欧美精品午睡沙发| 午夜精品成人在线| 狠狠色伊人亚洲综合成人| 波多野结衣在线一区| 欧美午夜不卡在线观看免费| 在线观看一区二区视频| 欧美激情一区二区三区四区| 亚洲区小说区图片区qvod| 日韩国产成人精品| 国产风韵犹存在线视精品| 欧洲精品在线观看| 精品国产凹凸成av人网站| 亚洲天堂成人网| 美女在线观看视频一区二区| 色婷婷精品久久二区二区蜜臂av| 在线观看91av| 中文字幕一区二区三区蜜月| 日产精品久久久久久久性色| 成人一区二区三区| 91精品国产欧美一区二区18| 国产午夜精品福利| 亚瑟在线精品视频| 成人午夜电影小说| 精品免费日韩av| 亚洲成人一二三| 91麻豆视频网站| 国产日韩欧美高清| 日韩精品一二三四| 94色蜜桃网一区二区三区| 26uuu久久天堂性欧美| 亚洲国产精品久久艾草纯爱| 成人激情综合网站| 欧美成人乱码一区二区三区| 亚洲一线二线三线视频| a在线播放不卡| 久久久久久免费毛片精品| 青青草国产精品亚洲专区无| 91亚洲精品乱码久久久久久蜜桃 | 国产综合色在线视频区|