public class JSuntimeCalculator extends AstronomicalCalculator
NOAACalculator| Constructor and Description |
|---|
JSuntimeCalculator()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
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(Calendar calendar,
GeoLocation geoLocation,
double zenith,
boolean adjustForElevation)
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 |
getUTCSunset(Calendar calendar,
GeoLocation geoLocation,
double zenith,
boolean adjustForElevation)
Deprecated.
This class is based on the NOAA algorithm but does not return calculations that match the NOAAA
algorithm JavaScript implementation. The calculations are about 2 minutes off. This call has been
replaced by the NOAACalculator class.
|
adjustZenith, clone, getDefault, getEarthRadius, getElevationAdjustment, getRefraction, getSolarRadius, setEarthRadius, setRefraction, setSolarRadiuspublic JSuntimeCalculator()
public String getCalculatorName()
AstronomicalCalculatorgetCalculatorName in class AstronomicalCalculatorNOAACalculator.getCalculatorName()public double getUTCSunrise(Calendar calendar, GeoLocation geoLocation, double zenith, boolean adjustForElevation)
AstronomicalCalculatorgetUTCSunrise in class AstronomicalCalculatorcalendar - Used to calculate day of year.geoLocation - The location information used for astronomical calculating sun times.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(Calendar, GeoLocation, double, boolean),
AstronomicalCalculator.getUTCSunrise(Calendar, GeoLocation, double, boolean)public double getUTCSunset(Calendar calendar, GeoLocation geoLocation, double zenith, boolean adjustForElevation)
AstronomicalCalculatorgetUTCSunset in class AstronomicalCalculatorcalendar - Used to calculate day of year.geoLocation - The location information used for astronomical calculating sun times.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(Calendar, GeoLocation, double, boolean),
AstronomicalCalculator.getUTCSunset(Calendar, GeoLocation, double, boolean)Copyright © 2004 - 2011 Eliyahu Hershfeld. All Rights Reserved. Released under the LGPL 2.1 license