COSMOS core
1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
|
Namespaces | |
Cosmos | |
Functions | |
int32_t | loc_clear (locstruc *loc) |
Initialize locstruc. More... | |
int32_t | loc_clear (locstruc &loc) |
int32_t | pos_clear (locstruc *loc) |
Initialize posstruc. More... | |
int32_t | pos_clear (locstruc &loc) |
int32_t | att_clear (attstruc &att) |
Initialize attstruc. More... | |
int32_t | pos_extra (locstruc *loc) |
Calculate Extra position information. More... | |
int32_t | pos_extra (locstruc &loc) |
int32_t | pos_icrf (locstruc *loc) |
Set Barycentric position. More... | |
int32_t | pos_icrf (locstruc &loc) |
int32_t | pos_eci (locstruc *loc) |
Set ECI position. More... | |
int32_t | pos_eci (locstruc &loc) |
int32_t | pos_sci (locstruc *loc) |
Set SCI position. More... | |
int32_t | pos_sci (locstruc &loc) |
int32_t | pos_geoc (locstruc *loc) |
Set Geocentric position. More... | |
int32_t | pos_geoc (locstruc &loc) |
int32_t | pos_selc (locstruc *loc) |
Set Selenocentric position. More... | |
int32_t | pos_selc (locstruc &loc) |
int32_t | pos_selg (locstruc *loc) |
Set Selenographic position. More... | |
int32_t | pos_selg (locstruc &loc) |
int32_t | pos_geos (locstruc *loc) |
Set Geographic position. More... | |
int32_t | pos_geos (locstruc &loc) |
int32_t | pos_geod (locstruc *loc) |
Set Geodetic position. More... | |
int32_t | pos_geod (locstruc &loc) |
int32_t | pos_icrf2eci (locstruc *loc) |
Convert Barycentric to ECI. More... | |
int32_t | pos_icrf2eci (locstruc &loc) |
int32_t | pos_eci2icrf (locstruc *loc) |
Convert ECI to Barycentric. More... | |
int32_t | pos_eci2icrf (locstruc &loc) |
int32_t | pos_icrf2sci (locstruc *loc) |
Convert Barycentric to SCI. More... | |
int32_t | pos_icrf2sci (locstruc &loc) |
int32_t | pos_sci2icrf (locstruc *loc) |
Convert SCI to Barycentric. More... | |
int32_t | pos_sci2icrf (locstruc &loc) |
int32_t | pos_eci2geoc (locstruc *loc) |
Convert ECI to GEOC. More... | |
int32_t | pos_eci2geoc (locstruc &loc) |
int32_t | pos_geoc2eci (locstruc *loc) |
Convert GEOC to ECI. More... | |
int32_t | pos_geoc2eci (locstruc &loc) |
int32_t | pos_geoc2geos (locstruc *loc) |
Convert GEOC to GEOS. More... | |
int32_t | pos_geoc2geos (locstruc &loc) |
int32_t | pos_geos2geoc (locstruc *loc) |
Convert GEOS to GEOC. More... | |
int32_t | pos_geos2geoc (locstruc &loc) |
int32_t | geoc2geod (cartpos &geoc, geoidpos &geod) |
Convert GEOC to GEOD. More... | |
int32_t | pos_geoc2geod (locstruc *loc) |
Update locstruc GEOC to GEOD. More... | |
int32_t | pos_geoc2geod (locstruc &loc) |
int32_t | geod2geoc (geoidpos &geod, cartpos &geoc) |
Convert GEOD to GEOC. More... | |
int32_t | pos_geod2geoc (locstruc *loc) |
Update GEOD to GEOC in locstruc. More... | |
int32_t | pos_geod2geoc (locstruc &loc) |
int32_t | pos_sci2selc (locstruc *loc) |
Convert SCI to SELC. More... | |
int32_t | pos_sci2selc (locstruc &loc) |
int32_t | pos_selc2sci (locstruc *loc) |
Convert SELC to SCI. More... | |
int32_t | pos_selc2sci (locstruc &loc) |
int32_t | pos_selc2selg (locstruc *loc) |
Convert SELC to SELG. More... | |
int32_t | pos_selc2selg (locstruc &loc) |
int32_t | pos_selg2selc (locstruc *loc) |
int32_t | pos_selg2selc (locstruc &loc) |
double | rearth (double lat) |
int32_t | att_extra (locstruc *loc) |
Calculate Extra attitude information. More... | |
int32_t | att_extra (locstruc &loc) |
int32_t | att_icrf2geoc (locstruc *loc) |
int32_t | att_icrf2geoc (locstruc &loc) |
int32_t | att_geoc2icrf (locstruc *loc) |
int32_t | att_geoc2icrf (locstruc &loc) |
int32_t | att_geoc (locstruc *loc) |
int32_t | att_geoc (locstruc &loc) |
int32_t | att_icrf2selc (locstruc *loc) |
int32_t | att_icrf2selc (locstruc &loc) |
int32_t | att_selc2icrf (locstruc *loc) |
int32_t | att_selc2icrf (locstruc &loc) |
int32_t | att_selc (locstruc *loc) |
int32_t | att_selc (locstruc &loc) |
int32_t | att_icrf2lvlh (locstruc *loc) |
int32_t | att_icrf2lvlh (locstruc &loc) |
int32_t | att_icrf (locstruc *loc) |
int32_t | att_icrf (locstruc &loc) |
int32_t | att_planec2lvlh (locstruc *loc) |
Convert ITRS attitude to LVLH attitude. More... | |
int32_t | att_planec2lvlh (locstruc &loc) |
int32_t | att_lvlh2planec (locstruc *loc) |
Convert LVLH attitude to ITRS attitude. More... | |
int32_t | att_lvlh2planec (locstruc &loc) |
int32_t | att_lvlh2icrf (locstruc *loc) |
Convert LVLH attitude to ICRF attitude. More... | |
int32_t | att_lvlh2icrf (locstruc &loc) |
int32_t | att_lvlh (locstruc *loc) |
int32_t | att_lvlh (locstruc &loc) |
int32_t | att_planec2topo (locstruc *loc) |
Planetocentric to Topo attitude. More... | |
int32_t | att_planec2topo (locstruc &loc) |
int32_t | att_topo2planec (locstruc *loc) |
Topocentric to Planetocentric attitude. More... | |
int32_t | att_topo2planec (locstruc &loc) |
int32_t | att_topo (locstruc *loc) |
int32_t | att_topo (locstruc &loc) |
int32_t | loc_update (locstruc *loc) |
Synchronize all frames in location structure. More... | |
int32_t | loc_update (locstruc &loc) |
int32_t | teme2true (double ep0, rmatrix *rm) |
int32_t | true2teme (double ep0, rmatrix *rm) |
int32_t | true2pef (double utc, rmatrix *rm) |
int32_t | pef2true (double utc, rmatrix *rm) |
int32_t | pef2itrs (double utc, rmatrix *rm) |
int32_t | itrs2pef (double utc, rmatrix *rm) |
int32_t | mean2true (double ep0, rmatrix *pm) |
Rotate Mean of Epoch to True of Epoch. More... | |
int32_t | true2mean (double ep0, rmatrix *pm) |
Rotate True of Epoch to Mean of Epoch. More... | |
int32_t | mean2j2000 (double ep0, rmatrix *pm) |
Rotate Mean of Epoch to J2000. More... | |
int32_t | itrs2gcrf (double utc, rmatrix *rnp, rmatrix *rm, rmatrix *drm, rmatrix *ddrm) |
ITRS to J2000 rotation matrix. More... | |
int32_t | gcrf2itrs (double utc, rmatrix *rnp, rmatrix *rm, rmatrix *drm, rmatrix *ddrm) |
J2000 to ITRS rotation matrix. More... | |
int32_t | j20002mean (double ep1, rmatrix *pm) |
int32_t | gcrf2j2000 (rmatrix *rm) |
int32_t | j20002gcrf (rmatrix *rm) |
int32_t | mean2mean (double ep0, double ep1, rmatrix *pm) |
int32_t | kep2eci (kepstruc &kep, cartpos &eci) |
int32_t | eci2kep (cartpos &eci, kepstruc &kep) |
int32_t | geoc2topo (gvector source, rvector targetgeoc, rvector &topo) |
Geocentric to Topocentric. More... | |
int32_t | body2topo (Vector source, Vector target, Vector &topo) |
Body Centric to Topocentric. More... | |
int32_t | topo2azel (rvector tpos, float &az, float &el) |
int32_t | topo2azel (Vector tpos, float &az, float &el) |
int | lines2eci (double utc, vector< tlestruc >lines, cartpos &eci) |
Return position from TLE set. More... | |
int | sgp4 (double utc, tlestruc tle, cartpos &pos_teme) |
int32_t | eci2tle (double utc, cartpos eci, tlestruc &tle) |
TLE from ECI. More... | |
int | tle2eci (double utc, tlestruc tle, cartpos &eci) |
tlestruc | get_line (uint16_t index, vector< tlestruc > lines) |
Get TLE from array of TLE's. More... | |
int32_t | loadTLE (char *fname, tlestruc &tle) |
Load TLE from file. TODO!!! create new class for dealing with TLEs. More... | |
int32_t | load_lines (string fname, vector< tlestruc > &lines) |
Load TLE from file. TODO!!! Rename Function to loadTle and create new class for dealing with TLEs. More... | |
int32_t | load_lines_multi (string fname, vector< tlestruc > &lines) |
int32_t | load_stk (string filename, stkstruc &stkdata) |
Load STK elements. More... | |
int | stk2eci (double utc, stkstruc &stk, cartpos &eci) |
ECI from STK data. More... | |
std::ostream & | operator<< (std::ostream &out, const cartpos &a) |
std::istream & | operator>> (std::istream &in, cartpos &a) |
std::ostream & | operator<< (std::ostream &out, const cposstruc &a) |
std::istream & | operator>> (std::istream &in, cposstruc &a) |
std::ostream & | operator<< (std::ostream &out, const geoidpos &a) |
std::istream & | operator>> (std::istream &in, geoidpos &a) |
std::ostream & | operator<< (std::ostream &out, const spherpos &a) |
std::istream & | operator>> (std::istream &in, spherpos &a) |
std::ostream & | operator<< (std::ostream &out, const aattstruc &a) |
std::istream & | operator>> (std::istream &in, aattstruc &a) |
std::ostream & | operator<< (std::ostream &out, const quatatt &a) |
std::istream & | operator>> (std::istream &in, quatatt &a) |
std::ostream & | operator<< (std::ostream &out, const dcmatt &a) |
std::istream & | operator>> (std::istream &in, dcmatt &a) |
std::ostream & | operator<< (std::ostream &out, const qatt &a) |
std::istream & | operator>> (std::istream &in, qatt &a) |
std::ostream & | operator<< (std::ostream &out, const kepstruc &a) |
std::istream & | operator>> (std::istream &in, kepstruc &a) |
std::ostream & | operator<< (std::ostream &out, const bodypos &a) |
std::istream & | operator<< (std::istream &in, bodypos &a) |
std::ostream & | operator<< (std::ostream &out, const extrapos &a) |
std::istream & | operator>> (std::istream &in, extrapos &a) |
std::ostream & | operator<< (std::ostream &out, const extraatt &a) |
std::istream & | operator>> (std::istream &in, extraatt &a) |
std::ostream & | operator<< (std::ostream &out, const posstruc &a) |
std::istream & | operator>> (std::istream &in, posstruc &a) |
std::ostream & | operator<< (std::ostream &out, const attstruc &a) |
std::istream & | operator>> (std::istream &in, attstruc &a) |
std::ostream & | operator<< (std::ostream &out, const locstruc &a) |
std::istream & | operator>> (std::istream &in, locstruc &a) |
int32_t | pos_eci2selc (locstruc *loc) |
int32_t | pos_eci2sci (locstruc *loc) |
int32_t | pos_sci2eci (locstruc *loc) |
int32_t | pos_selc2eci (locstruc *loc) |
int32_t | pos_eci2selc (locstruc &loc) |
int32_t | pos_eci2sci (locstruc &loc) |
int32_t | pos_sci2eci (locstruc &loc) |
int32_t | pos_selc2eci (locstruc &loc) |
double | mjd2year (double mjd) |
Year from MJD. More... | |
double | mjd2gmst (double mjd) |
int32_t | geos2geoc (spherpos *geos, cartpos *geoc) |
int32_t | geoc2geos (cartpos *geoc, spherpos *geos) |
int32_t | selg2selc (geoidpos *selg, cartpos *selc) |
int32_t | tle2sgp4 (tlestruc tle, sgp4struc &sgp4) |
int32_t | sgp42tle (sgp4struc sgp4, tlestruc &tle) |
int | tle_checksum (char *line) |
int32_t | eci2tlestring (cartpos eci, string &tle, std::string ref_tle, double bstar=0) |
int32_t loc_clear | ( | locstruc * | loc | ) |
int32_t loc_clear | ( | locstruc & | loc | ) |
int32_t pos_clear | ( | locstruc * | loc | ) |
int32_t pos_clear | ( | locstruc & | loc | ) |
int32_t att_clear | ( | attstruc & | att | ) |
int32_t pos_extra | ( | locstruc * | loc | ) |
Calculate Extra position information.
Calculate things like sun position and insolation, and elements that are used in conversion, like libration and J2000 rotation matrices.
loc | locstruc with the current position and those to be updated. |
int32_t pos_extra | ( | locstruc & | loc | ) |
int32_t pos_icrf | ( | locstruc * | loc | ) |
int32_t pos_icrf | ( | locstruc & | loc | ) |
int32_t pos_eci | ( | locstruc * | loc | ) |
int32_t pos_eci | ( | locstruc & | loc | ) |
int32_t pos_sci | ( | locstruc * | loc | ) |
int32_t pos_sci | ( | locstruc & | loc | ) |
int32_t pos_geoc | ( | locstruc * | loc | ) |
int32_t pos_geoc | ( | locstruc & | loc | ) |
int32_t pos_selc | ( | locstruc * | loc | ) |
int32_t pos_selc | ( | locstruc & | loc | ) |
int32_t pos_selg | ( | locstruc * | loc | ) |
int32_t pos_selg | ( | locstruc & | loc | ) |
int32_t pos_geos | ( | locstruc * | loc | ) |
int32_t pos_geos | ( | locstruc & | loc | ) |
int32_t pos_geod | ( | locstruc * | loc | ) |
int32_t pos_geod | ( | locstruc & | loc | ) |
int32_t pos_icrf2eci | ( | locstruc * | loc | ) |
Convert Barycentric to ECI.
Propagate the position found in the Barycentric slot of the supplied locstruc to the Earth Centered Inertial slot, performing all relevant updates.
loc | Working locstruc |
int32_t pos_icrf2eci | ( | locstruc & | loc | ) |
int32_t pos_eci2icrf | ( | locstruc * | loc | ) |
Convert ECI to Barycentric.
Propagate the position found in the Earth Centered Inertial slot of the supplied locstruc to the Barycentric slot, performing all relevant updates.
loc | Working locstruc |
int32_t pos_eci2icrf | ( | locstruc & | loc | ) |
int32_t pos_icrf2sci | ( | locstruc * | loc | ) |
Convert Barycentric to SCI.
Propagate the position found in the Barycentric slot of the supplied locstruc to the Selene Centered Inertial slot, performing all relevant updates.
loc | Working locstruc |
int32_t pos_icrf2sci | ( | locstruc & | loc | ) |
int32_t pos_sci2icrf | ( | locstruc * | loc | ) |
Convert SCI to Barycentric.
Propagate the position found in the Selene Centered Inertial slot of the supplied locstruc to the Barycentric slot, performing all relevant updates.
loc | Working locstruc |
int32_t pos_sci2icrf | ( | locstruc & | loc | ) |
int32_t pos_eci2geoc | ( | locstruc * | loc | ) |
int32_t pos_eci2geoc | ( | locstruc & | loc | ) |
int32_t pos_geoc2eci | ( | locstruc * | loc | ) |
int32_t pos_geoc2eci | ( | locstruc & | loc | ) |
int32_t pos_geoc2geos | ( | locstruc * | loc | ) |
int32_t pos_geoc2geos | ( | locstruc & | loc | ) |
int32_t pos_geos2geoc | ( | locstruc * | loc | ) |
int32_t pos_geos2geoc | ( | locstruc & | loc | ) |
int32_t pos_geoc2geod | ( | locstruc * | loc | ) |
int32_t pos_geoc2geod | ( | locstruc & | loc | ) |
int32_t pos_geod2geoc | ( | locstruc * | loc | ) |
int32_t pos_geod2geoc | ( | locstruc & | loc | ) |
int32_t pos_sci2selc | ( | locstruc * | loc | ) |
int32_t pos_sci2selc | ( | locstruc & | loc | ) |
int32_t pos_selc2sci | ( | locstruc * | loc | ) |
int32_t pos_selc2sci | ( | locstruc & | loc | ) |
int32_t pos_selc2selg | ( | locstruc * | loc | ) |
int32_t pos_selc2selg | ( | locstruc & | loc | ) |
int32_t pos_selg2selc | ( | locstruc * | loc | ) |
int32_t pos_selg2selc | ( | locstruc & | loc | ) |
double rearth | ( | double | lat | ) |
int32_t att_extra | ( | locstruc * | loc | ) |
Calculate Extra attitude information.
Calculate things like conversion matrix for ICRF to Body and Body to ICRF.
loc | locstruc with the current location and those to be updated. |
int32_t att_extra | ( | locstruc & | loc | ) |
int32_t att_icrf2geoc | ( | locstruc * | loc | ) |
int32_t att_icrf2geoc | ( | locstruc & | loc | ) |
int32_t att_geoc2icrf | ( | locstruc * | loc | ) |
int32_t att_geoc2icrf | ( | locstruc & | loc | ) |
int32_t att_geoc | ( | locstruc * | loc | ) |
int32_t att_geoc | ( | locstruc & | loc | ) |
int32_t att_icrf2selc | ( | locstruc * | loc | ) |
int32_t att_icrf2selc | ( | locstruc & | loc | ) |
int32_t att_selc2icrf | ( | locstruc * | loc | ) |
int32_t att_selc2icrf | ( | locstruc & | loc | ) |
int32_t att_selc | ( | locstruc * | loc | ) |
int32_t att_selc | ( | locstruc & | loc | ) |
int32_t att_icrf2lvlh | ( | locstruc * | loc | ) |
int32_t att_icrf2lvlh | ( | locstruc & | loc | ) |
int32_t att_icrf | ( | locstruc * | loc | ) |
int32_t att_icrf | ( | locstruc & | loc | ) |
int32_t att_planec2lvlh | ( | locstruc * | loc | ) |
Convert ITRS attitude to LVLH attitude.
Calculate the rotation quaternion for taking a vector from LVLH to Body given the similar quaternion for ITRS
loc | Location structure to propagate the changes in |
int32_t att_planec2lvlh | ( | locstruc & | loc | ) |
int32_t att_lvlh2planec | ( | locstruc * | loc | ) |
Convert LVLH attitude to ITRS attitude.
Calculate the rotation quaternion for taking a vector from ITRS to Body given the similar quaternion for LVLH
loc | Location structure to propagate the changes in |
int32_t att_lvlh2planec | ( | locstruc & | loc | ) |
int32_t att_lvlh2icrf | ( | locstruc * | loc | ) |
Convert LVLH attitude to ICRF attitude.
Calculate the rotation quaternion for taking a vector from ICRF to Body given the similar quaternion for LVLH
loc | Location structure to propagate the changes in |
int32_t att_lvlh2icrf | ( | locstruc & | loc | ) |
int32_t att_lvlh | ( | locstruc * | loc | ) |
int32_t att_lvlh | ( | locstruc & | loc | ) |
int32_t att_planec2topo | ( | locstruc * | loc | ) |
Planetocentric to Topo attitude.
Calculate the rotation quaternion for taking a vector between Topo and the closest planetocentric system and update whichever is older.
loc | Location structure to update |
int32_t att_planec2topo | ( | locstruc & | loc | ) |
int32_t att_topo2planec | ( | locstruc * | loc | ) |
Topocentric to Planetocentric attitude.
Calculate the rotation quaternion for taking a vector between Topo and the closest planetocentric system and update whichever is older.
loc | Location structure to update |
int32_t att_topo2planec | ( | locstruc & | loc | ) |
int32_t att_topo | ( | locstruc * | loc | ) |
int32_t att_topo | ( | locstruc & | loc | ) |
int32_t loc_update | ( | locstruc * | loc | ) |
Synchronize all frames in location structure.
Work through provided location structure, first identifying the frame that is most up to date, then updating all other frames to match.
loc | locstruc to be synchronized |
int32_t loc_update | ( | locstruc & | loc | ) |
int32_t teme2true | ( | double | ep0, |
rmatrix * | rm | ||
) |
int32_t true2teme | ( | double | ep0, |
rmatrix * | rm | ||
) |
int32_t true2pef | ( | double | utc, |
rmatrix * | rm | ||
) |
int32_t pef2true | ( | double | utc, |
rmatrix * | rm | ||
) |
int32_t pef2itrs | ( | double | utc, |
rmatrix * | rm | ||
) |
int32_t itrs2pef | ( | double | utc, |
rmatrix * | rm | ||
) |
int32_t mean2true | ( | double | ep0, |
rmatrix * | pm | ||
) |
Rotate Mean of Epoch to True of Epoch.
Calculate the rotation matrix for converting coordinates from a system based on the Mean orientation for that Epoch to one based on the True orientation. Adds effects of Nutation.
ep0 | Epoch, in units of Modified Julian Day |
pm | Rotation matrix |
int32_t true2mean | ( | double | ep0, |
rmatrix * | pm | ||
) |
Rotate True of Epoch to Mean of Epoch.
Calculate the rotation matrix for converting coordinates from a system based on the True orientation for that Epoch to one based on the Mean orientation. Removes effects of Nutation.
ep0 | Epoch, in units of Modified Julian Day |
pm | Rotation matrix |
int32_t mean2j2000 | ( | double | ep0, |
rmatrix * | pm | ||
) |
Rotate Mean of Epoch to J2000.
Calculate the rotation matrix for converting coordinates from a system based on the Mean of the indicated Epoch, to one based on J2000. Reflects the effects of precession.
ep0 | Epoch, in units of Modified Julian Day |
pm | Rotation matrix |
ITRS to J2000 rotation matrix.
Rotation matrix for transformation from an ITRS coordinate system of date to the J2000 system. Includes all effects of Precession, Nutation, Sidereal Time and Polar Motion.
utc | Epoch to change from, UTC in MJD |
rnp | Pointer to ITRF rotation matrix. |
rm | pointer to rotation matrix |
drm | pointer to rotation matrix derivative |
ddrm | pointer to rotation matrix 2nd derivative |
J2000 to ITRS rotation matrix.
Rotation matrix for transformation from a J2000 coordinate system to the International Terrestrial Reference System of date. Includes all effects of Precession, Nutation, Sidereal Time and Polar Motion.
utc | Epoch to change to, UTC in MJD |
rnp | Pointer to ITRF rotation matrix. |
rm | pointer to rotation matrix |
drm | pointer to rotation matrix derivative |
ddrm | pointer to rotation matrix second derivative |
int32_t j20002mean | ( | double | ep1, |
rmatrix * | pm | ||
) |
Rotation matrix for transformation from a J2000 coordinate system to one based on the Mean of the Epoch.
ep1 | Epoch to change to, UTC in MJD |
pm | pointer to rotation matrix |
int32_t gcrf2j2000 | ( | rmatrix * | rm | ) |
int32_t j20002gcrf | ( | rmatrix * | rm | ) |
int32_t mean2mean | ( | double | ep0, |
double | ep1, | ||
rmatrix * | pm | ||
) |
Geocentric to Topocentric.
Calculate the Topocentric position of a Target with respect to a Source.
source | Geodetic location of Source. |
targetgeoc | Geocentric location of Target. |
topo | Resulting Topocentric position. |
Body Centric to Topocentric.
Calculate the Topocentric position of a Target with respect to a Source.
source | Body centered location of Source. |
target | Body centered location of Target. |
topo | Resulting Topocentric position. |
int32_t topo2azel | ( | rvector | tpos, |
float & | az, | ||
float & | el | ||
) |
Topocentric to Azimuth and Eleveation Calculate the Azimuth and Elevation of a position based on its Topocentric position
tpos | Topocentric position |
az | Calculated azimuth in radians |
el | Calculated elevation in radians |
int32_t topo2azel | ( | Vector | tpos, |
float & | az, | ||
float & | el | ||
) |
Topocentric to Azimuth and Eleveation Calculate the Azimuth and Elevation of a position based on its Topocentric position
tpos | Topocentric position |
az | Calculated azimuth in radians |
el | Calculated elevation in radians |
Return position from TLE set.
Find the TLE closest to, but not exceeding the provided utc, then return the position in ECI coordinates.
utc | Coordinated Universal Time in Modified Julian Days. |
lines | Vector of TLE's. |
eci | Pointer to cartpos in ECI frame. |
SGP4 propagator algoritm
utc | Specified time as Modified Julian Date |
tle | Two Line Element structure, given as pointer to a tlestruc |
pos_teme | result from SGP4 algorithm is a cartesian state given in TEME frame, as pointer to a cartpos |
TLE from ECI.
Convert an ECI state vector into an SGP4 TLE
utc | UTC time of ECI State Vector and TLE |
eci | State Vector to convert, stored as cartpos |
tle | Two Line Element, stored as tlestruc |
Convert a Two Line Element into a location at the specified time.
utc | Specified time as Modified Julian Date |
tle | Two Line Element, given as pointer to a tlestruc |
eci | Converted location, given as pointer to a cartpos |
Get TLE from array of TLE's.
Return the indexed entry from an array of tlestruc. If the index is larger than the size of the array, an empty TLE with time set to zero is returned.
index | Index into the array. |
lines | Array of TLE's. |
int32_t loadTLE | ( | char * | fname, |
tlestruc & | tle | ||
) |
Load TLE from file. TODO!!! create new class for dealing with TLEs.
Load Two Line Element file into TLE structure
fname | Name of file containing elements |
tle | structure to contain TLE elements |
int32_t load_lines | ( | string | fname, |
vector< tlestruc > & | lines | ||
) |
Load TLE from file. TODO!!! Rename Function to loadTle and create new class for dealing with TLEs.
Load Two Line Element file into array of TLE's
fname | Name of file containing elements |
lines | Array of tlestruc structures to contain elements |
int32_t load_lines_multi | ( | string | fname, |
vector< tlestruc > & | lines | ||
) |
Load Two Line Element file for multiple satellites into array of TLE's
fname | Name of file containing elements |
lines | Array of tlestruc structures to contain elements |
int32_t load_stk | ( | string | filename, |
stkstruc & | stkdata | ||
) |
Load STK elements.
Load a table of locations calculated in STK. Format is expected to be J2000; position, velocity and acceleration; in X, Y, and Z; all in meters.
filename | Name of file containing positions. |
stkdata | stkstruc holding satellite position. |
ECI from STK data.
Return an interpolated cartpos from time and STK data
utc | UTC in Modified Julian Days |
stk | Structure containing array of STK positions |
eci | Structure to return position in |
std::istream& operator>> | ( | std::istream & | in, |
cartpos & | a | ||
) |
std::istream& operator>> | ( | std::istream & | in, |
cposstruc & | a | ||
) |
std::istream& operator>> | ( | std::istream & | in, |
geoidpos & | a | ||
) |
std::istream& operator>> | ( | std::istream & | in, |
spherpos & | a | ||
) |
std::istream& operator>> | ( | std::istream & | in, |
aattstruc & | a | ||
) |
std::istream& operator>> | ( | std::istream & | in, |
quatatt & | a | ||
) |
std::istream& operator>> | ( | std::istream & | in, |
dcmatt & | a | ||
) |
std::istream& operator>> | ( | std::istream & | in, |
qatt & | a | ||
) |
std::istream& operator>> | ( | std::istream & | in, |
kepstruc & | a | ||
) |
std::istream& operator<< | ( | std::istream & | in, |
bodypos & | a | ||
) |
std::istream& operator>> | ( | std::istream & | in, |
extrapos & | a | ||
) |
std::istream& operator>> | ( | std::istream & | in, |
extraatt & | a | ||
) |
std::istream& operator>> | ( | std::istream & | in, |
posstruc & | a | ||
) |
std::istream& operator>> | ( | std::istream & | in, |
attstruc & | a | ||
) |
std::istream& operator>> | ( | std::istream & | in, |
locstruc & | a | ||
) |
int32_t pos_eci2selc | ( | locstruc * | loc | ) |
int32_t pos_eci2sci | ( | locstruc * | loc | ) |
int32_t pos_sci2eci | ( | locstruc * | loc | ) |
int32_t pos_selc2eci | ( | locstruc * | loc | ) |
int32_t pos_eci2selc | ( | locstruc & | loc | ) |
int32_t pos_eci2sci | ( | locstruc & | loc | ) |
int32_t pos_sci2eci | ( | locstruc & | loc | ) |
int32_t pos_selc2eci | ( | locstruc & | loc | ) |
double mjd2year | ( | double | mjd | ) |
Year from MJD.
Return the Decimal Year for the provided MJD
mjd | Modified Julian Data |
double mjd2gmst | ( | double | mjd | ) |
int tle_checksum | ( | char * | line | ) |
int32_t eci2tlestring | ( | cartpos | eci, |
string & | tle, | ||
std::string | ref_tle, | ||
double | bstar = 0 |
||
) |