|
🛰️航天仿真算法库 SpaceAST 0.0.1
|
#include <JplDe.hpp>
Public 类型 | |
| enum | EDataCode { eNotAvailable = -1 , eMercury = 0 , eVenus = 1 , eEarth = 2 , eMars = 3 , eJupiter = 4 , eSaturn = 5 , eUranus = 6 , eNeptune = 7 , ePluto = 8 , eMoon = 9 , eSun = 10 , eSSBarycenter = 11 , eEMBarycenter = 12 } |
Public 成员函数 | |
| errc_t | open (const char *filepath) |
| errc_t | openDefault () |
| bool | isOpen () const |
| void | close () |
| errc_t | getPosVelICRF (const TimePoint &time, EDataCode target, EDataCode referenceBody, Vector3d &pos, Vector3d &vel) |
| errc_t | getPosVelICRF (const TimePoint &time, EDataCode target, EDataCode referenceBody, Vector3d &pos, Vector3d *vel) |
| errc_t | getPosICRF (const TimePoint &time, EDataCode target, EDataCode referenceBody, Vector3d &pos) |
| errc_t | getPosICRF_TT (const JulianDate jdTT, EDataCode target, EDataCode referenceBody, Vector3d &pos) |
| errc_t | getNutation (const TimePoint &time, double &nutLong, double &nutObl) |
| errc_t | getLibration (const TimePoint &time, Vector3d &ang, Vector3d &angRate) |
| errc_t | getLibration (const TimePoint &time, Vector3d &ang) |
| errc_t | getLibration (const TimePoint &time, Euler &ang) |
| uint32_t | getEphemVersion () const |
| errc_t | getInterval (TimeInterval &interval) const |
JPL DE文件接口类
|
inline |
获取JPL DE文件的星历版本
| - | 星历版本 |
| errc_t ast::JplDe::getInterval | ( | TimeInterval & | interval | ) | const |
获取JPL DE星历数据的时间间隔
| interval | - 时间间隔 |
| - | 错误码 |
获取对应时间点的月面天平动相关角度(Euler)
| time | - 时间点 |
| ang | - 从ICRF到月球惯性主轴坐标系的转角(rad)
|
| - | 错误码 |
| errc_t ast::JplDe::getLibration | ( | const TimePoint & | time, |
| Vector3d & | ang ) |
获取对应时间点的月面天平动角相关角度
| time | - 时间点 |
| ang | - 从ICRF到月球惯性主轴坐标系的转角(rad)
|
| - | 错误码 |
| errc_t ast::JplDe::getLibration | ( | const TimePoint & | time, |
| Vector3d & | ang, | ||
| Vector3d & | angRate ) |
获取对应时间点的月面天平动相关角度
| time | - 时间点 |
| ang | - 从ICRF到月球惯性主轴坐标系的转角(rad)
|
| angRate | - 转动角速率(rad/s) |
| - | 错误码 |
| errc_t ast::JplDe::getNutation | ( | const TimePoint & | time, |
| double & | nutLong, | ||
| double & | nutObl ) |
获取对应时间点的章动角
| time | - 时间点 |
| nutLong | - 章动经度(rad) |
| nutObl | - 章动倾角(rad) |
| - | 错误码 |
| errc_t ast::JplDe::getPosICRF | ( | const TimePoint & | time, |
| EDataCode | target, | ||
| EDataCode | referenceBody, | ||
| Vector3d & | pos ) |
获取对应时间点的目标天体在参考天体下的位置
位置向量的参考系是参考天体为中心的ICRF系
| time | - 时间点 |
| target | - 目标天体 |
| referenceBody- | 参考天体 |
| pos | - 位置向量 |
| - | 错误码 |
| errc_t ast::JplDe::getPosICRF_TT | ( | const JulianDate | jdTT, |
| EDataCode | target, | ||
| EDataCode | referenceBody, | ||
| Vector3d & | pos ) |
获取对应时间点的目标天体在参考天体下的位置
位置向量的参考系是参考天体为中心的ICRF系
| jdTT | - 儒略日(动力学时间) |
| target | - 目标天体 |
| referenceBody- | 参考天体 |
| pos | - 位置向量 |
| - | 错误码 |
| errc_t ast::JplDe::getPosVelICRF | ( | const TimePoint & | time, |
| EDataCode | target, | ||
| EDataCode | referenceBody, | ||
| Vector3d & | pos, | ||
| Vector3d & | vel ) |
获取对应时间点的目标天体在参考天体下的位置和速度
位置向量和速度向量的参考系是参考天体为中心的ICRF系
| time | - 时间点 |
| target | - 目标天体 |
| referenceBody- | 参考天体 |
| pos | - 位置向量 |
| vel | - 速度向量 |
| - | 错误码 |
| bool ast::JplDe::isOpen | ( | ) | const |
检查JPL DE文件是否已打开
| - | 是否已打开 |
| errc_t ast::JplDe::open | ( | const char * | filepath | ) |
打开JPL DE文件
| filepath | - JPL DE文件路径 |
| - | 错误码 |