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

MRTKLIB MADOCA Local Combination Module — local correction data combination functions. More...

Include dependency graph for mrtk_madoca_local_comb.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  instat_t
struct  lclcmbsvr_t

Functions

int initgridsta (const char *setfile, lclblock_t *lclblk, int btype)
 Initialize grid/station settings from a specified file.
void grid_intp_trop (const gtime_t gt, const stat_t *stat, lclblock_t *lclblk)
 Interpolate tropospheric grid data.
void sta_sel_trop (const gtime_t time, const stat_t *stat, lclblock_t *lslblk)
 Select and assign tropospheric data blocks based on station positions.
void grid_intp_iono (const gtime_t gt, const stat_t *stat, lclblock_t *lclblk, double maxres, int *nrej, int *ncnt)
 Interpolate ionospheric grid data.
void sta_sel_iono (const gtime_t gt, const stat_t *stat, lclblock_t *lslblk)
 Select and assign ionospheric data blocks based on station positions.
void output_lclcmb (rtcm_t *rtcm, int btype, stream_t *ostr)
 Generate and output RTCM3 local combination correction messages.

Detailed Description

MRTKLIB MADOCA Local Combination Module — local correction data combination functions.

This header provides functions for combining local tropospheric and ionospheric correction data (grid interpolation, station selection, and RTCM3 output), extracted from lclcmbcmn.c with zero algorithmic changes.

Note
Functions declared here are implemented in mrtk_madoca_local_comb.c.

Definition in file mrtk_madoca_local_comb.h.

Function Documentation

◆ grid_intp_iono()

void grid_intp_iono ( const gtime_t gt,
const stat_t * stat,
lclblock_t * lclblk,
double maxres,
int * nrej,
int * ncnt )

Interpolate ionospheric grid data.

Parameters
[in]gtTime
[in]statStation data
[in,out]lclblkLocal block information struct
[in]maxresMaximum residual
[out]nrejNumber of rejections
[out]ncntNumber of counts

Definition at line 475 of file mrtk_madoca_local_comb.c.

References corr_iono_distwgt(), corr_iono_plane(), lclblock_t::extp, GN, blkinf_t::gp, blkinf_t::gpitch, blkinf_t::grid, lclblock_t::iblkinf, lclblock_t::idist, lclblock_t::interp, lclblock_t::inum, ion_t::ion, siteion_t::iond, lclblock_t::istat, blkinf_t::mask, MAXSAT, MODE_PLANE, blkinf_t::n, ion_t::std, and ion_t::time.

Here is the call graph for this function:

◆ grid_intp_trop()

void grid_intp_trop ( const gtime_t gt,
const stat_t * stat,
lclblock_t * lclblk )

Interpolate tropospheric grid data.

Parameters
[in]gtTime
[in]statStation data
[in,out]lclblkLocal block information

Definition at line 390 of file mrtk_madoca_local_comb.c.

References corr_trop_distwgt(), corr_trop_plane(), lclblock_t::extp, GN, blkinf_t::gp, blkinf_t::gpitch, blkinf_t::grid, lclblock_t::interp, blkinf_t::mask, MODE_PLANE, blkinf_t::n, trp_t::std, lclblock_t::tblkinf, lclblock_t::tdist, trp_t::time, lclblock_t::tnum, trp_t::trp, sitetrp_t::trpd, and lclblock_t::tstat.

Here is the call graph for this function:

◆ initgridsta()

int initgridsta ( const char * setfile,
lclblock_t * lclblk,
int btype )

Initialize grid/station settings from a specified file.

Parameters
[in]setfileGrid/station setting file path
[in,out]lclblkLocal block information struct
[in]btypeBlock type (BTYPE_GRID or BTYPE_STA)
Returns
Status (0: error, 1: success)

Definition at line 308 of file mrtk_madoca_local_comb.c.

References blkinf_t::bn, blkinf_t::bs, blkinf_t::btype, BTYPE_GRID, blkinf_t::gpitch, lclblock_t::iblkinf, initblkinf(), lclblock_t::inum, ION_BLKSIZE, blkinf_t::mask, lclblock_t::tblkinf, lclblock_t::tnum, trace(), and TRP_BLKSIZE.

Here is the call graph for this function:

◆ output_lclcmb()

void output_lclcmb ( rtcm_t * rtcm,
int btype,
stream_t * ostr )

Generate and output RTCM3 local combination correction messages.

Parameters
[in,out]rtcmRTCM control struct
[in]btypeBlock type (BTYPE_GRID or BTYPE_STA)
[in]ostrOutput stream

Definition at line 579 of file mrtk_madoca_local_comb.c.

References BTYPE_GRID, BTYPE_STA, gen_rtcm3(), rtcm, and strwrite().

Here is the call graph for this function:

◆ sta_sel_iono()

void sta_sel_iono ( const gtime_t gt,
const stat_t * stat,
lclblock_t * lslblk )

Select and assign ionospheric data blocks based on station positions.

Parameters
[in]gtTime
[in]statStation data
[in,out]lslblkLocal block information struct

Definition at line 528 of file mrtk_madoca_local_comb.c.

References blkinf_t::bpos, blkinf_t::bs, D2R, spos_t::ecef, ecef2pos(), blkinf_t::grid, lclblock_t::iblkinf, ion_t::ion, siteion_t::iond, lclblock_t::istat, MAXSAT, blkinf_t::n, stat_t::nsi, stat_t::sion, siteion_t::site, sitetrp_t::site, ion_t::std, stat_t::strp, ion_t::time, timediff(), and lclblock_t::tnum.

Here is the call graph for this function:

◆ sta_sel_trop()

void sta_sel_trop ( const gtime_t time,
const stat_t * stat,
lclblock_t * lslblk )

Select and assign tropospheric data blocks based on station positions.

Parameters
[in]timeTime
[in]statStation data
[in,out]lslblkLocal block information struct

Definition at line 432 of file mrtk_madoca_local_comb.c.

References blkinf_t::bpos, blkinf_t::bs, D2R, spos_t::ecef, ecef2pos(), blkinf_t::grid, blkinf_t::n, stat_t::nst, sitetrp_t::site, stat_t::strp, lclblock_t::tblkinf, lclblock_t::tnum, sitetrp_t::trpd, and lclblock_t::tstat.

Here is the call graph for this function: