public class SunTimesCalculator extends AstronomicalCalculator
| Constructor and Description |
|---|
SunTimesCalculator() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCalculatorName()
Returns the name of the algorithm.
|
double |
getUTCSunrise(Calendar calendar,
GeoLocation geoLocation,
double zenith,
boolean adjustForElevation)
A method that calculates UTC sunrise as well as any time based on an angle above or below sunrise.
|
double |
getUTCSunset(Calendar calendar,
GeoLocation geoLocation,
double zenith,
boolean adjustForElevation)
A method that calculates UTC sunset as well as any time based on an angle above or below sunset.
|
adjustZenith, clone, getDefault, getEarthRadius, getElevationAdjustment, getRefraction, getSolarRadius, setEarthRadius, setRefraction, setSolarRadiuspublic SunTimesCalculator()
public String getCalculatorName()
AstronomicalCalculatorgetCalculatorName in class AstronomicalCalculatorAstronomicalCalculator.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.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.AstronomicalCalculator.getUTCSunset(Calendar, GeoLocation, double, boolean)Copyright © 2004 - 2011 Eliyahu Hershfeld. All Rights Reserved. Released under the LGPL 2.1 license