RTKLIB2.4.3利用.conf配置文件及命令行参数在VS2017中进行PPP数据处理

一.下载数据,包括观测文件(.o),导航电文(.n),精密钟差(.clk),精密星历(.sp3),潮汐(.BLQ),天线相位改正(.atx)等文件。然后利用GUI程序RTKPOST生成.conf配置文件,有关各项设置的具体含义可以参考RTKLIB官方的manual,具体步骤如下图所示:

(1)

(2)

(3)

(4)各项配置完成后,点击save,保存至适当的路径,如下图三所示,该文件记录了刚刚选择的各项参数信息,以供在VS2017中编译的控制台应用程序使用。

 二.在VS2017中打开编译好的 rnx2rtkp,在命令行参数中输入以下信息,各命令之间以一个空格隔开:

-k D:\RTKLIB\jf\jf.conf D:\RTKLIB\jf\jfng1280.19o D:\RTKLIB\jf\brdm1280.19p D:\RTKLIB\jf\esa20523.clk D:\RTKLIB\jf\esa20523.sp3 C:\Users\23270\Desktop\liyang\igs14.atx C:\Users\23270\Desktop\CZTL\1\CAS0MGXRAP_20191280000_01D_01D_DCB.dcb 

注意:

(1)有关命令行参数的学习,可以参考manual的93页,也可以在源代码main.c中找到有关命令行参数的说明,以下内容复制于main.c中的help[]数组:

static const char *help[]={           
"",
" usage: rnx2rtkp [option]... file file [...]",
"",
" Read RINEX OBS/NAV/GNAV/HNAV/CLK, SP3, SBAS message log files and ccompute ",
" receiver (rover) positions and output position solutions.",
" The first RINEX OBS file shall contain receiver (rover) observations. For the",
" relative mode, the second RINEX OBS file shall contain reference",
" (base station) receiver observations. At least one RINEX NAV/GNAV/HNAV",
" file shall be included in input files. To use SP3 precise ephemeris, specify",
" the path in the files. The extension of the SP3 file shall be .sp3 or .eph.",
" All of the input file paths can include wild-cards (*). To avoid command",
" line deployment of wild-cards, use \"...\" for paths with wild-cards.",
" Command line options are as follows ([]:default). With -k option, the",
" processing options are input from the configuration file. In this case,",
" command line options precede options in the configuration file.",
"",
" -?        print help",
" -k file   input options from configuration file [off]",
" -o file   set output file [stdout]",
" -ts ds ts start day/time (ds=y/m/d ts=h:m:s) [obs start time]",
" -te de te end day/time   (de=y/m/d te=h:m:s) [obs end time]",
" -ti tint  time interval (sec) [all]",
" -p mode   mode (0:single,1:dgps,2:kinematic,3:static,4:moving-base,",
"                 5:fixed,6:ppp-kinematic,7:ppp-static) [2]",
" -m mask   elevation mask angle (deg) [15]",
" -sys s[,s...] nav system(s) (s=G:GPS,R:GLO,E:GAL,J:QZS,C:BDS,I:IRN) [G|R]",
" -f freq   number of frequencies for relative mode (1:L1,2:L1+L2,3:L1+L2+L5) [2]",
" -v thres  validation threshold for integer ambiguity (0.0:no AR) [3.0]",
" -b        backward solutions [off]",
" -c        forward/backward combined solutions [off]",
" -i        instantaneous integer ambiguity resolution [off]",
" -h        fix and hold for integer ambiguity resolution [off]",
" -e        output x/y/z-ecef position [latitude/longitude/height]",
" -a        output e/n/u-baseline [latitude/longitude/height]",
" -n        output NMEA-0183 GGA sentence [off]",
" -g        output latitude/longitude in the form of ddd mm ss.ss' [ddd.ddd]",
" -t        output time in the form of yyyy/mm/dd hh:mm:ss.ss [sssss.ss]",
" -u        output time in utc [gpst]",
" -d col    number of decimals in time [3]",
" -s sep    field separator [' ']",
" -r x y z  reference (base) receiver ecef pos (m) [average of single pos]",
"           rover receiver ecef pos (m) for fixed or ppp-fixed mode",
" -l lat lon hgt reference (base) receiver latitude/longitude/height (deg/m)",
"           rover latitude/longitude/height for fixed or ppp-fixed mode",
" -y level  output soltion status (0:off,1:states,2:residuals) [0]",
" -x level  debug trace level (0:off) [0]"
};   

 (2)因为在命令行参数中我们已经输入了各文件的路径,源代码中会根据红线处的代码读取各输入文件,并存储到infile[]数组中去,因此,下方的infile[]的手动输入可以直接注释掉,不用管。针对outfile的输入,如果不手动输入outfile,则计算结果.pos文件会打印在控制台中,如果手动输入outfile路径,则会在指定路径下生成.pos定位结果文件,不会打印在控制台中。

 

/*infile[0] = "";
	infile[1] = "";
	infile[2] = "";
	infile[3] = "";*/
	outfile = "D:\\RTKLIB\\jf\\jf.pos";

 三.运行程序,以不输入outfile为例,定位结果会打印在控制台窗口,如下图所示:

本文参考了:

(61条消息) RTKLIB2.4.3利用配置文件conf在vs控制台程序下PPP数据处理详细流程_yunyun11112的博客-CSDN博客_rtklib配置文件

 

 

 

 

 

 

 

 

  • 26
    点赞
  • 52
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值