|
KosherJava Zmanim Homepage Includes a dynamic Zmanim calendar generator |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.zmanim.util.AstronomicalCalculator
net.sourceforge.zmanim.util.JSuntimeCalculator
Implementation of sunrise and sunset methods to calculate astronomical times. This calculator uses the Java algorithm written by Jonathan Stott that is based on the implementation by NOAA - National Oceanic and Atmospheric Administration's Surface Radiation Research Branch. NOAA's implementation is based on equations from Astronomical Algorithms by Jean Meeus. Jonathan's implementation was released under the GPL. Added to the algorithm is an adjustment of the zenith to account for elevation.
NOAACalculator
Constructor Summary | |
JSuntimeCalculator()
Deprecated. |
Method Summary | |
String |
getCalculatorName()
Deprecated. This class is based on the NOAA algorithm but does not return calculations that match the NOAA algorithm JavaScript implementation. The calculations are about 2 minutes off. This call has been replaced by the NOAACalculator class. |
double |
getUTCSunrise(AstronomicalCalendar astronomicalCalendar,
double zenith,
boolean adjustForElevation)
Deprecated. A method that calculates UTC sunrise as well as any time based on an angle above or below sunrise. |
double |
getUTCSunset(AstronomicalCalendar astronomicalCalendar,
double zenith,
boolean adjustForElevation)
Deprecated. A method that calculates UTC sunset as well as any time based on an angle above or below sunset. |
Methods inherited from class net.sourceforge.zmanim.util.AstronomicalCalculator |
adjustZenith, getDefault, getElevationAdjustment, getRefraction, getSolarRadius, setRefraction, setSolarRadius |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JSuntimeCalculator()
Method Detail |
public String getCalculatorName()
getCalculatorName
in class AstronomicalCalculator
NOAACalculator.getCalculatorName()
public double getUTCSunrise(AstronomicalCalendar astronomicalCalendar, double zenith, boolean adjustForElevation)
AstronomicalCalculator
getUTCSunrise
in class AstronomicalCalculator
astronomicalCalendar
- Used to calculate day of year.zenith
- the azimuth below the vertical zenith of 90 degrees. for
sunrise typically the zenith
used for
the calculation uses geometric zenith of 90° and
adjusts
this slightly to account for
solar refraction and the sun's radius. Another example would
be AstronomicalCalendar.getBeginNauticalTwilight()
that passes AstronomicalCalendar.NAUTICAL_ZENITH
to
this method.
Double.NaN
will be returned.
ZmanimException
- if the year entered == 2000. This calculator can't properly
deal with the year 2000. It can properly calculate times for
years <> 2000.NOAACalculator.getUTCSunrise(AstronomicalCalendar, double, boolean)
,
AstronomicalCalculator.getUTCSunrise(AstronomicalCalendar,
double, boolean)
public double getUTCSunset(AstronomicalCalendar astronomicalCalendar, double zenith, boolean adjustForElevation)
AstronomicalCalculator
getUTCSunset
in class AstronomicalCalculator
astronomicalCalendar
- Used to calculate day of year.zenith
- the azimuth below the vertical zenith of 90°. For
sunset typically the zenith
used for the
calculation uses geometric zenith of 90° and
adjusts
this slightly to account for
solar refraction and the sun's radius. Another example would
be AstronomicalCalendar.getEndNauticalTwilight()
that
passes AstronomicalCalendar.NAUTICAL_ZENITH
to this
method.
Double.NaN
will be returned.
ZmanimException
- if the year entered == 2000. This calculator can't properly
deal with the year 2000. It can properly calculate times for
years <> 2000.NOAACalculator.getUTCSunset(AstronomicalCalendar, double, boolean)
,
AstronomicalCalculator.getUTCSunset(AstronomicalCalendar,
double, boolean)
|
KosherJava Zmanim Homepage Includes a dynamic Zmanim calendar generator |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |