Class MHO_VexInfoExtractor.
More...
#include <MHO_VexInfoExtractor.hh>
|
static double | calculate_dec_deg (std::string dec) |
| Calculates declination in decimal degrees from a string representation containing degrees, minutes, and seconds. More...
|
|
static double | calculate_ra_hrs (std::string ra) |
| Converts right ascension string to decimal hours. More...
|
|
static int64_t | calculate_start_time_seconds_since_1980 (std::string start_date) |
| Calculates time in seconds since 1980-01-01T00:00:00.0Z for a given start date. More...
|
|
static void | extract_clock_early (const mho_json &clk, double &clock_early, std::string &clock_early_units, double &clock_rate, std::string &clock_rate_units, std::string &origin, std::string &validity) |
| Extracts clock early data from a JSON object and populates output parameters. More...
|
|
static void | extract_clock_model (const mho_json &vexInfo, MHO_ParameterStore *paramStore) |
| Extracts clock model information from vexInfo and stores it in paramStore for reference and remote stations. More...
|
|
static void | extract_sample_rate (const mho_json &vexInfo, MHO_ParameterStore *paramStore) |
| Extracts sample rates for reference and remote stations from VEX info. More...
|
|
static void | extract_sampler_bits (const mho_json &vexInfo, MHO_ParameterStore *paramStore) |
| Extracts and stores N sampler bits used at reference and remote stations from vexInfo. More...
|
|
static void | extract_vex_info (const mho_json &vexInfo, MHO_ParameterStore *paramStore) |
| Extracts VEX info from JSON and stores relevant parameters in MHO_ParameterStore. More...
|
|
Class MHO_VexInfoExtractor.
extract useful information from the vex file and place in parameter store
- Author
- Email:
- Date
- Wed Sep 20 16:12:23 2023 -0400
◆ MHO_VexInfoExtractor()
hops::MHO_VexInfoExtractor::MHO_VexInfoExtractor |
( |
| ) |
|
|
inline |
◆ ~MHO_VexInfoExtractor()
virtual hops::MHO_VexInfoExtractor::~MHO_VexInfoExtractor |
( |
| ) |
|
|
inlinevirtual |
◆ calculate_dec_deg()
double hops::MHO_VexInfoExtractor::calculate_dec_deg |
( |
std::string |
dec | ) |
|
|
static |
Calculates declination in decimal degrees from a string representation containing degrees, minutes, and seconds.
- Parameters
-
dec | Input declination string in format 'ddd°mm'mm.mmm"' |
- Returns
- Declination in decimal degrees
- Note
- This is a static function.
◆ calculate_ra_hrs()
double hops::MHO_VexInfoExtractor::calculate_ra_hrs |
( |
std::string |
ra | ) |
|
|
static |
Converts right ascension string to decimal hours.
- Parameters
-
ra | Input right ascension in 'hh:mm:ss.sss' format. |
- Returns
- Right ascension in decimal hours.
- Note
- This is a static function.
◆ calculate_start_time_seconds_since_1980()
int64_t hops::MHO_VexInfoExtractor::calculate_start_time_seconds_since_1980 |
( |
std::string |
start_date | ) |
|
|
static |
Calculates time in seconds since 1980-01-01T00:00:00.0Z for a given start date.
- Parameters
-
start_date | Input date string in VEX format |
- Returns
- Time in seconds since 1980
- Note
- This is a static function.
◆ extract_clock_early()
void hops::MHO_VexInfoExtractor::extract_clock_early |
( |
const mho_json & |
clk, |
|
|
double & |
clock_early, |
|
|
std::string & |
clock_early_units, |
|
|
double & |
clock_rate, |
|
|
std::string & |
clock_rate_units, |
|
|
std::string & |
origin, |
|
|
std::string & |
validity |
|
) |
| |
|
static |
Extracts clock early data from a JSON object and populates output parameters.
- Parameters
-
clk | Input JSON object containing clock data |
clock_early | Output: Early clock value |
clock_early_units | Output: Units for early clock value |
clock_rate | Output: Clock rate value (optional) |
clock_rate_units | Output: Units for clock rate value |
origin | Output: Origin epoch string |
validity | Output: Validity epoch string |
- Note
- This is a static function.
◆ extract_clock_model()
Extracts clock model information from vexInfo and stores it in paramStore for reference and remote stations.
- Parameters
-
vexInfo | Input vexInfo containing clock model data |
paramStore | Output parameter store to hold extracted clock model information |
- Note
- This is a static function.
◆ extract_sample_rate()
Extracts sample rates for reference and remote stations from VEX info.
- Parameters
-
vexInfo | Input VEX info as mho_json object |
paramStore | Output parameter store for sample rate values and units |
- Note
- This is a static function.
◆ extract_sampler_bits()
Extracts and stores N sampler bits used at reference and remote stations from vexInfo.
- Parameters
-
vexInfo | Input mho_json containing vex information |
paramStore | MHO_ParameterStore to store extracted sample bits |
- Note
- This is a static function.
◆ extract_vex_info()
Extracts VEX info from JSON and stores relevant parameters in MHO_ParameterStore.
- Parameters
-
vexInfo | Input JSON containing VEX information |
paramStore | MHO_ParameterStore object to store extracted parameters |
- Note
- This is a static function.
The documentation for this class was generated from the following files: