Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
gnsstk::NewNavToRinex Class Reference

Detailed Description

Implements the capability of translating NewNav data into RINEX NAV data. The numerous static methods may be used as needed, but the typical use case will likely be:

Definition at line 103 of file NewNavToRinex.hpp.

#include <NewNavToRinex.hpp>

Public Member Functions

bool translate (const NavDataPtrList &data, HealthGetter &healthGet)
 
bool write (const std::string &filename)
 

Static Public Member Functions

static bool fillData (const NavDataPtr &ndp, Rinex3NavData &rnd, HealthGetter &healthGet)
 
static bool fillDataBDSD1Nav (const NavDataPtr &ndp, Rinex3NavData &rnd)
 
static bool fillDataBDSD2Nav (const NavDataPtr &ndp, Rinex3NavData &rnd)
 
static bool fillDataGalFNav (const NavDataPtr &ndp, Rinex3NavData &rnd, HealthGetter &healthGet)
 
static bool fillDataGalINav (const NavDataPtr &ndp, Rinex3NavData &rnd, HealthGetter &healthGet)
 
static bool fillDataGLOFNav (const NavDataPtr &ndp, Rinex3NavData &rnd)
 
static bool fillDataGPSLNav (const NavDataPtr &ndp, Rinex3NavData &rnd)
 
static bool fillDataKepler (const std::shared_ptr< OrbitDataKepler > &odk, Rinex3NavData &rnd)
 
static bool fillHeader (const NavDataPtr &ndp, Rinex3NavHeader &h)
 
static bool fillTimeSystemCorrection (const std::shared_ptr< StdNavTimeOffset > &toffs, TimeSystemCorrection &tsc)
 

Public Attributes

Rinex3NavHeader header
 The header that will be used by translate() and write(). More...
 
std::list< Rinex3NavDatarndList
 The data created by translate() to be written. More...
 

Member Function Documentation

◆ fillData()

bool gnsstk::NewNavToRinex::fillData ( const NavDataPtr ndp,
Rinex3NavData rnd,
HealthGetter healthGet 
)
static

Fill the contents of the given RINEX nav data object with data from ndp. This method need only be called once for a given NavDataPtr object.

Parameters
[in]ndpA NavDataPtr containing an ephemeris.
[out]rndThe resulting converted Rinex3NavData object.
[in]healthGetCallback for obtaining health information, used to fill in the blanks in RINEX.
Returns
true on success, false on failure.

Definition at line 220 of file NewNavToRinex.cpp.

◆ fillDataBDSD1Nav()

bool gnsstk::NewNavToRinex::fillDataBDSD1Nav ( const NavDataPtr ndp,
Rinex3NavData rnd 
)
static

Fill the contents of the given RINEX nav data object with data from ndp, which is expected to contain a BeiDou D1 ephemeris.

