All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Acme.Phase

java.lang.Object
   |
   +----Acme.Phase

public class Phase
extends Object
Phase - phase of the moon calculations

Adapted from "moontool.c" by John Walker, Release 2.0.

Fetch the software.
Fetch the entire Acme package.


Constructor Index

 o Phase()

Method Index

 o jtime(Date)
Convert internal date and time to astronomical Julian time (i.e.
 o phase(double, RefDouble, RefDouble, RefDouble, RefDouble, RefDouble, RefDouble)
Calculate phase of moon as a fraction.
 o phasehunt5(double, double[])
Find time of phases of the moon which surround the current date.

Constructors

 o Phase
 public Phase()

Methods

 o jtime
 public static double jtime(Date t)
Convert internal date and time to astronomical Julian time (i.e. Julian date plus day fraction, expressed as a double).

 o phasehunt5
 public static void phasehunt5(double sdate,
                               double phases[])
Find time of phases of the moon which surround the current date. Five phases are found, starting and ending with the new moons which bound the current lunation.

 o phase
 public static double phase(double pdate,
                            RefDouble pphaseR,
                            RefDouble mageR,
                            RefDouble distR,
                            RefDouble angdiaR,
                            RefDouble sudistR,
                            RefDouble suangdiaR)
Calculate phase of moon as a fraction.

Parameters:
pdate - time for which the phase is requested, as from jtime()
pphaseR - Ref for illuminated fraction of Moon's disk
mageR - Ref for age of moon in days
distR - Ref for distance in km from center of Earth
angdiaR - Ref for angular diameter in degrees as seen from Earth
sudistR - Ref for distance in km to Sun
suangdiaR - Ref for Sun's angular diameter
Returns:
terminator phase angle as a fraction of a full circle (i.e., 0 to 1)

All Packages  Class Hierarchy  This Package  Previous  Next  Index

ACME Java  ACME Labs