MRTKLIB 0.7.14
Modernized GNSS Positioning Library
Loading...
Searching...
No Matches
mrtk_bias_sinex.h File Reference

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"
Include dependency graph for mrtk_bias_sinex.h:
This graph shows which files directly or indirectly include this file:

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.

Detailed Description

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.

Note
Functions declared here are implemented in mrtk_bias_sinex.c.

Definition in file mrtk_bias_sinex.h.

Function Documentation

◆ addbia()

void addbia ( const bia_t * bia,
bia_t ** ary,
int * n,
int * nmax )

Add a bias entry to the bias array.

Parameters
[in]biaBias entry to add
[out]aryPointer to bias array
[out]nCurrent number of entries in array
[out]nmaxCurrent maximum number of entries in array

Definition at line 111 of file mrtk_bias_sinex.c.

References free, and trace().

Referenced by readbsnx(), and readfcbf().

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

◆ getbiass()

biass_t * getbiass ( void )

Get pointer to the bias structure.

Returns
Pointer to bias structure

Definition at line 65 of file mrtk_bias_sinex.c.

References biass.

Referenced by outbsnxsol(), udosb_sat(), and udosb_station().

Here is the caller graph for this function:

◆ getsysno()

int getsysno ( int sat)

Get system code number based on satellite number.

Parameters
[in]satSatellite number
Returns
System code number (0 or positive: valid, -1: error)

Definition at line 47 of file mrtk_bias_sinex.c.

References MAXBSNXSYS, satno2id(), and syscode.

Referenced by corr_meas().

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

◆ outbsnxcomb()

void outbsnxcomb ( FILE * fp,
char * comtext )

Output FILE/COMMENT body line.

Parameters
[in]fpOutput file pointer
[in]comtextComment text to output

Definition at line 418 of file mrtk_bias_sinex.c.

References trace().

Here is the call graph for this function:

◆ outbsnxcomf()

void outbsnxcomf ( FILE * fp)

Output FILE/COMMENT footer.

Parameters
[in]fpOutput file pointer

Definition at line 435 of file mrtk_bias_sinex.c.

References trace().

Here is the call graph for this function:

◆ outbsnxcomh()

void outbsnxcomh ( FILE * fp)

Output FILE/COMMENT header.

Parameters
[in]fpOutput file pointer

Definition at line 403 of file mrtk_bias_sinex.c.

References trace().

Here is the call graph for this function:

◆ outbsnxh()

void outbsnxh ( FILE * fp,
gtime_t ts,
gtime_t te,
const char * agency )

Output BIAS-SINEX file header.

Parameters
[in]fpOutput file pointer
[in]tsStart time
[in]teEnd time
[in]agencyAgency name

Definition at line 326 of file mrtk_bias_sinex.c.

References time2biast(), time2epoch(), timeget(), and trace().

Here is the call graph for this function:

◆ outbsnxrefb()

void outbsnxrefb ( FILE * fp,
int type,
char * reftext )

Output FILE/REFERENCE body line.

Parameters
[in]fpOutput file pointer
[in]typeType of information
[in]reftextReference text to output

Definition at line 368 of file mrtk_bias_sinex.c.

References trace().

Here is the call graph for this function:

◆ outbsnxreff()

void outbsnxreff ( FILE * fp)

Output FILE/REFERENCE footer.

Parameters
[in]fpOutput file pointer

Definition at line 390 of file mrtk_bias_sinex.c.

References trace().

Here is the call graph for this function:

◆ outbsnxrefh()

void outbsnxrefh ( FILE * fp)

Output FILE/REFERENCE header.

Parameters
[in]fpOutput file pointer

Definition at line 350 of file mrtk_bias_sinex.c.

References trace().

Here is the call graph for this function:

◆ outbsnxsol()

void outbsnxsol ( FILE * fp)

Output BIAS/SOLUTION section.

Parameters
[in]fpOutput file pointer

Definition at line 471 of file mrtk_bias_sinex.c.

References biass, getbiass(), MAXBSNXSYS, MAXSAT, outbsnxsold(), satno2id(), syscode, and trace().

Here is the call graph for this function:

◆ readbsnx()

int readbsnx ( const char * file)

Read BIAS-SINEX file.

Parameters
[in]fileSINEX file path
Returns
Number of biases read (0: error)

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().

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

◆ udosb_sat()

int udosb_sat ( osb_t * osb,
gtime_t gt,
int mode )

Update satellite OSB structure with current biases.

Parameters
[out]osbOSB structure to update
[in]gtCurrent time
[in]modeMode (0: current, 1: all)
Returns
Number of updated biases

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().

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

◆ udosb_station()

int udosb_station ( osb_t * osb,
gtime_t gt,
int mode,
char * name )

Update station OSB structure with current biases.

Parameters
[out]osbOSB structure to update
[in]gtCurrent time
[in]modeMode (0: current, 1: all)
[in]nameStation name
Returns
Number of updated biases

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().

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