|
mhuss utils 1.1.5ws | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mhuss.AstroLib.PlanetData
public class PlanetData
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 |
---|
public static final double AU
protected boolean m_initComplete
protected int m_planet
protected double m_jd
protected double m_centuries
protected double m_hourAngle
protected double m_rightAscension
protected double m_declination
protected LocationElements g_polarLEs
protected LocationElements m_polarLEs
protected LocationElements m_eclipticLEs
protected LocationElements m_equatorialLEs
protected LocationElements m_altAzLEs
Constructor Detail |
---|
public PlanetData()
public PlanetData(int planet, double jd, double deltaT, ObsInfo oi)
planet
- Planet number (from Planets class)jd
- Julian day numberoi
- Observer locationpublic PlanetData(int planet, double jd, ObsInfo oi)
Method Detail |
---|
public double calcLon(int planet, double jd, ObsInfo oi)
planet
- Planet number (from Planets class)jd
- Julian day numberoi
- Observer locationpublic void calc(int planet, double jd, double deltaT, ObsInfo oi)
planet
- Planet number (from Planets class)jd
- Julian day numberoi
- Observer locationpublic void calc(int planet, double jd, ObsInfo oi)
public void calc(int planet, double jd, double deltaT, ObsInfo oi, boolean topoc_Corr, boolean lightT_Corr)
planet
- Planet number (from Planets class)jd
- Julian day number (tdt)deltaT
- (in Days)oi
- Observer locationtopoc_Corr
- correct topocentriclightT_Corr
- correct light timeprotected static void TopocReductionEcl(double[] cartVec, double localSiderealTime, double latRad, double obliquity)
cartVec
- equatoriallocalSiderealTime
- in radianslatRad
- Latitude in radianspublic int planet()
public double jd() throws NoInitException
NoInitException
public double hourAngle() throws NoInitException
NoInitException
public double getPolarLat() throws NoInitException
NoInitException
public double getPolarLon() throws NoInitException
NoInitException
public double getPolarRadius() throws NoInitException
NoInitException
public double getSolarLat() throws NoInitException
NoInitException
public double getSolarLon() throws NoInitException
NoInitException
public double getSolarRadius() throws NoInitException
NoInitException
public LocationElements getEclipticXYZ() throws NoInitException
NoInitException
public double getEclipticLat() throws NoInitException
NoInitException
public double getEclipticLon() throws NoInitException
NoInitException
public double getEclipticRadius() throws NoInitException
NoInitException
public double getEquatorialLat() throws NoInitException
NoInitException
public double getEquatorialLon() throws NoInitException
NoInitException
public double getEquatorialRadius() throws NoInitException
NoInitException
public double getAltAzLat() throws NoInitException
NoInitException
public double getAltAzLon() throws NoInitException
NoInitException
public double getAltAzRadius() throws NoInitException
NoInitException
public double getRightAscension() throws NoInitException
NoInitException
public double getDeclination() throws NoInitException
NoInitException
|
mhuss utils 1.1.5ws | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |