|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectastro.SimpleSid
public class SimpleSid
Class to calculate the sidereal time for a given location and Date. The algorithm is linear in time. Returned sid time is in radians!
| Field Summary | |
|---|---|
protected static double[] |
Const
Constants for linear tranformation of solar time into sidereal time. |
| Fields inherited from interface astro.SiderealTiming |
|---|
SOL_TO_SID |
| Fields inherited from interface vec_math.PI |
|---|
HOUR, PIHALF, PITWO, RADIAN |
| Constructor Summary | |
|---|---|
SimpleSid()
|
|
| Method Summary | |
|---|---|
double |
getLocalSidereal(Site site,
Date time)
The implementation of the SiderealTime interface. |
protected double |
getSid(double jdfjd)
Rather simple sidereal time calculater. |
double |
getSiderealGMT(Date time)
The implementation of the SiderealTime interface. |
static void |
main(String[] arg)
Prints the current sidereal time or the sidereal time of the given date. |
String |
toString()
A simple string describing the algorithm. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static double[] Const
| Constructor Detail |
|---|
public SimpleSid()
| Method Detail |
|---|
protected double getSid(double jdfjd)
jdfjd - The UTC time in julian date.
SiderealTimepublic double getSiderealGMT(Date time)
SiderealTime interface. Converts the
Date object into julian date using the Astro.JD(Date)
method.
getSiderealGMT in interface SiderealTimingtime - The UTC-based time.
public double getLocalSidereal(Site site,
Date time)
SiderealTime interface. Considers the
longitude of the observer for calculating the sidereal time.
getLocalSidereal in interface SiderealTimingsite - The location of the observer.time - The UTC-based time.public String toString()
toString in class Objectpublic static void main(String[] arg)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||