GNSS-SDR  0.0.19
An Open Source GNSS Software Defined Receiver
rtklib_ionex.h
Go to the documentation of this file.
1 /*!
2  * \file rtklib_ionex.h
3  * \brief ionex functions
4  * \authors <ul>
5  * <li> 2007-2013, T. Takasu
6  * <li> 2017, Javier Arribas
7  * <li> 2017, Carles Fernandez
8  * </ul>
9  *
10  * This is a derived work from RTKLIB http://www.rtklib.com/
11  * The original source code at https://github.com/tomojitakasu/RTKLIB is
12  * released under the BSD 2-clause license with an additional exclusive clause
13  * that does not apply here. This additional clause is reproduced below:
14  *
15  * " The software package includes some companion executive binaries or shared
16  * libraries necessary to execute APs on Windows. These licenses succeed to the
17  * original ones of these software. "
18  *
19  * Neither the executive binaries nor the shared libraries are required by, used
20  * or included in GNSS-SDR.
21  *
22  * -----------------------------------------------------------------------------
23  * Copyright (C) 2007-2013, T. Takasu
24  * Copyright (C) 2017, Javier Arribas
25  * Copyright (C) 2017, Carles Fernandez
26  * All rights reserved.
27  *
28  * SPDX-License-Identifier: BSD-2-Clause
29  *
30  * References:
31  * [1] S.Schear, W.Gurtner and J.Feltens, IONEX: The IONosphere Map EXchange
32  * Format Version 1, February 25, 1998
33  * [2] S.Schaer, R.Markus, B.Gerhard and A.S.Timon, Daily Global Ionosphere
34  * Maps based on GPS Carrier Phase Data Routinely produced by CODE
35  * Analysis Center, Proceeding of the IGS Analysis Center Workshop, 1996
36  *
37  * -----------------------------------------------------------------------------
38  */
39 
40 #ifndef GNSS_SDR_RTKLIB_IONEX_H
41 #define GNSS_SDR_RTKLIB_IONEX_H
42 
43 #include "rtklib.h"
44 
45 const double VAR_NOTEC = 30.0 * 30.0; /* variance of no tec */
46 const double MIN_EL = 0.0; /* min elevation angle (rad) */
47 const double MIN_HGT = -1000.0; /* min user height (m) */
48 
49 int getindex(double value, const double *range);
50 
51 int nitem(const double *range);
52 int dataindex(int i, int j, int k, const int *ndata);
53 tec_t *addtec(const double *lats, const double *lons, const double *hgts,
54  double rb, nav_t *nav);
55 void readionexdcb(FILE *fp, double *dcb, double *rms);
56 double readionexh(FILE *fp, double *lats, double *lons, double *hgts,
57  double *rb, double *nexp, double *dcb, double *rms);
58 int readionexb(FILE *fp, const double *lats, const double *lons,
59  const double *hgts, double rb, double nexp, nav_t *nav);
60 void combtec(nav_t *nav);
61 void readtec(const char *file, nav_t *nav, int opt);
62 int interptec(const tec_t *tec, int k, const double *posp, double *value,
63  double *rms);
64 
65 int iondelay(gtime_t time, const tec_t *tec, const double *pos,
66  const double *azel, int opt, double *delay, double *var);
67 int iontec(gtime_t time, const nav_t *nav, const double *pos,
68  const double *azel, int opt, double *delay, double *var);
69 
70 #endif // GNSS_SDR_RTKLIB_IONEX_H
Definition: rtklib.h:752
Definition: rtklib.h:544
main header file for the rtklib library