mhuss utils 1.1.5ws

com.mhuss.AstroLib
Class PlanetData

java.lang.Object
  extended by com.mhuss.AstroLib.PlanetData

public class PlanetData
extends java.lang.Object

This class handles planetary motion calculations and conversions.


Field Summary
static double AU
           
protected  LocationElements g_polarLEs
           
protected  LocationElements m_altAzLEs
           
protected  double m_centuries
           
protected  double m_declination
           
protected  LocationElements m_eclipticLEs
           
protected  LocationElements m_equatorialLEs
           
protected  double m_hourAngle
           
protected  boolean m_initComplete
           
protected  double m_jd
           
protected  int m_planet
           
protected  LocationElements m_polarLEs
           
protected  double m_rightAscension
           
 
Constructor Summary
PlanetData()
          Default constructor.
PlanetData(int planet, double jd, double deltaT, ObsInfo oi)
          Explicit (all parameters) constructor.
PlanetData(int planet, double jd, ObsInfo oi)
           
 
Method Summary
 void calc(int planet, double jd, double deltaT, ObsInfo oi)
          Calculate the data for a given planet, julian day, and location.
 void calc(int planet, double jd, double deltaT, ObsInfo oi, boolean topoc_Corr, boolean lightT_Corr)
          Calculate the data for a given planet, julian day, and location.
 void calc(int planet, double jd, ObsInfo oi)
           
 double calcLon(int planet, double jd, ObsInfo oi)
          This calculates all LocationElements, then returns the longitude.
 double getAltAzLat()
          Get the Alt-Az latitude.
 double getAltAzLon()
          Get the Alt-Az longitude.
 double getAltAzRadius()
          Get the Alt-Az radius.
 double getDeclination()
          Get the declination in radians.
 double getEclipticLat()
          Get the ecliptic latitude.
 double getEclipticLon()
          Get the ecliptic longitude.
 double getEclipticRadius()
          Get the ecliptic radius.
 LocationElements getEclipticXYZ()
          Get the geocentric ecliptic cartesian Coords x, y, z.
 double getEquatorialLat()
          Get the equatorial latitude (y).
 double getEquatorialLon()
          Get the equatorial longitude (x).
 double getEquatorialRadius()
          Get the equatorial radius (z).
 double getPolarLat()
          Get the polar latitude.
 double getPolarLon()
          Get the polar longitude.
 double getPolarRadius()
          Get the polar radius.
 double getRightAscension()
          Get the right ascension in radians.
 double getSolarLat()
          Get the Solar ecliptic latitude in radians (Geocentric ecliptical coordinates of the Sun, usually close to zero)
 double getSolarLon()
          Get the geocentric ecliptic longitude of the Sun in radians
 double getSolarRadius()
          Get the solar radius of the Earth.
 double hourAngle()
          Get the hour angle.
 double jd()
          Get the Julian day number.
 int planet()
          Get the Planets number.
protected static void TopocReductionEcl(double[] cartVec, double localSiderealTime, double latRad, double obliquity)
          Reduces cartesian ecliptical coordinates from geocentric to topocentric
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AU

public static final double AU
See Also:
Constant Field Values

m_initComplete

protected boolean m_initComplete

m_planet

protected int m_planet

m_jd

protected double m_jd

m_centuries

protected double m_centuries

m_hourAngle

protected double m_hourAngle

m_rightAscension

protected double m_rightAscension

m_declination

protected double m_declination

g_polarLEs

protected LocationElements g_polarLEs

m_polarLEs

protected LocationElements m_polarLEs

m_eclipticLEs

protected LocationElements m_eclipticLEs

m_equatorialLEs

protected LocationElements m_equatorialLEs

m_altAzLEs

protected LocationElements m_altAzLEs
Constructor Detail

PlanetData

public PlanetData()
Default constructor.


PlanetData

public PlanetData(int planet,
                  double jd,
                  double deltaT,
                  ObsInfo oi)
Explicit (all parameters) constructor.

Parameters:
planet - Planet number (from Planets class)
jd - Julian day number
oi - Observer location

PlanetData

public PlanetData(int planet,
                  double jd,
                  ObsInfo oi)
Method Detail

calcLon

public double calcLon(int planet,
                      double jd,
                      ObsInfo oi)
This calculates all LocationElements, then returns the longitude.
Longitude is split out because it gets used most often.

Parameters:
planet - Planet number (from Planets class)
jd - Julian day number
oi - Observer location

calc

public void calc(int planet,
                 double jd,
                 double deltaT,
                 ObsInfo oi)
