How to read and plot Rinex messages?

How to read and plot rinex messages like longitude, latitude, time, no.of SV(number of satellites) and GDOP from a raw file (obs/nav or ubx file) recorded/saved on my pc using matlab?

1 Comment

Youcef Ziat asks the same question, but for MATLAB 2015 specifically.

Sign in to comment.

 Accepted Answer

Ryan Salvo
Ryan Salvo on 19 Jun 2024
Edited: Remo Pillat on 19 Jun 2024
Starting in R2022a, the rinexread function supports reading RINEX V3 OBS and NAV files.
This Analyze GNSS Satellite Visibility example shows how to visualize the contents of a NAV file.

More Answers (2)

Hello Berhane,
I created functions and classes to read observation and navigation RINEX files (see here https://github.com/spanikp/GNSS-toolbox). Also loading and processing of other GNSS-related files, like SP3 files or ANTEX, is supported. For example you can load RINEX to Matlab OBSRNX object as following:
addpath(genpath('path_to_GNSS-toolbox/src')); % Add path to toolbox functionality
obs = OBSRNX('your_rinex_filepath');
When the OBSRNX object is created in Matlab you can querry observations and perform slicing as you want. Toolbox support also downloading some useful navigation data like broadcast and precise ephemeris. You can also compute satellite positions and then visualize satellite paths (there is class Skyplot which can be used for that).
Any comments, issue reports and pull requests are welcome!

4 Comments

red_rinex_obs.m is showing some errors
  1. Error using vertcat Dimensions of arrays being concatenated are not consistent.
  2. Error in read_rinex_obs (line 51) current_time = [ str2num(current_line(2:3)) ; str2num(current_line(5:6)) ; ...
Hello Samuel, thanks for your feedback. Are you getting this error while running example script from repository or you are trying to load other RINEX file? If you provide your file I can try to debug this.
read rinex showing that error
Error defining property 'satpos' of class 'OBSRNX':
Class named 'SATPOS' is undefined or does not support property validation
Hi @Mohamed Fathi could you please create an issue at https://github.com/spanikp/GNSS-toolbox/issues? If you could provide also file which you want to load that would be great.

Sign in to comment.

Yuebin Zhou
Yuebin Zhou on 25 May 2017
Reading Rinex is not a supported functionality that ships with MATLAB, but there may be 3rd party tools that enable you to do it, like the one below:
https://github.com/manromao/RINEX-reader

Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!