MRTKLIB 0.7.14
Modernized GNSS Positioning Library
Loading...
Searching...
No Matches
mrtk_ppp_iono.c File Reference
#include <math.h>
#include <stdio.h>
#include <string.h>
#include "mrtklib/mrtk_const.h"
#include "mrtklib/mrtk_context.h"
#include "mrtklib/mrtk_coords.h"
#include "mrtklib/mrtk_mat.h"
#include "mrtklib/mrtk_nav.h"
#include "mrtklib/mrtk_obs.h"
#include "mrtklib/mrtk_opt.h"
#include "mrtklib/mrtk_rtkpos.h"
#include "mrtklib/mrtk_trace.h"
Include dependency graph for mrtk_ppp_iono.c:

Go to the source code of this file.

Macros

#define IONO_REJ_STD   1.0 /* reject STEC corr. std (m) */
#define IONO_COV_RATIO   1.0 /* ratio of STEC corr. cov (m) */
#define IONO_THRE_H   2.0 /* Horizontal convergence threshold (m) */
#define IONO_THRE_V   3.0 /* Vertical convergence threshold (m) */
#define SQR(x)
#define SQRT(x)
#define NP(opt)
#define NC(opt)
#define NT(opt)
#define II(s, opt)

Functions

int satsys (int sat, int *prn)
int satid2no (const char *id)
void satno2id (int sat, char *id)
char * time_str (gtime_t t, int n)
double timediff (gtime_t t1, gtime_t t2)
gtime_t gpst2time (int week, double sec)
void ecef2pos (const double *r, double *pos)
void covenu (const double *pos, const double *P, double *Q)
double sat2freq (int sat, uint8_t code, const nav_t *nav)
static double miono_std_stecura (int ura)
static double miono_delay (const nav_t *nav, const int sat, const miono_area_t *a, const double *ll)
static miono_area_t * miono_sel_area (pppiono_t *pppiono, const double *rr, const double *ll)
int miono_get_corr (const double *rr, nav_t *nav)
int input_statcorr (pppiono_corr_t *corr, FILE *fp)
int const_iono_corr (rtk_t *rtk, const obsd_t *obs, const nav_t *nav, const int n, const double *azel, const int *exc, const double *rr, const double *x, double *v, double *H, double *var)

Macro Definition Documentation

◆ II

#define II ( s,
opt )
Value:
(NP(opt) + NC(opt) + NT(opt) + (s) - 1)
#define NP(opt)
Definition mrtk_ppp.c:212
#define NC(opt)
Definition mrtk_ppp.c:213
#define NT(opt)

Definition at line 64 of file mrtk_ppp_iono.c.

Referenced by const_iono_corr().

◆ IONO_COV_RATIO

#define IONO_COV_RATIO   1.0 /* ratio of STEC corr. cov (m) */

Definition at line 53 of file mrtk_ppp_iono.c.

Referenced by const_iono_corr().

◆ IONO_REJ_STD

#define IONO_REJ_STD   1.0 /* reject STEC corr. std (m) */

Definition at line 52 of file mrtk_ppp_iono.c.

Referenced by const_iono_corr().

◆ IONO_THRE_H

#define IONO_THRE_H   2.0 /* Horizontal convergence threshold (m) */

Definition at line 54 of file mrtk_ppp_iono.c.

Referenced by const_iono_corr().

◆ IONO_THRE_V

#define IONO_THRE_V   3.0 /* Vertical convergence threshold (m) */

Definition at line 55 of file mrtk_ppp_iono.c.

Referenced by const_iono_corr().

◆ NC

#define NC ( opt)
Value:
(NSYS + 1) /* BDS3 and BDS2 */
#define NSYS

Definition at line 62 of file mrtk_ppp_iono.c.

◆ NP

#define NP ( opt)
Value:
((opt)->dynamics ? 9 : 3)

Definition at line 61 of file mrtk_ppp_iono.c.

◆ NT

#define NT ( opt)
Value:
((opt)->tropopt < TROPOPT_EST ? 0 : ((opt)->tropopt == TROPOPT_EST ? 1 : 3))
#define TROPOPT_EST
Definition mrtk_opt.h:105

Definition at line 63 of file mrtk_ppp_iono.c.

Referenced by decode_glostr_eph(), encode_type1020(), estpos(), and rescode().

◆ SQR

#define SQR ( x)
Value:
((x) * (x))

Definition at line 57 of file mrtk_ppp_iono.c.

Referenced by const_iono_corr(), and miono_delay().

◆ SQRT

#define SQRT ( x)
Value:
((x) <= 0.0 || (x) != (x) ? 0.0 : sqrt(x))

Definition at line 58 of file mrtk_ppp_iono.c.

Referenced by const_iono_corr().

Function Documentation

◆ const_iono_corr()

int const_iono_corr ( rtk_t * rtk,
const obsd_t * obs,
const nav_t * nav,
const int n,
const double * azel,
const int * exc,
const double * rr,
const double * x,
double * v,
double * H,
double * var )
extern

