utility
Class MoonAge

java.lang.Object
  extended by utility.MoonAge

public class MoonAge
extends java.lang.Object


Field Summary
static double DEG_IN_RADIAN
           
static double EIGHTH_OF_MONTH
           
static double PERIOD
           
 
Constructor Summary
MoonAge()
           
 
Method Summary
static int daysOld(double age)
           
static void flmoon(int n, int nph, JulianDate jdout)
          Gives jd (+- 2 min) of phase nph on lunation n; replaces less accurate Numerical Recipes routine.
static double lunAge(JulianDate jd, int nlun)
          compute age in days of moon since last new, and lunation of last new moon.
static void main(java.lang.String[] args)
           
static java.lang.String moonPhase(JulianDate jd)
          gives the days since last new moon, or New, 1st Qrt, Full, and 3rd Qtr, as appropiate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEG_IN_RADIAN

public static final double DEG_IN_RADIAN
See Also:
Constant Field Values

EIGHTH_OF_MONTH

public static final double EIGHTH_OF_MONTH
See Also:
Constant Field Values

PERIOD

public static final double PERIOD
See Also:
Constant Field Values
Constructor Detail

MoonAge

public MoonAge()
Method Detail

main

public static void main(java.lang.String[] args)

lunAge

public static double lunAge(JulianDate jd,
                            int nlun)
compute age in days of moon since last new, and lunation of last new moon.


flmoon

public static void flmoon(int n,
                          int nph,
                          JulianDate jdout)
Gives jd (+- 2 min) of phase nph on lunation n; replaces less accurate Numerical Recipes routine. This routine implements formulae found in Jean Meeus' *Astronomical Formulae for Calculators*, 2nd edition, Willman-Bell. A very useful book!!

n, nph lunation and phase; nph = 0 new, 1 1st, 2 full, 3 last jdout jd of requested phase


daysOld

public static int daysOld(double age)

moonPhase

public static java.lang.String moonPhase(JulianDate jd)
gives the days since last new moon, or New, 1st Qrt, Full, and 3rd Qtr, as appropiate