VieSched++
VieVS VLBI Scheduling Software
Tle Class Reference

Processes a two-line element set used to convey OrbitalElements. More...

#include <Tle.h>

Collaboration diagram for Tle:

Public Member Functions

 Tle (const std::string &line_one, const std::string &line_two)
 
 Tle (const std::string &name, const std::string &line_one, const std::string &line_two)
 
 Tle (const Tle &tle)
 
std::string Name () const
 
std::string Line1 () const
 
std::string Line2 () const
 
unsigned int NoradNumber () const
 
std::string IntDesignator () const
 
DateTime Epoch () const
 
double MeanMotionDt2 () const
 
double MeanMotionDdt6 () const
 
double BStar () const
 
double Inclination (bool in_degrees) const
 
double RightAscendingNode (const bool in_degrees) const
 
double Eccentricity () const
 
double ArgumentPerigee (const bool in_degrees) const
 
double MeanAnomaly (const bool in_degrees) const
 
double MeanMotion () const
 
unsigned int OrbitNumber () const
 
std::string ToString () const
 

Static Public Member Functions

static unsigned int LineLength ()
 

Private Member Functions

void Initialize ()
 
void ExtractInteger (const std::string &str, unsigned int &val)
 
void ExtractDouble (const std::string &str, int point_pos, double &val)
 
void ExtractExponential (const std::string &str, double &val)
 

Static Private Member Functions

static bool IsValidLineLength (const std::string &str)
 

Private Attributes

std::string name_
 
std::string line_one_
 
std::string line_two_
 
std::string int_designator_
 
DateTime epoch_
 
double mean_motion_dt2_
 
double mean_motion_ddt6_
 
double bstar_
 
double inclination_
 
double right_ascending_node_
 
double eccentricity_
 
double argument_perigee_
 
double mean_anomaly_
 
double mean_motion_
 
unsigned int norad_number_
 
unsigned int orbit_number_
 

Static Private Attributes

static const unsigned int TLE_LEN_LINE_DATA = 69
 
static const unsigned int TLE_LEN_LINE_NAME = 22
 

Detailed Description

Processes a two-line element set used to convey OrbitalElements.

Used to extract the various raw fields from a two-line element set.

Constructor & Destructor Documentation

Tle::Tle ( const std::string &  line_one,
const std::string &  line_two 
)
inline

Initialise given the two lines of a tle

Parameters
[in]line_oneTle line one
[in]line_twoTle line two

Here is the call graph for this function:

Tle::Tle ( const std::string &  name,
const std::string &  line_one,
const std::string &  line_two 
)
inline

Initialise given the satellite name and the two lines of a tle

Parameters
[in]nameSatellite name
[in]line_oneTle line one
[in]line_twoTle line two

Here is the call graph for this function:

Tle::Tle ( const Tle tle)
inline

Copy constructor

Parameters
[in]tleTle object to copy from

Member Function Documentation

double Tle::ArgumentPerigee ( const bool  in_degrees) const
inline

Get the argument of perigee

Parameters
in_degreesWhether to return the value in degrees or radians
Returns
the argument of perigee

Here is the call graph for this function:

Here is the caller graph for this function:

double Tle::BStar ( ) const
inline

Get the BSTAR drag term

Returns
the BSTAR drag term

Here is the caller graph for this function:

double Tle::Eccentricity ( ) const
inline

Get the eccentricity

Returns
the eccentricity

Here is the caller graph for this function:

DateTime Tle::Epoch ( ) const
inline

Get the tle epoch

Returns
the tle epoch

Here is the caller graph for this function:

void Tle::ExtractDouble ( const std::string &  str,
int  point_pos,
double &  val 
)
private

Here is the caller graph for this function:

void Tle::ExtractExponential ( const std::string &  str,
double &  val 
)
private

Here is the caller graph for this function:

void Tle::ExtractInteger ( const std::string &  str,
unsigned int &  val 
)
private

Here is the caller graph for this function:

double Tle::Inclination ( bool  in_degrees) const
inline

Get the inclination

Parameters
in_degreesWhether to return the value in degrees or radians
Returns
the inclination

Here is the call graph for this function:

Here is the caller graph for this function:

void Tle::Initialize ( )
private

Here is the caller graph for this function:

std::string Tle::IntDesignator ( ) const
inline

Get the international designator

Returns
the international designator

Here is the caller graph for this function:

static bool Tle::IsValidLineLength ( const std::string &  str)
staticprivate

Here is the caller graph for this function:

std::string Tle::Line1 ( ) const
inline

Get the first line of the tle

Returns
the first line of the tle
std::string Tle::Line2 ( ) const
inline

Get the second line of the tle

Returns
the second line of the tle
static unsigned int Tle::LineLength ( )
inlinestatic

Get the expected tle line length

Returns
the tle line length
double Tle::MeanAnomaly ( const bool  in_degrees) const
inline

Get the mean anomaly

Parameters
in_degreesWhether to return the value in degrees or radians
Returns
the mean anomaly

Here is the call graph for this function:

Here is the caller graph for this function:

double Tle::MeanMotion ( ) const
inline

Get the mean motion

Returns
the mean motion (revolutions per day)

Here is the caller graph for this function:

double Tle::MeanMotionDdt6 ( ) const
inline

Get the second time derivative of mean motion divided by six

Returns
the second time derivative of mean motion divided by six

Here is the caller graph for this function:

double Tle::MeanMotionDt2 ( ) const
inline

Get the first time derivative of the mean motion divided by two

Returns
the first time derivative of the mean motion divided by two

Here is the caller graph for this function:

std::string Tle::Name ( ) const
inline

Get the satellite name

Returns
the satellite name
unsigned int Tle::NoradNumber ( ) const
inline

Get the norad number

Returns
the norad number

Here is the caller graph for this function:

unsigned int Tle::OrbitNumber ( ) const
inline

Get the orbit number

Returns
the orbit number

Here is the caller graph for this function:

double Tle::RightAscendingNode ( const bool  in_degrees) const
inline

Get the right ascension of the ascending node

Parameters
in_degreesWhether to return the value in degrees or radians
Returns
the right ascension of the ascending node

Here is the call graph for this function:

Here is the caller graph for this function:

std::string Tle::ToString ( ) const
inline

Dump this object to a string

Returns
string

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

double Tle::argument_perigee_
private
double Tle::bstar_
private
double Tle::eccentricity_
private
DateTime Tle::epoch_
private
double Tle::inclination_
private
std::string Tle::int_designator_
private
std::string Tle::line_one_
private
std::string Tle::line_two_
private
double Tle::mean_anomaly_
private
double Tle::mean_motion_
private
double Tle::mean_motion_ddt6_
private
double Tle::mean_motion_dt2_
private
std::string Tle::name_
private
unsigned int Tle::norad_number_
private
unsigned int Tle::orbit_number_
private
double Tle::right_ascending_node_
private
const unsigned int Tle::TLE_LEN_LINE_DATA = 69
staticprivate
const unsigned int Tle::TLE_LEN_LINE_NAME = 22
staticprivate

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