|
MRTKLIB 0.7.14
Modernized GNSS Positioning Library
|
MRTKLIB Astronomy Module — Sun and moon position computation. More...
#include "mrtklib/mrtk_time.h"Go to the source code of this file.
Functions | |
| void | sunmoonpos_eci (gtime_t tut, double *rsun, double *rmoon) |
| Compute sun and moon position in ECI. | |
| void | sunmoonpos (gtime_t tutc, const double *erpv, double *rsun, double *rmoon, double *gmst) |
| Compute sun and moon position in ECEF. | |
MRTKLIB Astronomy Module — Sun and moon position computation.
This header provides functions for computing the positions of the Sun and Moon in ECI and ECEF coordinate frames, extracted from rtkcmn.c with zero algorithmic changes.
Definition in file mrtk_astro.h.
| void sunmoonpos | ( | gtime_t | tutc, |
| const double * | erpv, | ||
| double * | rsun, | ||
| double * | rmoon, | ||
| double * | gmst ) |
Compute sun and moon position in ECEF.
| [in] | tutc | Time in UTC (GPST) |
| [in] | erpv | ERP value {xp,yp,ut1_utc,lod} (rad,rad,s,s/d) |
| [out] | rsun | Sun position in ECEF (m) (NULL: not output) |
| [out] | rmoon | Moon position in ECEF (m) (NULL: not output) |
| [out] | gmst | GMST (rad) (NULL: not output) |
Definition at line 135 of file mrtk_astro.c.
References eci2ecef(), matmul(), sunmoonpos_eci(), time_str(), timeadd(), and trace().
Referenced by satantoff(), tidedisp(), and windupcorr().
| void sunmoonpos_eci | ( | gtime_t | tut, |
| double * | rsun, | ||
| double * | rmoon ) |
Compute sun and moon position in ECI.
| [in] | tut | Time in UT1 (GPST) |
| [out] | rsun | Sun position in ECI (m) (NULL: not output) |
| [out] | rmoon | Moon position in ECI (m) (NULL: not output) |
Definition at line 78 of file mrtk_astro.c.
References ast_args(), AU, D2R, epoch2time(), RE_WGS84, time_str(), timediff(), and trace().
Referenced by sunmoonpos().