|
MRTKLIB 0.7.14
Modernized GNSS Positioning Library
|
#include "mrtklib/mrtk_bias_sinex.h"#include <math.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include "mrtklib/mrtk_sys.h"#include "mrtklib/mrtk_trace.h"Go to the source code of this file.
Macros | |
| #define | NS2M (CLIGHT / 1E9) |
| #define | M2NS (1E9 / CLIGHT) |
Functions | |
| void | satno2id (int sat, char *id) |
| int | satid2no (const char *id) |
| uint8_t | obs2code (const char *obs) |
| char * | code2obs (uint8_t code) |
| char * | time_str (gtime_t t, int n) |
| int | getsysno (int sat) |
| Get system code number based on satellite number. | |
| biass_t * | getbiass (void) |
| Get pointer to the bias structure. | |
| static void | freebia (bia_t **ary, int *n, int *nmax) |
| static void | freebiass (void) |
| void | addbia (const bia_t *bia, bia_t **ary, int *n, int *nmax) |
| Add a bias entry to the bias array. | |
| int | readbsnx (const char *file) |
| Read BIAS-SINEX file. | |
| static void | time2biast (gtime_t time, double *year, double *doy, double *tod) |
| static char * | code2sigs (uint8_t code, int cpflag) |
| void | outbsnxh (FILE *fp, gtime_t ts, gtime_t te, const char *agency) |
| Output BIAS-SINEX file header. | |
| void | outbsnxrefh (FILE *fp) |
| Output FILE/REFERENCE header. | |
| void | outbsnxrefb (FILE *fp, int type, char *reftext) |
| Output FILE/REFERENCE body line. | |
| void | outbsnxreff (FILE *fp) |
| Output FILE/REFERENCE footer. | |
| void | outbsnxcomh (FILE *fp) |
| Output FILE/COMMENT header. | |
| void | outbsnxcomb (FILE *fp, char *comtext) |
| Output FILE/COMMENT body line. | |
| void | outbsnxcomf (FILE *fp) |
| Output FILE/COMMENT footer. | |
| static void | outbsnxsold (FILE *fp, int cpflag, int n, const bia_t *biad, char *sat, char *sta) |
| void | outbsnxsol (FILE *fp) |
| Output BIAS/SOLUTION section. | |
| int | udosb_sat (osb_t *osb, gtime_t gt, int mode) |
| Update satellite OSB structure with current biases. | |
| int | udosb_station (osb_t *osb, gtime_t gt, int mode, char *name) |
| Update station OSB structure with current biases. | |
Variables | |
| static const double | CLIGHT = 299792458.0 |
| static biass_t | biass = {0} |
| static char | syscode [] = "GREJCIS" |
| static char | typeid [][5] = {"DSB ", "ISB ", "OSB "} |
| #define M2NS (1E9 / CLIGHT) |
Definition at line 29 of file mrtk_bias_sinex.c.
Referenced by outbsnxsold().
| #define NS2M (CLIGHT / 1E9) |
Definition at line 28 of file mrtk_bias_sinex.c.
Referenced by readbsnx().
Add a bias entry to the bias array.
| [in] | bia | Bias entry to add |
| [out] | ary | Pointer to bias array |
| [out] | n | Current number of entries in array |
| [out] | nmax | Current maximum number of entries in array |
Definition at line 111 of file mrtk_bias_sinex.c.
Referenced by readbsnx(), and readfcbf().
|
extern |
Definition at line 190 of file mrtk_obs.c.
References CODE_NONE, MAXCODE, and obscodes.
Referenced by code2sigs(), corr_meas(), decode_mcssr_cb(), detslp_code(), obsindex(), sat_lambda(), scan_file(), set_index(), setopt_obstype(), and to_sigid().
|
static |
Definition at line 302 of file mrtk_bias_sinex.c.
References code2obs(), CODE_NONE, and MAXCODE.
Referenced by outbsnxsold().
|
static |
Definition at line 68 of file mrtk_bias_sinex.c.
References free.
Referenced by freebiass().
|
static |
Definition at line 77 of file mrtk_bias_sinex.c.
References biass, freebia(), MAXBSNXSYS, MAXSAT, and MAXSTA.
Referenced by readbsnx().
| biass_t * getbiass | ( | void | ) |
Get pointer to the bias structure.
Definition at line 65 of file mrtk_bias_sinex.c.
References biass.
Referenced by outbsnxsol(), udosb_sat(), and udosb_station().
| int getsysno | ( | int | sat | ) |
Get system code number based on satellite number.
| [in] | sat | Satellite number |
Definition at line 47 of file mrtk_bias_sinex.c.
References MAXBSNXSYS, satno2id(), and syscode.
Referenced by corr_meas().
|
extern |
Definition at line 173 of file mrtk_obs.c.
References CODE_NONE, and obscodes.
Referenced by outrnx_phase_shift(), readbsnx(), save_msm_obs(), set_index(), and setopt_phshift().
| void outbsnxcomb | ( | FILE * | fp, |
| char * | comtext ) |
Output FILE/COMMENT body line.
| [in] | fp | Output file pointer |
| [in] | comtext | Comment text to output |
Definition at line 418 of file mrtk_bias_sinex.c.
References trace().
| void outbsnxcomf | ( | FILE * | fp | ) |
Output FILE/COMMENT footer.
| [in] | fp | Output file pointer |
Definition at line 435 of file mrtk_bias_sinex.c.
References trace().
| void outbsnxcomh | ( | FILE * | fp | ) |
Output FILE/COMMENT header.
| [in] | fp | Output file pointer |
Definition at line 403 of file mrtk_bias_sinex.c.
References trace().
Output BIAS-SINEX file header.
| [in] | fp | Output file pointer |
| [in] | ts | Start time |
| [in] | te | End time |
| [in] | agency | Agency name |
Definition at line 326 of file mrtk_bias_sinex.c.
References time2biast(), time2epoch(), timeget(), and trace().
| void outbsnxrefb | ( | FILE * | fp, |
| int | type, | ||
| char * | reftext ) |
Output FILE/REFERENCE body line.
| [in] | fp | Output file pointer |
| [in] | type | Type of information |
| [in] | reftext | Reference text to output |
Definition at line 368 of file mrtk_bias_sinex.c.
References trace().
| void outbsnxreff | ( | FILE * | fp | ) |
Output FILE/REFERENCE footer.
| [in] | fp | Output file pointer |
Definition at line 390 of file mrtk_bias_sinex.c.
References trace().
| void outbsnxrefh | ( | FILE * | fp | ) |
Output FILE/REFERENCE header.
| [in] | fp | Output file pointer |
Definition at line 350 of file mrtk_bias_sinex.c.
References trace().
| void outbsnxsol | ( | FILE * | fp | ) |
Output BIAS/SOLUTION section.
| [in] | fp | Output file pointer |
Definition at line 471 of file mrtk_bias_sinex.c.
References biass, getbiass(), MAXBSNXSYS, MAXSAT, outbsnxsold(), satno2id(), syscode, and trace().
|
static |
Definition at line 444 of file mrtk_bias_sinex.c.
References code2sigs(), M2NS, and time2biast().
Referenced by outbsnxsol().
| int readbsnx | ( | const char * | file | ) |
Read BIAS-SINEX file.
| [in] | file | SINEX file path |
Definition at line 134 of file mrtk_bias_sinex.c.
References addbia(), biass, bia_t::code, CODE_NONE, epoch2time(), freebiass(), MAXBSNXSYS, MAXSTA, NS2M, obs2code(), satid2no(), bia_t::slp, bia_t::slpstd, str2num(), syscode, bia_t::t0, bia_t::t1, time_str(), timeadd(), timediff(), trace(), bia_t::type, bia_t::val, and bia_t::valstd.
Referenced by udbiass().
|
extern |
Definition at line 753 of file mrtk_nav.c.
References MAXPRNGPS, MAXPRNQZS, MAXPRNSBS, MINPRNCMP, MINPRNGAL, MINPRNGLO, MINPRNGPS, MINPRNIRN, MINPRNLEO, MINPRNQZS, MINPRNSBS, satno(), SYS_CMP, SYS_GAL, SYS_GLO, SYS_GPS, SYS_IRN, SYS_LEO, SYS_QZS, and SYS_SBS.
Referenced by buff2sysopts(), decode_obsdata(), decode_obsepoch(), decode_solstat(), readbsnx(), readdcbf(), readionexdcb(), readrnxclk(), and readrnxnavb().
|
extern |
Definition at line 817 of file mrtk_nav.c.
References MINPRNCMP, MINPRNGAL, MINPRNGLO, MINPRNGPS, MINPRNIRN, MINPRNLEO, MINPRNQZS, satsys(), SYS_CMP, SYS_GAL, SYS_GLO, SYS_GPS, SYS_IRN, SYS_LEO, SYS_QZS, and SYS_SBS.
Referenced by dump_halfc(), getsysno(), outbsnxsol(), outsolstat(), ppprtk_outstat(), raim_fde(), rtkoutstat(), setpcv(), sysopts2buff(), tracegnav(), tracehnav(), tracenav(), traceobs(), tracepclk(), and tracepeph().
|
static |
Definition at line 287 of file mrtk_bias_sinex.c.
References epoch2time(), time2epoch(), and timediff().
Referenced by outbsnxh(), and outbsnxsold().
|
extern |
Definition at line 530 of file mrtk_time.c.
Update satellite OSB structure with current biases.
| [out] | osb | OSB structure to update |
| [in] | gt | Current time |
| [in] | mode | Mode (0: current, 1: all) |
Definition at line 528 of file mrtk_bias_sinex.c.
References biass, bia_t::code, CODE_NONE, getbiass(), osb_t::gt, MAXCODE, MAXSAT, osb_t::scb, osb_t::spb, bia_t::t0, bia_t::t1, timediff(), bia_t::val, osb_t::vscb, and osb_t::vspb.
Referenced by udbiass().
Update station OSB structure with current biases.
| [out] | osb | OSB structure to update |
| [in] | gt | Current time |
| [in] | mode | Mode (0: current, 1: all) |
| [in] | name | Station name |
Definition at line 578 of file mrtk_bias_sinex.c.
References biass, bia_t::code, CODE_NONE, getbiass(), osb_t::gt, MAXBSNXSYS, MAXCODE, MAXSAT, osb_t::rsatcb, osb_t::rsyscb, osb_t::staname, bia_t::t0, bia_t::t1, timediff(), bia_t::val, osb_t::vrsatcb, and osb_t::vrsyscb.
Referenced by udbiass().
|
static |
Definition at line 38 of file mrtk_bias_sinex.c.
Referenced by freebiass(), getbiass(), outbsnxsol(), readbsnx(), udosb_sat(), and udosb_station().
|
static |
Definition at line 27 of file mrtk_bias_sinex.c.
|
static |
Definition at line 39 of file mrtk_bias_sinex.c.
Referenced by getsysno(), outbsnxsol(), and readbsnx().
|
static |
Definition at line 40 of file mrtk_bias_sinex.c.