Calculate the data for a given planet, julian day, and location.
This function must be called (directly or via constructor) before calling any of the other functions in this class.

Parameters:
planet - Planet number (from Planets class)
jd - Julian day number
oi - Observer location

calc

public void calc(int planet,
                 double jd,
                 ObsInfo oi)

calc

public void calc(int planet,
                 double jd,
                 double deltaT,
                 ObsInfo oi,
                 boolean topoc_Corr,
                 boolean lightT_Corr)
Calculate the data for a given planet, julian day, and location.
This function must be called (directly or via constructor) before calling any of the other functions in this class.

Parameters:
planet - Planet number (from Planets class)
jd - Julian day number (tdt)
deltaT - (in Days)
oi - Observer location
topoc_Corr - correct topocentric
lightT_Corr - correct light time

TopocReductionEcl

protected static void TopocReductionEcl(double[] cartVec,
                                        double localSiderealTime,
                                        double latRad,
                                        double obliquity)
Reduces cartesian ecliptical coordinates from geocentric to topocentric

Parameters:
cartVec - equatorial
localSiderealTime - in radians
latRad - Latitude in radians

planet

public int planet()
Get the Planets number. Example: Planets.MERCURY


jd

public double jd()
          throws NoInitException
Get the Julian day number.

Throws:
NoInitException

hourAngle

public double hourAngle()
                 throws NoInitException
Get the hour angle.

Throws:
NoInitException

getPolarLat

public double getPolarLat()
                   throws NoInitException
Get the polar latitude. (Heliocentric polar coordinates)

Throws:
NoInitException

getPolarLon

public double getPolarLon()
                   throws NoInitException
Get the polar longitude. (Heliocentric polar coordinates)

Throws:
NoInitException

getPolarRadius

public double getPolarRadius()
                      throws NoInitException
Get the polar radius. (Distance to sun)

Throws:
NoInitException

getSolarLat

public double getSolarLat()
                   throws NoInitException
Get the Solar ecliptic latitude in radians (Geocentric ecliptical coordinates of the Sun, usually close to zero)

Throws:
NoInitException

getSolarLon

public double getSolarLon()
                   throws NoInitException
Get the geocentric ecliptic longitude of the Sun in radians

Throws:
NoInitException

getSolarRadius

public double getSolarRadius()
                      throws NoInitException
Get the solar radius of the Earth. (Distance Earth to Sun)

Throws:
NoInitException

getEclipticXYZ

public LocationElements getEclipticXYZ()
                                throws NoInitException
Get the geocentric ecliptic cartesian Coords x, y, z. Add. by Strickling

Throws:
NoInitException

getEclipticLat

public double getEclipticLat()
                      throws NoInitException
Get the ecliptic latitude. Mod. by Strickling, geocentric polar coordinates

Throws:
NoInitException

getEclipticLon

public double getEclipticLon()
                      throws NoInitException
Get the ecliptic longitude. Mod. by Strickling, geocentric polar coordinates in radians

Throws:
NoInitException

getEclipticRadius

public double getEclipticRadius()
                         throws NoInitException
Get the ecliptic radius. Mod. by Strickling, Distance to Earth

Throws:
NoInitException

getEquatorialLat

public double getEquatorialLat()
                        throws NoInitException
Get the equatorial latitude (y). Cartesian Coord-System

Throws:
NoInitException

getEquatorialLon

public double getEquatorialLon()
                        throws NoInitException
Get the equatorial longitude (x). Cartesian Coord-System

Throws:
NoInitException

getEquatorialRadius

public double getEquatorialRadius()
                           throws NoInitException
Get the equatorial radius (z). Cartesian Coord-System

Throws:
NoInitException

getAltAzLat

public double getAltAzLat()
                   throws NoInitException
Get the Alt-Az latitude. (Converted into polar coordinates)

Throws:
NoInitException

getAltAzLon

public double getAltAzLon()
                   throws NoInitException
Get the Alt-Az longitude. Radians, south is 0 deg (Converted into polar coordinates)

Throws:
NoInitException

getAltAzRadius

public double getAltAzRadius()
                      throws NoInitException
Get the Alt-Az radius. (Converted into polar coordinates)

Throws:
NoInitException

getRightAscension

public double getRightAscension()
                         throws NoInitException
Get the right ascension in radians.

Throws:
NoInitException

getDeclination

public double getDeclination()
                      throws NoInitException
Get the declination in radians.

Throws:
NoInitException

mhuss utils 1.1.5ws

bottom text