You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GNSS_MultipathAnalysis is a software for analyzing the multipath effect on Global Navigation Satellite Systems (GNSS). This software is largely based on the MATLAB software [GNSS_Receiver_QC_2020](https://gitlab.com/bjro/GNSS_reading_protocol/-/tree/main/GNSS_Receiver_QC_2020) made by Bjørn-Eirik Roald. Mainly it follows the same logic, just with Python syntax. However, there are added some other features like for instance:
5
7
* Possible to use broadcasted ephemerides (not only SP3 files)
6
-
* Also support RINEX v2.xx observation files
8
+
* Also support RINEX v2.xx observation files
7
9
* Makes polar plot of each satellite for each system
8
10
* Makes polar plot that shows the multipath effect as function of azimuth and elevation angle.
9
11
* Plots the Signal-To-Noise Ratio (SNR) wrt to time and elevation angle
@@ -16,79 +18,149 @@ A considerable part of the results has been validated by comparing the results w
16
18
17
19
The main function is called "GNSS_MultipathAnalysis.py" and takes in different arguments. Two arguments are mandatory:
18
20
* A RINEX Observation file
19
-
* A sp3/eph file containing precise satellite coordinates or a RINEX 3 navigation file
21
+
* A sp3/eph file containing precise satellite coordinates or a RINEX 3 navigation file
20
22
21
23
The rest of the arguments are optional. Their default values are described in the function description. By default, this software will provide the results in forms of plots and an analysis report as a text file. In addition, it exports the results as a pickle file which can be imported as a dictionary in python for instance.
22
24
23
-
## Installation
24
-
To install the required packages, run:
25
-
`pip install -r requirements.txt`
26
-
where the *requirements.txt* is located [here](https://github.com/paarnes/GNSS/blob/master/src/requirements.txt).
25
+
## Installation
26
+
27
+
The software can be installed using `pip` in the terminal:
28
+
```
29
+
$ pip install gnssmultipath
30
+
```
27
31
28
32
Note: In the example plots, TEX is used to get prettier text formatting. However, this requires TEX/LaTex to be installed on your computer. The program will first try to use TEX, and if it's not possible, standard text formatting will be used. So TEX/LaTex is not required to run the program and make plots.
29
33
30
34
## The steps are:
31
-
1. Reads in the RINEX observation file
35
+
1. Reads in the RINEX observation file
32
36
2. Reads the RINEX navigation file or the precise satellite coordinates in SP3-format (depends on what’s provided)
33
-
3. If a navigation file is provided, the satellite coordinates will be transformed from Kepler-elements to ECEF for GPS, Galileo and BeiDou. For GLONASS the navigation file is containing a state vector. The coordinates then get interpolated to the current epoch by solving the differential equation using a 4th order Runge-Kutta. If a SP3 file is provided, the interpolation is done by a barycentric Lagrange interpolation.
34
-
4. Satellites elevation and azimuth angles get computed.
37
+
3. If a navigation file is provided, the satellite coordinates will be transformed from Kepler-elements to ECEF for GPS, Galileo and BeiDou. For GLONASS the navigation file is containing a state vector. The coordinates then get interpolated to the current epoch by solving the differential equation using a 4th order Runge-Kutta. If a SP3 file is provided, the interpolation is done by a barycentric Lagrange interpolation.
38
+
4. Satellites elevation and azimuth angles get computed.
35
39
5. Cycle slip detection by using both ionospheric residuals and a code-phase combination. These linear combinations are given as
The threshold values can be set by the user, and the default values are set to $0.0667 [\frac{m}{s}]$ and $6.67[\frac{m}{s}]$ for the ionospheric residuals and code-phase combination respectively.
42
+
The threshold values can be set by the user, and the default values are set to $0.0667 [\frac{m}{s}]$ and $6.67[\frac{m}{s}]$ for the ionospheric residuals and code-phase combination respectively.
39
43
40
-
6. Multipath estimates get computed by making a linear combination of the code and phase observation. PS: A dual frequency receiver is necessary because observations from two different bands/frequency are needed.
44
+
6. Multipath estimates get computed by making a linear combination of the code and phase observation. PS: A dual frequency receiver is necessary because observations from two different bands/frequency are needed.
where $R_1$ is the code observation on band 1, $\Phi_1$ and $\Phi_2$ is phase observation on band 1 and band 2 respectively. Furthermore $\alpha$ is the ratio between the two frequency squared $\alpha=\frac{{f}^2_1}{{f}^2_2}$
43
47
7. Based on the multipath estimates computed in step 6, both weighted and unweighted RMS-values get computed. The RMS value has unit _meter_, and is given by
For the weighted RMS value, the satellite elevation angle is used in a weighting function defined as $$w =\frac{1}{4sin^2\beta}$$ for every estimates with elevation angle $\beta$ is below $30^{\circ}$ and $w =1$ for $\beta > 30^{\circ}$.
46
-
8. Several plot will be generated (if not set to FALSE):
For the weighted RMS value, the satellite elevation angle is used in a weighting function defined as $$w =\frac{1}{4sin^2\beta}$$ for every estimates with elevation angle $\beta$ is below $30^{\circ}$ and $w =1$ for $\beta > 30^{\circ}$.
50
+
8. Several plot will be generated (if not set to FALSE):
47
51
* Ionospheric delay wrt time and zenith mapped ionospheric delay (combined)
9. Exporting the results as a pickle file which easily can be imported into python as a dictionary
78
-
10. The results in form of a report get written to a text file with the same name as the RINEX observation file.
82
+
10. The results in form of a report get written to a text file with the same name as the RINEX observation file.
79
83
80
84
81
85
## How to run it
82
86
An example file on how to call the program is located [here](https://github.com/paarnes/GNSS_Multipath_Analysis_Software/blob/master/src/Examples_on_how_to_run_it.ipynb). This will show some examples
83
87
on how to run the analysis with different user defined arguments, how to read in the resultfile (pickle file), and in addition it shows how to use only the RINEX
84
-
reading routine. The most simple example on how to run the code is:
88
+
reading routine.
89
+
90
+
### Some simple examples on how to use the software:
85
91
92
+
#### Run a multipath analysis using a SP3 file and only mandatory arguments
86
93
```
87
-
from GNSS_MultipathAnalysis import GNSS_MultipathAnalysis
0 commit comments