|
MRTKLIB 0.7.14
Modernized GNSS Positioning Library
|
MRTKLIB Bias SINEX Module — BIAS-SINEX data types and I/O functions. More...
#include <stdio.h>#include "mrtklib/mrtk_foundation.h"#include "mrtklib/mrtk_nav.h"#include "mrtklib/mrtk_time.h"Go to the source code of this file.
Classes | |
| struct | bia_t |
| struct | biasat_t |
| struct | biasta_t |
| struct | biass_t |
Functions | |
| int | getsysno (int sat) |
| Get system code number based on satellite number. | |
| biass_t * | getbiass (void) |
| Get pointer to the bias structure. | |
| 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. | |
| 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. | |
| 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. | |
MRTKLIB Bias SINEX Module — BIAS-SINEX data types and I/O functions.
This header provides the BIAS-SINEX data structures (bia_t, biasat_t, biasta_t, biass_t) and all related I/O and update functions, extracted from rtklib.h and biassnx.c with zero algorithmic changes.
Definition in file mrtk_bias_sinex.h.
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().
| 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().
| 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().
| 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().
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().