资源简介
GPS RINEX格式读取MATLAB版。
适用于标准rinex格式的O文件,代码简洁易懂,读取数据效率高。
代码片段和文件信息
%========================================
% Cycle-slip
% Zhen Dai
%========================================
% Functions:
% Read the RINEX observation file and save the measurement
% Input parameters:
% filename --> RINEX observation file name
% sampling_interval --> Sampling interval in Seconds (0.1 s == 10 Hz ......)
% totalepoch -> total epochs to be processed. -999 implies processing
% all the data in this file
% Output:
% mSatID -> Satellite visibility of each epoch
% vTime-> Time of each epoch scaled to “second of week“
% vTimeStr -> Time expressed in STRING
% interval -> Sampling interval of the data
% mCode -> C/A code on L1 signal
% mPhase -> Carrier phase data on L1 signal
% Remarks:
% 1. Only read the data from the GPS satellites
% 2. Only consider the L1 C/A and L1 phase data
% 3. Outputs are saved in a data file
% 4. It may provide some unexpected result when processing some
% specially formatted RINEX observation file.
function [datafilenametotalepoch_real]=GUIMain_LoadRinexOBS(filenamesampling_intervaltotalepoch)
% function [datafilenametotalepoch_real]=GUIMain_LoadRinexOBS()
%% GUI Initialization
f1=figure;
close(f1);
figure;
title=sprintf(‘Reading RINEX observation file‘);
set(gcf‘MenuBar‘‘none‘‘Numbertitle‘‘off‘‘Name‘title...
‘Position‘[400 500 450 150]‘Visible‘‘off‘);
movegui(gcf‘center‘);
hlistbox = uicontrol(gcf‘style‘ ‘listbox‘ ‘String‘ ‘Clear‘...
‘Position‘ [0 0 450 150]‘String‘‘‘‘Foregroundcolor‘‘k‘‘Backgroundcolor‘‘w‘);
set(gcf‘Visible‘‘on‘);
datafilename=sprintf(‘RawDataTemp‘);
%% Start reading the RINEX file
totalGNSSsatellite=32;
vSatID=zeros(totalGNSSsatellite1);
interval=0;
%% Initialize the data matrix.
if totalepoch==-999 %% When the total number of epochs are unknown
vTime=[]; mCode=[]; mPhase=[]; vTimeStr=[];mDoppler1=[];mDoppler2=[];
elseif totalepoch>0%% With the known number of epochs
vTime=zeros(totalepoch1);
vTimeStr=cell(totalepoch1);
mP1=zeros(totalGNSSsatellitetotalepoch);
mC1=zeros(totalGNSSsatellitetotalepoch);
mL1=zeros(totalGNSSsatellitetotalepoch);
mP2=zeros(totalGNSSsatellitetotalepoch);
mL2=zeros(totalGNSSsatellitetotalepoch);
mD1=zeros(totalGNSSsatellitetotalepoch);
mD2=zeros(totalGNSSsatellitetotalepoch);
else
errordlg(‘Invalid total number of epochs‘)
end
%% Open the file
fid = fopen(filename);
if fid==-1
errmsg=sprintf(‘Can not open this file%s‘filename);
errordlg(errmsg);
return;
end
line80num=0;
obsC1pos=0; %% Indicates which observation is C/A code
obsL1pos=0; %% Indicates which observation is phase on L1
obsP1pos=0; %% Indicates which observation is P1 code
obsL2pos=0; %% Indicates which observation is phase on L2
obsP2pos=0; %% Indicates which observation is P2 code
obsD1pos=0; %% Indicates which obs
- 上一篇:LAMBDAMATLAB
- 下一篇:LDPC码编译码仿真
相关资源
- 高灵敏度GPS接收机MATLAB仿真,附捕获
- 读取txt文件内容matlab代码实现
- GPS卫星轨道动态仿真MATLAB
- 3点GPS定位MATLAB仿真
- GPS信号的码捕获matlab代码.7z
- matlab读取SP3文件
- matlab 三角网格读取
- 基于matlab的dicom、nii文件读取,去噪增
- matlab读取SAC类文件函数
- GPS定位程序代码
- IPIX雷达数据读取cdf文件读取与处理
- GPS基本原理及其Matlab仿真235516
- MPU6050陀螺仪串口读取数据源码和参考
- 压缩感知之GPSR算法
- 高光谱图像在matlab里的读入与显示
- GPS信号捕获跟踪的MATLAB仿真,里面有
- 基于MATLAB软件读取Rinex3.02版本观测文
- gps基本原理及其matlab仿真199992
- RINEX格式的GPS观测文件matlab读取程序附
- ps基本原理及其matlab仿真(西安电子科
- GPS基本原理及MATLAB仿真
- INS_GPS组合导航matlab仿真程序
- GPS仿真-matlab工具箱
- matlab读取地震segy数据
- GPS周跳探测matlab
- SINS、GPS、DR仿真
- 新手适用简易GPS matlab代码
- MATLAB读取JPEG图片的DCT系数
- 扩展Kalman滤波在INS/GPS组合导航系统
- Matlab GPS Toolbox
评论
共有 条评论