How to read and plot Rinex messages?
Show older comments
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
Walter Roberson
on 3 Apr 2019
Youcef Ziat asks the same question, but for MATLAB 2015 specifically.
Accepted Answer
More Answers (2)
Peter Spanik
on 15 Dec 2020
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
Samuel Olufemi Taiwo
on 10 May 2021
red_rinex_obs.m is showing some errors
- Error using vertcat Dimensions of arrays being concatenated are not consistent.
- Error in read_rinex_obs (line 51) current_time = [ str2num(current_line(2:3)) ; str2num(current_line(5:6)) ; ...
Peter Spanik
on 11 May 2021
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.
Mohamed Fathi
on 6 Sep 2021
read rinex showing that error
Error defining property 'satpos' of class 'OBSRNX':
Class named 'SATPOS' is undefined or does not support property validation
Peter Spanik
on 8 Sep 2021
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.
Yuebin Zhou
on 25 May 2017
0 votes
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
Find more on Reference Applications in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!