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

MRTKLIB Precise Ephemeris Module — Earth rotation parameter types and ERP I/O functions. More...

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

Go to the source code of this file.

Classes

struct  erpd_t
 ERP (earth rotation parameter) data type. More...
struct  erp_t
 ERP (earth rotation parameter) type. More...

Functions

int readerp (const char *file, erp_t *erp)
 Read earth rotation parameters from IGS ERP file (ver.2).
int geterp (const erp_t *erp, gtime_t time, double *erpv)
 Get earth rotation parameter values at specified time.

Detailed Description

MRTKLIB Precise Ephemeris Module — Earth rotation parameter types and ERP I/O functions.

This header provides the ERP (Earth Rotation Parameter) data types and the associated I/O and interpolation functions extracted from rtkcmn.c.

Note
Precise ephemeris types (peph_t, pclk_t) and functions that depend on nav_t remain in rtklib.h / preceph.c to avoid MAXSAT and nav_t dependencies in the mrtklib layer.
All functions in this module are pure cut-and-paste extractions from rtkcmn.c with zero algorithmic changes.

Definition in file mrtk_peph.h.

Function Documentation

◆ geterp()

int geterp ( const erp_t * erp,
gtime_t time,
double * erpv )

Get earth rotation parameter values at specified time.

Parameters
[in]erpEarth rotation parameters
[in]timeTime (GPST)
[out]erpvERP values {xp,yp,ut1_utc,lod} (rad,rad,s,s/d)
Returns
Status (1:ok, 0:error)

Definition at line 146 of file mrtk_peph.c.

References erp_t::data, epoch2time(), gpst2utc(), erpd_t::lod, erpd_t::mjd, erp_t::n, timediff(), trace(), erpd_t::ut1_utc, erpd_t::xp, erpd_t::xpr, erpd_t::yp, and erpd_t::ypr.

Referenced by clas_osr_zdres(), and tidedisp().

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

◆ readerp()

int readerp ( const char * file,
erp_t * erp )

Read earth rotation parameters from IGS ERP file (ver.2).

Parameters
[in]fileIGS ERP file path
[out]erpEarth rotation parameters
Returns
Status (1:ok, 0:file open error)

Definition at line 99 of file mrtk_peph.c.

References AS2R, erp_t::data, free, erpd_t::lod, erpd_t::mjd, erp_t::n, erp_t::nmax, trace(), erpd_t::ut1_utc, erpd_t::xp, erpd_t::xpr, erpd_t::yp, and erpd_t::ypr.

Referenced by execses().

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