-
大小: 10.75MB文件类型: .rar金币: 1下载: 0 次发布日期: 2023-11-04
- 语言: 其他
- 标签: rinex3.2 rinex2.0 转换 win7+linux
资源简介
该程序主要将当前RINEX3.X格式观测文件转换为RINEX2.0;因为目录多数软件不能完成RINEX3.0以上的处理,所以需要批处理观测文件。此软件经TEQC软件测试,已用于工程应用。附LINUX版本
代码片段和文件信息
#include “Rinex3.h“
bool GetFileList(vector& File_vec string Path)
{
string Dos(“dir /b > “);
Dos = Dos + Path + “\\Rinex3NameList.cfg“;
system(Dos.c_str());
string cfgpath(Path);
cfgpath = cfgpath + “\\Rinex3NameList.cfg“;
ifstream infile(cfgpath.c_str());
if(infile)
{
while(!infile.eof())
{
string line;
getline(infileline‘\n‘);
if(line.empty())continue;
if(line.at(line.size()-1) == ‘o‘ || line.at(line.size()-1) == ‘O‘)
{
string FilePath(Path);
FilePath = FilePath + “\\“ + line;
File_vec.push_back(FilePath);
}
else
continue;
}
return 1;
}
else
{
cout << “Error: “ << cfgpath.c_str() << “ can not find “ << endl;
return 0;
}
}
int main(int argc char* argv[])
{
unsigned short Interval = 0;
if(argc!= 2)
{
cout << “The arguments is incorrect“ << endl;
cout << “your shoud specific the path as: D:\\Rinex3“ << endl;
return 1;
}
string Path;
if(argc == 2)
{
string tmp(argv[1]);
Path = tmp;
cout << “File path is “ << Path.c_str() << endl;
}
//else
//{
// string tmp(argv[0]);
// Path = tmp;
// cout << “ File path is “ << Path.c_str() << endl;
//}
vector File_vec;
GetFileList(File_vecPath);
if(!File_vec.empty())
{
cout << File_vec.size() << “ Rinex file is finded “ << endl;
vector::iterator v_i(File_vec.begin());
while(v_i != File_vec.end())
{
cout << setw(40) << setfill(‘*‘) << “*“ << endl;
Rinex3 R(*v_i);
R.FormatConvert();
cout << *v_i << “ has been transformed“ << endl;
++v_i;
}
cout << setw(40) << setfill(‘*‘) << “*“ << endl;
}
else
{
cout << “Error: please check is there Rinex O file or not“ << endl;
}
string Dos(“del /q “);
Dos = Dos + Path +“\\Rinex3NameList.cfg“;
system(Dos.c_str());
return 0;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1473024 2015-03-13 09:40 Rinex322\Debug\Rinex322.exe
文件 4369092 2015-03-13 09:40 Rinex322\Debug\Rinex322.ilk
文件 8891392 2015-03-13 09:40 Rinex322\Debug\Rinex322.pdb
文件 101888 2015-03-13 09:46 Rinex322\Release\Rinex322.exe
文件 1289216 2015-03-13 09:46 Rinex322\Release\Rinex322.pdb
文件 917 2014-05-19 14:19 Rinex322\Rinex322\BJF1118m30.14O\rinex2\BJF1118m30.14O
文件 1950 2015-03-13 09:40 Rinex322\Rinex322\Debug\cl.command.1.tlog
文件 68342 2015-03-13 09:40 Rinex322\Rinex322\Debug\CL.read.1.tlog
文件 2046 2015-03-13 09:40 Rinex322\Rinex322\Debug\CL.write.1.tlog
文件 2 2015-03-13 09:40 Rinex322\Rinex322\Debug\li
文件 2 2015-03-13 09:40 Rinex322\Rinex322\Debug\li
文件 2 2015-03-13 09:40 Rinex322\Rinex322\Debug\li
文件 2 2015-03-13 09:40 Rinex322\Rinex322\Debug\li
文件 2 2015-03-13 09:40 Rinex322\Rinex322\Debug\li
文件 2 2015-03-13 09:40 Rinex322\Rinex322\Debug\li
文件 1446 2015-03-13 09:40 Rinex322\Rinex322\Debug\li
文件 2182 2015-03-13 09:40 Rinex322\Rinex322\Debug\li
文件 764 2015-03-13 09:40 Rinex322\Rinex322\Debug\li
文件 761700 2015-03-13 09:40 Rinex322\Rinex322\Debug\main.obj
文件 2696937 2015-03-13 09:40 Rinex322\Rinex322\Debug\Rinex3.obj
文件 1869 2014-12-29 15:27 Rinex322\Rinex322\Debug\Rinex322.Build.CppClean.log
文件 73 2015-03-13 09:40 Rinex322\Rinex322\Debug\Rinex322.lastbuildstate
文件 1905 2015-03-13 09:40 Rinex322\Rinex322\Debug\Rinex322.log
文件 1205003 2014-12-29 15:27 Rinex322\Rinex322\Debug\TypeIndex.obj
文件 1158144 2015-03-13 09:40 Rinex322\Rinex322\Debug\vc110.idb
文件 897024 2015-03-13 09:40 Rinex322\Rinex322\Debug\vc110.pdb
文件 1860 2014-06-05 02:48 Rinex322\Rinex322\main.cpp
文件 2010 2015-03-13 09:46 Rinex322\Rinex322\Release\cl.command.1.tlog
文件 67836 2015-03-13 09:46 Rinex322\Rinex322\Release\CL.read.1.tlog
文件 1566 2015-03-13 09:46 Rinex322\Rinex322\Release\CL.write.1.tlog
............此处省略36个文件信息
- 上一篇:Design Systems
- 下一篇:零件交易系统
评论
共有 条评论