edu.pdx.starview.calc
Class KSNumbers

java.lang.Object
  extended byedu.pdx.starview.calc.KSNumbers

public class KSNumbers
extends java.lang.Object

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. Credits: This code was based on the source for KStars-20040229

Author:
Dave Camarillo, Jason Harris

Field Summary
static int NUTTERMS
           
 
Constructor Summary
KSNumbers(double jd)
          Constructor.
 
Method Summary
 SVAngle constAberr()
           
 double dEcLong()
           
 double dObliq()
           
 double earthEccentricity()
           
 SVAngle earthPerihelionLongitude()
           
 void getDeclAnddObq(SVAngle outdEcl, SVAngle outdObq)
          Returns the nutition in longitude and obliquity
 double julianCenturies()
           
 double julianDay()
           
 double julianMillenia()
           
 SVAngle obliquity()
           
 double p1(int i1, int i2)
           
 double p1b(int i1, int i2)
           
 double p2(int i1, int i2)
           
 double p2b(int i1, int i2)
           
 SVAngle sunMeanAnomaly()
           
 SVAngle sunMeanLongitude()
           
 SVAngle sunTrueAnomaly()
           
 SVAngle sunTrueLongitude()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NUTTERMS

public static final int NUTTERMS
See Also:
Constant Field Values
Constructor Detail

KSNumbers

public KSNumbers(double jd)
Constructor.

Parameters:
jd - Julian Date that the calculations should be made for.
Method Detail

obliquity

public SVAngle obliquity()

constAberr

public SVAngle constAberr()

sunMeanAnomaly

public SVAngle sunMeanAnomaly()

sunMeanLongitude

public SVAngle sunMeanLongitude()

sunTrueAnomaly

public SVAngle sunTrueAnomaly()

sunTrueLongitude

public SVAngle sunTrueLongitude()

earthPerihelionLongitude

public SVAngle earthPerihelionLongitude()

earthEccentricity

public double earthEccentricity()

dObliq

public double dObliq()

dEcLong

public double dEcLong()

julianCenturies

public double julianCenturies()

julianDay

public double julianDay()

julianMillenia

public double julianMillenia()

p1

public double p1(int i1,
                 int i2)

p2

public double p2(int i1,
                 int i2)

p1b

public double p1b(int i1,
                  int i2)

p2b

public double p2b(int i1,
                  int i2)

getDeclAnddObq

public void getDeclAnddObq(SVAngle outdEcl,
                           SVAngle outdObq)
Returns the nutition in longitude and obliquity

Parameters:
outdEcl - output nutition in longitude
outdObq - output nutition in obliquidty