GNSS-SDR 0.0.21
An Open Source GNSS Software Defined Receiver
Loading...
Searching...
No Matches
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
45const double VAR_NOTEC = 30.0 * 30.0; /* variance of no tec */
46const double MIN_EL = 0.0; /* min elevation angle (rad) */
47const double MIN_HGT = -1000.0; /* min user height (m) */
48
49int getindex(double value, const double *range);
50
51int nitem(const double *range);
52int dataindex(int i, int j, int k, const int *ndata);
53tec_t *addtec(const double *lats, const double *lons, const double *hgts,
54 double rb, nav_t *nav);
55void readionexdcb(FILE *fp, double *dcb, double *rms);
56double readionexh(FILE *fp, double *lats, double *lons, double *hgts,
57 double *rb, double *nexp, double *dcb, double *rms);
58int readionexb(FILE *fp, const double *lats, const double *lons,
59 const double *hgts, double rb, double nexp, nav_t *nav);
60void combtec(nav_t *nav);
61void readtec(const char *file, nav_t *nav, int opt);
62int interptec(const tec_t *tec, int k, const double *posp, double *value,
63 double *rms);
64
65int iondelay(gtime_t time, const tec_t *tec, const double *pos,
66 const double *azel, int opt, double *delay, double *var);
67int 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
main header file for the rtklib library