Definition at line 259 of file mrtk_ppp_iono.c.

References pppiono_t::corr, covenu(), pppiono_corr_t::dly, ecef2pos(), II, IONO_COV_RATIO, IONO_REJ_STD, IONO_THRE_H, IONO_THRE_V, MIONO_MAX_AGE, NSYS, rtk_t::nx, rtk_t::opt, nav_s::pppiono, prcopt_t::pppopt, rtk_t::prev_qr, R2D, obsd_t::sat, satno2id(), satsys(), SQR, SQRT, pppiono_corr_t::std, SYS_GAL, SYS_GLO, SYS_GPS, SYS_QZS, pppiono_corr_t::t0, gtime_t::time, obsd_t::time, time_str(), timediff(), and trace().

Referenced by ppp_res().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ covenu()

void covenu ( const double * pos,
const double * P,
double * Q )
extern

Definition at line 188 of file mrtk_coords.c.

Referenced by const_iono_corr().

Here is the caller graph for this function:

◆ ecef2pos()

void ecef2pos ( const double * r,
double * pos )
extern

Definition at line 102 of file mrtk_coords.c.

Referenced by const_iono_corr(), and miono_get_corr().

Here is the caller graph for this function:

◆ gpst2time()

gtime_t gpst2time ( int week,
double sec )
extern

Definition at line 165 of file mrtk_time.c.

Referenced by input_statcorr().

Here is the caller graph for this function:

◆ input_statcorr()

int input_statcorr ( pppiono_corr_t * corr,
FILE * fp )
extern

Definition at line 215 of file mrtk_ppp_iono.c.

References pppiono_corr_t::dly, gpst2time(), satid2no(), pppiono_corr_t::std, pppiono_corr_t::t0, gtime_t::time, pppiono_corr_t::time, time_str(), and trace().

Here is the call graph for this function:

◆ miono_delay()

double miono_delay ( const nav_t * nav,
const int sat,
const miono_area_t * a,
const double * ll )
static

Definition at line 79 of file mrtk_ppp_iono.c.

References CODE_L1C, miono_sat_t::coef, miono_area_t::ref, miono_area_t::sat, sat2freq(), SQR, trace(), and miono_area_t::type.

Referenced by miono_get_corr().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ miono_get_corr()

int miono_get_corr ( const double * rr,
nav_t * nav )
extern

Definition at line 174 of file mrtk_ppp_iono.c.

References pppiono_t::corr, pppiono_corr_t::dly, ecef2pos(), MAXSAT, miono_delay(), miono_sel_area(), miono_std_stecura(), nav_s::pppiono, R2D, miono_area_t::sat, miono_sat_t::sqi, pppiono_corr_t::std, miono_sat_t::t0, pppiono_corr_t::t0, gtime_t::time, and trace().

Referenced by rtkpos().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ miono_sel_area()

miono_area_t * miono_sel_area ( pppiono_t * pppiono,
const double * rr,
const double * ll )
static

Definition at line 105 of file mrtk_ppp_iono.c.

References pppiono_t::anum, miono_region_t::area, miono_area_t::avalid, D2R, MIONO_MAX_ANUM, MIONO_MAX_RID, norm(), pos2ecef(), miono_region_t::ralert, pppiono_t::re, miono_area_t::ref, pppiono_t::rid, miono_region_t::rvalid, miono_area_t::sid, miono_area_t::span, and trace().

Referenced by miono_get_corr().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ miono_std_stecura()

double miono_std_stecura ( int ura)
static

Definition at line 67 of file mrtk_ppp_iono.c.

Referenced by miono_get_corr().

Here is the caller graph for this function:

◆ sat2freq()

double sat2freq ( int sat,
uint8_t code,
const nav_t * nav )
extern

Definition at line 244 of file mrtk_obs.c.

Referenced by miono_delay().

Here is the caller graph for this function:

◆ satid2no()

int satid2no ( const char * id)
extern

Definition at line 753 of file mrtk_nav.c.

Referenced by input_statcorr().

Here is the caller graph for this function:

◆ satno2id()

void satno2id ( int sat,
char * id )
extern

Definition at line 817 of file mrtk_nav.c.

Referenced by const_iono_corr().

Here is the caller graph for this function:

◆ satsys()

int satsys ( int sat,
int * prn )
extern

Definition at line 117 of file mrtk_nav.c.

Referenced by const_iono_corr().

Here is the caller graph for this function:

◆ time_str()

char * time_str ( gtime_t t,
int n )
extern

Definition at line 530 of file mrtk_time.c.

Referenced by const_iono_corr(), and input_statcorr().

Here is the caller graph for this function:

◆ timediff()

double timediff ( gtime_t t1,
gtime_t t2 )
extern

Definition at line 279 of file mrtk_time.c.

Referenced by const_iono_corr().

Here is the caller graph for this function: