Implementation of sunrise and sunset methods to calculate astronomical times. This implementation is a port of the C++ algorithm written by Ken Bloom for the sourceforge.net Zmanim project. Ken's algorithm is based on the US Naval Almanac algorithm. Added to Ken's code is adjustment of the zenith to account for elevation. More...
Public Member Functions | |
override double | GetUtcSunrise (IAstronomicalCalendar astronomicalCalendar, double zenith, bool adjustForElevation) |
A method that calculates UTC sunrise as well as any time based on an angle above or below sunrise. This abstract method is implemented by the classes that extend this class. | |
override double | GetUtcSunset (IAstronomicalCalendar astronomicalCalendar, double zenith, bool adjustForElevation) |
A method that calculates UTC sunset as well as any time based on an angle above or below sunset. This abstract method is implemented by the classes that extend this class. | |
Properties | |
override string | CalculatorName [get] |
Gets the name of the calculator/. |
Implementation of sunrise and sunset methods to calculate astronomical times. This implementation is a port of the C++ algorithm written by Ken Bloom for the sourceforge.net Zmanim project. Ken's algorithm is based on the US Naval Almanac algorithm. Added to Ken's code is adjustment of the zenith to account for elevation.
<author>Ken Bloom</author> <author>Eliyahu Hershfeld</author>
Changed to LGPL with permission from the authors.
override double Zmanim.Calculator.ZmanimCalculator.GetUtcSunrise | ( | IAstronomicalCalendar | astronomicalCalendar, | |
double | zenith, | |||
bool | adjustForElevation | |||
) | [virtual] |
A method that calculates UTC sunrise as well as any time based on an angle above or below sunrise. This abstract method is implemented by the classes that extend this class.
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. | |
adjustForElevation |
Implements Zmanim.Calculator.AstronomicalCalculator.
override double Zmanim.Calculator.ZmanimCalculator.GetUtcSunset | ( | IAstronomicalCalendar | astronomicalCalendar, | |
double | zenith, | |||
bool | adjustForElevation | |||
) | [virtual] |
A method that calculates UTC sunset as well as any time based on an angle above or below sunset. This abstract method is implemented by the classes that extend this class.
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. | |
adjustForElevation |
Implements Zmanim.Calculator.AstronomicalCalculator.
override string Zmanim.Calculator.ZmanimCalculator.CalculatorName [get] |
Gets the name of the calculator/.
Reimplemented from Zmanim.Calculator.AstronomicalCalculator.