KSNumbers
#include <ksnumbers.h>
Public Member Functions | |
KSNumbers (long double jd) | |
void | computeConstantValues () |
dms | constAberr () const |
double | dEcLong () const |
double | dObliq () const |
double | earthEccentricity () const |
CachingDms | earthPerihelionLongitude () const |
long double | getJD () const |
double | julianCenturies () const |
long double | julianDay () const |
double | julianMillenia () const |
const CachingDms * | obliquity () const |
const Eigen::Matrix3d & | p1 () const |
double | p1 (int i1, int i2) const |
const Eigen::Matrix3d & | p1b () const |
double | p1b (int i1, int i2) const |
const Eigen::Matrix3d & | p2 () const |
double | p2 (int i1, int i2) const |
const Eigen::Matrix3d & | p2b () const |
double | p2b (int i1, int i2) const |
dms | sunMeanAnomaly () const |
dms | sunMeanLongitude () const |
dms | sunTrueAnomaly () const |
CachingDms | sunTrueLongitude () const |
void | updateValues (long double jd) |
double | vEarth (int i) const |
Detailed Description
There are several time-dependent values used in position calculations, that are not specific to an object.
This class provides storage for these values, and methods for calculating them for a given date. The numbers include solar data like the true/mean solar anomalies and longitudes, the longitude of the Earth's perihelion, the eccentricity of Earth's orbit, the constant of aberration, the obliquity of the Ecliptic, the effects of Nutation (delta Obliquity and delta Ecliptic longitude), the Julian Day/Century/Millenium, and arrays for computing the precession.
Store several time-dependent astronomical quantities.
- Version
- 1.0
Definition at line 42 of file ksnumbers.h.
Constructor & Destructor Documentation
◆ KSNumbers()
|
explicit |
Constructor.
- Parameters
-
jd Julian Day for which the new instance is initialized
Definition at line 93 of file ksnumbers.cpp.
Member Function Documentation
◆ computeConstantValues()
void KSNumbers::computeConstantValues | ( | ) |
compute constant values that need to be computed only once per instance of the application
Definition at line 111 of file ksnumbers.cpp.
◆ constAberr()
|
inline |
- Returns
- the constant of aberration (20.49 arcsec).
Definition at line 59 of file ksnumbers.h.
◆ dEcLong()
|
inline |
- Returns
- the change in Ecliptic Longitude due to nutation. Value is in degrees.
Definition at line 85 of file ksnumbers.h.
◆ dObliq()
|
inline |
- Returns
- the change in obliquity due to the nutation of Earth's orbit. Value is in degrees
Definition at line 81 of file ksnumbers.h.
◆ earthEccentricity()
|
inline |
- Returns
- eccentricity of Earth's orbit.
Definition at line 77 of file ksnumbers.h.
◆ earthPerihelionLongitude()
|
inline |
- Returns
- the longitude of the Earth's perihelion point.
Definition at line 74 of file ksnumbers.h.
◆ getJD()
|
inline |
- Returns
- the JD for which these values hold (i.e. the last updated JD)
Definition at line 128 of file ksnumbers.h.
◆ julianCenturies()
|
inline |
- Returns
- Julian centuries since J2000
Definition at line 88 of file ksnumbers.h.
◆ julianDay()
|
inline |
- Returns
- Julian Day
Definition at line 91 of file ksnumbers.h.
◆ julianMillenia()
|
inline |
- Returns
- Julian Millenia since J2000
Definition at line 94 of file ksnumbers.h.
◆ obliquity()
|
inline |
- Returns
- the current Obliquity (the angle of inclination between the celestial equator and the ecliptic)
Definition at line 56 of file ksnumbers.h.
◆ p1() [1/2]
|
inline |
Definition at line 110 of file ksnumbers.h.
◆ p1() [2/2]
|
inline |
- Returns
- element of P1 precession array at position (i1, i2)
Definition at line 97 of file ksnumbers.h.
◆ p1b() [1/2]
|
inline |
Definition at line 111 of file ksnumbers.h.
◆ p1b() [2/2]
|
inline |
- Returns
- element of P1B precession array at position (i1, i2)
Definition at line 103 of file ksnumbers.h.
◆ p2() [1/2]
|
inline |
- Returns
- the precession matrix directly
Definition at line 109 of file ksnumbers.h.
◆ p2() [2/2]
|
inline |
- Returns
- element of P2 precession array at position (i1, i2)
Definition at line 100 of file ksnumbers.h.
◆ p2b() [1/2]
|
inline |
Definition at line 112 of file ksnumbers.h.
◆ p2b() [2/2]
|
inline |
- Returns
- element of P2B precession array at position (i1, i2)
Definition at line 106 of file ksnumbers.h.
◆ sunMeanAnomaly()
|
inline |
- Returns
- the mean solar anomaly.
Definition at line 62 of file ksnumbers.h.
◆ sunMeanLongitude()
|
inline |
- Returns
- the mean solar longitude.
Definition at line 65 of file ksnumbers.h.
◆ sunTrueAnomaly()
|
inline |
- Returns
- the true solar anomaly.
Definition at line 68 of file ksnumbers.h.
◆ sunTrueLongitude()
|
inline |
- Returns
- the true solar longitude.
Definition at line 71 of file ksnumbers.h.
◆ updateValues()
void KSNumbers::updateValues | ( | long double | jd | ) |
update all values for the date given as an argument.
- Parameters
-
jd the Julian date for which to compute values
Contributions to the velocity of the Earth referred to the barycenter of the solar system in the J2000 equatorial system Velocities 10^{-8} AU/day Ron & Vondrak method
Definition at line 155 of file ksnumbers.cpp.
◆ vEarth()
|
inline |
Definition at line 130 of file ksnumbers.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 1 2024 18:54:16 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.