资源简介
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码编译码仿真
相关资源
- GRD格式的DEM文件读取写入Matlab程序.
- 雷达数据读取
- GPS 捕获 matlab仿真实现
- matlab读取hdf文件
- matlab读取并显示遥感img图像,包含单
- GPS捕获跟踪定时同步的matlab代码
- 伪距差分定位MATLAB
- 基于Matlab的GPS卫星仿真器设计
- matlab 读取、制作视频操作,入门必备
- 用matlab读取视频文件中的图像,并对
- 基于直接法的GPS姿态测量仿真程序
- matlab读取raw格式文件
- matlab读取视频背景程序
- GPS天空视图
- GPS年积日计算maltab程序
- 字符串+数据混合文件txt等的matlab读取
- GPS捕获、跟踪、解码星历表、定位解
-
gps产生、解调 simuli
nk - Matlab读取Excel数据,支持中文和混合数
- MATLAB读取TDMS文件函数
- 读取DICOM数据,并截图
- GPS L5软件MATLAB仿真接收机,根据经典
- 4份GPS接收机捕获与跟踪、解调的MAT
- matlab 读取O文件 百分百实用
- GPS L5 软件接收机仅捕获和跟踪
- 读取BMP信息并显示的MATLAB程序
- GPS基本原理及其MATLAB实现全部MATLAB程
- 利用matlab编写的读取BSQ格式数据程序
- 读取mat文件 LabVIEW 2011 vi
- matlab GPS水准高程拟合
评论
共有 条评论