Spacecraft Control Framework 1.0
Spacecraft Control Library
Public Member Functions | List of all members
star Class Reference

Star object. More...

#include <sc_star_catalog.h>

Public Member Functions

 star ()
 Default constructor.
 
 star (int id, double VM, double right_ascension, double declination)
 Constructor. More...
 
void set_motion_terms (double parallax, double pm_ascension, double pm_declination, double radialV)
 Set the terms for stellar reduction. More...
 
ml_matrix CalculateVector (double jd_now, double jd_catalog) const
 Calculate the star vector for a given date. More...
 
ml_matrix UnitVector (void) const
 Calculate the unit vector from the catalog right ascension and declination. More...
 
int get_id () const
 Get the star's (Hipparcos) id. More...
 
double get_ascension () const
 Star right ascnension (rad) More...
 
double get_declination () const
 Star declination (rad) More...
 
double get_magnitude () const
 Visual magnitude () More...
 

Detailed Description

Star object.

Includes the terms for correcting the star vector for proper motion.

Todo:
: account for full stellar reduction.

Constructor & Destructor Documentation

◆ star()

star::star ( int  id,
double  VM,
double  right_ascension,
double  declination 
)

Constructor.

Parameters
idInteger ID of star
right_ascensionRight ascension, radians
declinationDeclination, radians
VMVisual magnitude

Member Function Documentation

◆ set_motion_terms()

void star::set_motion_terms ( double  parallax,
double  radialV,
double  pm_ascension,
double  pm_declination 
)

Set the terms for stellar reduction.

Parameters
parallax
radialV
pm_ascension
pm_declination

◆ CalculateVector()

ml_matrix star::CalculateVector ( double  jd_now,
double  jd_catalog 
) const

Calculate the star vector for a given date.

The star unit vector using the right ascension and declination of date.

The default catalog date is for Hipparcos, 2448347.75, which is 1991.25

Parameters
jd_nowCurrent Julian date
jd_catalogCatalog Julian date
Returns
Star unit vector corrected for proper motion

References PI, and ra_dec_to_u().

◆ UnitVector()

ml_matrix star::UnitVector ( void  ) const

Calculate the unit vector from the catalog right ascension and declination.

The star unit vector using the catalog right ascension and declination.

References ra_dec_to_u().

Referenced by near_matrix::near_matrix().

◆ get_id()

int star::get_id ( ) const

Get the star's (Hipparcos) id.

Get Hipparcos ID of star.

◆ get_ascension()

double star::get_ascension ( ) const

Star right ascnension (rad)

Get right ascension (rad)

◆ get_declination()

double star::get_declination ( ) const

Star declination (rad)

Get declination (rad)

◆ get_magnitude()

double star::get_magnitude ( ) const

Visual magnitude ()

Get magnitude.