kstars
KSNumbers Class Reference
There are several time-dependent values used in position calculations, that are not specific to an object. More...
#include <ksnumbers.h>
Public Member Functions | |
dms | constAberr () const |
double | dEcLong () const |
double | dObliq () const |
double | earthEccentricity () const |
dms | earthPerihelionLongitude () const |
double | julianCenturies () const |
long double | julianDay () const |
double | julianMillenia () const |
KSNumbers (long double jd) | |
const dms * | obliquity () const |
double | p1 (int i1, int i2) const |
double | p1b (int i1, int i2) const |
double | p2 (int i1, int i2) const |
double | p2b (int i1, int i2) const |
dms | sunMeanAnomaly () const |
dms | sunMeanLongitude () const |
dms | sunTrueAnomaly () const |
dms | sunTrueLongitude () const |
void | updateValues (long double jd) |
double | vEarth (int i) const |
~KSNumbers () |
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 43 of file ksnumbers.h.
Constructor & Destructor Documentation
KSNumbers::KSNumbers | ( | long double | jd | ) |
KSNumbers::~KSNumbers | ( | ) |
Member Function Documentation
dms KSNumbers::constAberr | ( | ) | const [inline] |
double KSNumbers::dEcLong | ( | ) | const [inline] |
- Returns:
- the change in Ecliptic Longitude due to nutation. Value is in degrees.
Definition at line 82 of file ksnumbers.h.
double KSNumbers::dObliq | ( | ) | const [inline] |
- Returns:
- the change in obliquity due to the nutation of Earth's orbit. Value is in degrees
Definition at line 78 of file ksnumbers.h.
double KSNumbers::earthEccentricity | ( | ) | const [inline] |
dms KSNumbers::earthPerihelionLongitude | ( | ) | const [inline] |
double KSNumbers::julianCenturies | ( | ) | const [inline] |
long double KSNumbers::julianDay | ( | ) | const [inline] |
double KSNumbers::julianMillenia | ( | ) | const [inline] |
const dms* KSNumbers::obliquity | ( | ) | const [inline] |
- Returns:
- the current Obliquity (the angle of inclination between the celestial equator and the ecliptic)
Definition at line 53 of file ksnumbers.h.
double KSNumbers::p1 | ( | int | i1, | |
int | i2 | |||
) | const [inline] |
- Returns:
- element of P1 precession array at position [i1][i2]
Definition at line 94 of file ksnumbers.h.
double KSNumbers::p1b | ( | int | i1, | |
int | i2 | |||
) | const [inline] |
- Returns:
- element of P1B precession array at position [i1][i2]
Definition at line 100 of file ksnumbers.h.
double KSNumbers::p2 | ( | int | i1, | |
int | i2 | |||
) | const [inline] |
- Returns:
- element of P2 precession array at position [i1][i2]
Definition at line 97 of file ksnumbers.h.
double KSNumbers::p2b | ( | int | i1, | |
int | i2 | |||
) | const [inline] |
- Returns:
- element of P2B precession array at position [i1][i2]
Definition at line 103 of file ksnumbers.h.
dms KSNumbers::sunMeanAnomaly | ( | ) | const [inline] |
dms KSNumbers::sunMeanLongitude | ( | ) | const [inline] |
dms KSNumbers::sunTrueAnomaly | ( | ) | const [inline] |
dms KSNumbers::sunTrueLongitude | ( | ) | const [inline] |
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
Contibutions 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 164 of file ksnumbers.cpp.
double KSNumbers::vEarth | ( | int | i | ) | const [inline] |
Definition at line 110 of file ksnumbers.h.
The documentation for this class was generated from the following files: