-
Notifications
You must be signed in to change notification settings - Fork 5
/
ntcmg.h
56 lines (44 loc) · 1.1 KB
/
ntcmg.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
ntcmg V1.0
This code implements the NTCM-G algorithm as described
in the "EUROPEAN GNSS (GALILEO) OPEN SERVICE/NTCM-G IONOSPHERIC MODEL DESCRIPTION" document:
https://www.gsc-europa.eu/sites/default/files/NTCM-G_Ionospheric_Model_Description_-_v1.0.pdf
Copyright (C) 2023 by David Duchet
This code is licensed under MIT license (see LICENSE file for details)
(dd@bruine.org, FRSEC18E62CA1787)
*/
namespace ntcmg
{
double stec( // TECU
double ai0,
double ai1,
double ai2,
double rxlat, // rad
double rxlon, // rad
double rxalt, // m
double satlat, // rad
double satlon, // rad
double satalt,// m
double utc_time, // hour
double doy // day
);
double iono_delay( // m
double STEC, // TECU
double freq // Hz
);
double iono_delay( // m
double ai0,
double ai1,
double ai2,
double freq, // Hz
double rxlat, // rad
double rxlon, // rad
double rxalt, // m
double satlat, // rad
double satlon, // rad
double satalt,// m
double utc_time, // hour
double doy // day
);
double test(); // 0 is good. ~0.0003 is good enough ;-)
};// namespace