|
mhuss utils 1.1.5ws | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mhuss.AstroLib.AstroOps
public class AstroOps
AstroOps is a 'catch-all' class that performs some useful calculation functions that didn't fit anywhere else.
| Constructor Summary | |
|---|---|
AstroOps()
|
|
| Method Summary | |
|---|---|
static double |
greenwichSiderealTime(double jd)
Calculates the sidereal UTC time. |
static double |
meanObliquity(double t)
Calculates the mean obliquity at a given time. |
static double |
normalizeDegrees(double d)
Reduce an angle in degrees to the range (0 <= deg < 360) |
static double |
normalizeRadians(double r)
Reduce an angle in radians to the range (0 <= rad < 2Pi) |
static int |
quadrant(double radians)
Returns the quadrant (0, 1, 2, or 3) of the specified angle. |
static double |
toDays(int hours)
Converts the hour to a day fraction. |
static double |
toMillenia(double jd)
Convert a Julian day value to Julian millenia referenced to epoch J2000. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AstroOps()
| Method Detail |
|---|
public static double meanObliquity(double t)
t - Time in julian centuries from J2000.public static double greenwichSiderealTime(double jd)
jd - Julian day
public static double toDays(int hours)
hours - (0..23)
public static double toMillenia(double jd)
jd - Julian day number
public static double normalizeDegrees(double d)
d - Value in degrees
public static double normalizeRadians(double r)
r - Value in radians
public static int quadrant(double radians)
This function is useful in figuring out dates of lunar phases and solstices/equinoxes. If the solar longitude is in one quadrant at the start of a day, but in a different quadrant at the end of a day, then we know that there must have been a solstice or equinox during that day. Also, if (lunar longitude - solar longitude) changes quadrants between the start of a day and the end of a day, we know there must have been a lunar phase change during that day.
radians - Angle in Radians
|
mhuss utils 1.1.5ws | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||