The library provides data about the Sun and the Moon like the times of Sunrise, Sunset, Moon rise and Moon set, and more, according to place and date. for the phase of the moon there are two algorithms, one is based on the day of the moon month in the Hebrew Calendar, the other on the Julian calendar. The Sunrise and Sunset times vary according to the value of Zenith angle. The following conventions are in use: Official 90.8333 (90� 50') Civil - 96� Nautical - 102� Astronomical - 108� The values can be used by their names to be selected using the method Zenith. The library uses the Official value as default,
The rise an set results were checked against this site Sun & Moon Tables and found accurate within one minute difference.
Returns an array of 5 doubles: - Moon's phase in radians. - Moon's Age in days - Moon's angular diameter in arcminutes - Moon's elongation in radians - Moon's brightness
GetMoonData2 (juliandayAsDouble) AsDouble()
Returns an array of 5 doubles: - Moon's phase in radians. - Moon's Age in days - Moon's angular diameter in arcminutes - Moon's elongation in radians - Moon's brightness using Julian Day as parameter.
Returns an array of 3 doubles: - Sun's distance in Astronomical Units AU (1 Astronomical Unit = 149,598,000 kilometers) - The Sun's angular diameter - The sun's brightness (magnitude)
GetSunData2 (juliandayAsDouble) AsDouble()
Returns an array of 3 doubles: - Sun's distance in Astronomical Units AU. (1 Astronomical Unit = 149,598,000 kilometers) - The Sun's angular diameter - The sun's brightness (magnitude) using Julian Day as parameter.
Returns the Moonrise and Moonset times in an array of two strings. If there is no rise or set at the specified date, the returned string is "--:--".
NAUTICALAsDouble
OFFICIALAsDouble
Sun (dayAsInt, monthAsInt, yearAsInt, latitudeAsDouble, longitudeAsDouble, deltahourAsDouble) AsString()
Returns the Sunrise and Sunset times in an array of two strings. At Latitudes greater then 65 or smaller then -65 there are cases that there is no sunrise and sunset. The result in this case is "--:--"