public class SimpleSid extends Object implements SiderealTiming, PI
| Modifier and Type | Field and Description |
|---|---|
protected static double[] |
Const
Constants for linear tranformation of solar time into sidereal time.
|
SOL_TO_SID| Constructor and Description |
|---|
SimpleSid() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected static double[] Const
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()
public static void main(String[] arg)