Parameters
[in]ndpA NavDataPtr containing an ephemeris.
[out]rndThe resulting converted Rinex3NavData object.
Returns
true on success, false on failure (i.e. ndp is not a BeiDou D1 ephemeris.

Definition at line 458 of file NewNavToRinex.cpp.

◆ fillDataBDSD2Nav()

bool gnsstk::NewNavToRinex::fillDataBDSD2Nav ( const NavDataPtr ndp,
Rinex3NavData rnd 
)
static

Fill the contents of the given RINEX nav data object with data from ndp, which is expected to contain a BeiDou D2 ephemeris.

Parameters
[in]ndpA NavDataPtr containing an ephemeris.
[out]rndThe resulting converted Rinex3NavData object.
Returns
true on success, false on failure (i.e. ndp is not a BeiDou D2 ephemeris.

Definition at line 506 of file NewNavToRinex.cpp.

◆ fillDataGalFNav()

bool gnsstk::NewNavToRinex::fillDataGalFNav ( const NavDataPtr ndp,
Rinex3NavData rnd,
HealthGetter healthGet 
)
static

Fill the contents of the given RINEX nav data object with data from ndp, which is expected to contain a Galileo F/Nav ephemeris.

Parameters
[in]ndpA NavDataPtr containing an ephemeris.
[out]rndThe resulting converted Rinex3NavData object.
[in]healthGetCallback for obtaining health information, used to fill in the blanks in RINEX.
Returns
true on success, false on failure (i.e. ndp is not a Galileo F/Nav ephemeris.
Todo:
figure out how best to get BGD E5b/E1 which is not in the F/NAV ephemeris.

Definition at line 292 of file NewNavToRinex.cpp.

◆ fillDataGalINav()

bool gnsstk::NewNavToRinex::fillDataGalINav ( const NavDataPtr ndp,
Rinex3NavData rnd,
HealthGetter healthGet 
)
static

Fill the contents of the given RINEX nav data object with data from ndp, which is expected to contain a Galileo I/Nav ephemeris.

Parameters
[in]ndpA NavDataPtr containing an ephemeris.
[out]rndThe resulting converted Rinex3NavData object.
[in]healthGetCallback for obtaining health information, used to fill in the blanks in RINEX.
Returns
true on success, false on failure (i.e. ndp is not a Galileo I/Nav ephemeris.

Definition at line 380 of file NewNavToRinex.cpp.

◆ fillDataGLOFNav()

bool gnsstk::NewNavToRinex::fillDataGLOFNav ( const NavDataPtr ndp,
Rinex3NavData rnd 
)
static

Fill the contents of the given RINEX nav data object with data from ndp, which is expected to contain a GLONASS FDMA ephemeris.

Parameters
[in]ndpA NavDataPtr containing an ephemeris.
[out]rndThe resulting converted Rinex3NavData object.
Returns
true on success, false on failure (i.e. ndp is not a GLONASS FDMA ephemeris.

Definition at line 554 of file NewNavToRinex.cpp.

◆ fillDataGPSLNav()

bool gnsstk::NewNavToRinex::fillDataGPSLNav ( const NavDataPtr ndp,
Rinex3NavData rnd 
)
static

Fill the contents of the given RINEX nav data object with data from ndp, which is expected to contain a GPS LNAV ephemeris.

Parameters
[in]ndpA NavDataPtr containing an ephemeris.
[out]rndThe resulting converted Rinex3NavData object.
Returns
true on success, false on failure (i.e. ndp is not a GPS LNAV ephemeris.

Definition at line 249 of file NewNavToRinex.cpp.

◆ fillDataKepler()

bool gnsstk::NewNavToRinex::fillDataKepler ( const std::shared_ptr< OrbitDataKepler > &  odk,
Rinex3NavData rnd 
)
static

Fill the contents of the given RINEX nav data object with data from odk. This handles all the common Keplerian orbit parameters across those systems that use them.

Parameters
[in]odkAn OrbitDataKepler object containing an ephemeris.
[out]rndThe resulting converted Rinex3NavData object.
Returns
true on success, false on failure (i.e. ndp is not a Keplerian ephemeris.

Definition at line 597 of file NewNavToRinex.cpp.

◆ fillHeader()

bool gnsstk::NewNavToRinex::fillHeader ( const NavDataPtr ndp,
Rinex3NavHeader h 
)
static

Fill the contents of the given RINEX nav header with data from ndp. This method may (should) be called multiple times for a given header object in order to get all of the relevant time offset and ionospheric model data (no other header data is affected).

Parameters
[in]ndpThe NavDataPtr to get data from.
[out]hThe header object to add time offset or iono data to.
Returns
true if successful, false if ndp contained no relevant data.

Definition at line 131 of file NewNavToRinex.cpp.

◆ fillTimeSystemCorrection()

bool gnsstk::NewNavToRinex::fillTimeSystemCorrection ( const std::shared_ptr< StdNavTimeOffset > &  toffs,
TimeSystemCorrection tsc 
)
static

Fill the contents of the given TimeSystemCorrection from a StdNavTimeOffset object.

Parameters
[in]toffsThe time offset data to convert.
[out]tscThe converted TimeSystemCorrection.
Returns
true if successful, false on failure (e.g. the time system from/to pair can't be represented in RINEX).

Definition at line 644 of file NewNavToRinex.cpp.

◆ translate()

bool gnsstk::NewNavToRinex::translate ( const NavDataPtrList data,
HealthGetter healthGet 
)

Given an ordered list of NavData, generate RINEX equivalents and store them internally.

Parameters
[in]dataThe NavData to process and turn into RINEX.
[in]healthGetCallback for obtaining health information, used to fill in the blanks in RINEX. Currently this is only used for Galileo ephemerides where F/NAV doesn't contain I/NAV health and vice versa.
Returns
true if any nav data was converted successfully.

Definition at line 59 of file NewNavToRinex.cpp.

◆ write()

bool gnsstk::NewNavToRinex::write ( const std::string &  filename)

Write the internally stored RINEX header and data to the specified output file name.

Parameters
[in]filenameThe path to the RINEX NAV file to write.
Returns
true on success, false on failure.

Definition at line 101 of file NewNavToRinex.cpp.

Member Data Documentation

◆ header

Rinex3NavHeader gnsstk::NewNavToRinex::header

The header that will be used by translate() and write().

Definition at line 226 of file NewNavToRinex.hpp.

◆ rndList

std::list<Rinex3NavData> gnsstk::NewNavToRinex::rndList

The data created by translate() to be written.

Definition at line 228 of file NewNavToRinex.hpp.


The documentation for this class was generated from the following files:


gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:45