|
Spacecraft Control Framework 1.0
Spacecraft Control Library
|
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... | |
Star object.
Includes the terms for correcting the star vector for proper motion.
| star::star | ( | int | id, |
| double | VM, | ||
| double | right_ascension, | ||
| double | declination | ||
| ) |
Constructor.
| id | Integer ID of star |
| right_ascension | Right ascension, radians |
| declination | Declination, radians |
| VM | Visual magnitude |
| void star::set_motion_terms | ( | double | parallax, |
| double | radialV, | ||
| double | pm_ascension, | ||
| double | pm_declination | ||
| ) |
Set the terms for stellar reduction.
| parallax | |
| radialV | |
| pm_ascension | |
| pm_declination |
| 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
| jd_now | Current Julian date |
| jd_catalog | Catalog Julian date |
References PI, and ra_dec_to_u().
| 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().
| int star::get_id | ( | ) | const |
Get the star's (Hipparcos) id.
Get Hipparcos ID of star.
| double star::get_ascension | ( | ) | const |
Star right ascnension (rad)
Get right ascension (rad)
| double star::get_declination | ( | ) | const |
Star declination (rad)
Get declination (rad)
| double star::get_magnitude | ( | ) | const |
Visual magnitude ()
Get magnitude.