|
mhuss AstroLib 1.1.4a | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.mhuss.AstroLib.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. |
| 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)
public static double normalizeDegrees(double d)
public static double normalizeRadians(double r)
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 AstroLib 1.1.4a | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||