HOPS
HOPS class reference
Public Member Functions | Static Public Member Functions | List of all members
hops::MHO_VexInfoExtractor Class Reference

Class MHO_VexInfoExtractor. More...

#include <MHO_VexInfoExtractor.hh>

Public Member Functions

 MHO_VexInfoExtractor ()
 
virtual ~MHO_VexInfoExtractor ()
 

Static Public Member Functions

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

Detailed Description

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

Constructor & Destructor Documentation

◆ MHO_VexInfoExtractor()

hops::MHO_VexInfoExtractor::MHO_VexInfoExtractor ( )
inline

◆ ~MHO_VexInfoExtractor()

virtual hops::MHO_VexInfoExtractor::~MHO_VexInfoExtractor ( )
inlinevirtual

Member Function Documentation

◆ 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
decInput 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
raInput 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_dateInput 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
clkInput JSON object containing clock data
clock_earlyOutput: Early clock value
clock_early_unitsOutput: Units for early clock value
clock_rateOutput: Clock rate value (optional)
clock_rate_unitsOutput: Units for clock rate value
originOutput: Origin epoch string
validityOutput: Validity epoch string
Note
This is a static function.

◆ extract_clock_model()

void hops::MHO_VexInfoExtractor::extract_clock_model ( const mho_json vexInfo,
MHO_ParameterStore paramStore 
)
static

Extracts clock model information from vexInfo and stores it in paramStore for reference and remote stations.

Parameters
vexInfoInput vexInfo containing clock model data
paramStoreOutput parameter store to hold extracted clock model information
Note
This is a static function.

◆ extract_sample_rate()

void hops::MHO_VexInfoExtractor::extract_sample_rate ( const mho_json vexInfo,
MHO_ParameterStore paramStore 
)
static

Extracts sample rates for reference and remote stations from VEX info.

Parameters
vexInfoInput VEX info as mho_json object
paramStoreOutput parameter store for sample rate values and units
Note
This is a static function.

◆ extract_sampler_bits()

void hops::MHO_VexInfoExtractor::extract_sampler_bits ( const mho_json vexInfo,
MHO_ParameterStore paramStore 
)
static

Extracts and stores N sampler bits used at reference and remote stations from vexInfo.

Parameters
vexInfoInput mho_json containing vex information
paramStoreMHO_ParameterStore to store extracted sample bits
Note
This is a static function.

◆ extract_vex_info()

void hops::MHO_VexInfoExtractor::extract_vex_info ( const mho_json vexInfo,
MHO_ParameterStore paramStore 
)
static

Extracts VEX info from JSON and stores relevant parameters in MHO_ParameterStore.

Parameters
vexInfoInput JSON containing VEX information
paramStoreMHO_ParameterStore object to store extracted parameters
Note
This is a static function.

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