The Sunrise Calculator computes and displays the times of sunrise and sunset, given a latitude, a longitude and a date. This new version also computes and displays the times of moonrise and moonset.
The widget has six text boxes. Two boxes are used to enter a latitude and a longitude. A third box is for the entry of a date. Press RETURN or ENTER to compute the sunrise and sunset times, which are displayed in a fourth box. Moonrise/moonset times are displayed to the right of the sunrise/sunset times. The other two boxes are used to enter an altitude and a timezone offset.
The widget can make allowances for altitudes of up to 15,240 metres (50,000 feet). The altitude compensation calculation, performed by the widget, is not part of the published algorithm, on which the main sunrise/sunset calculation is based, and should be treated with caution. N.B. No altitude compensation is done for the moonrise/moonset calculations.
The main sunrise/sunset calculation is based on an algorithm published by the US Nautical Almanac Office. Almanac for Computers, 1990, published by Nautical Almanac Office, United States Naval Observatory, Washington, DC 20392.
The moonrise/moonset calculation is based on code by Stephen R. Schmitt published at http://home.att.net/~srschmitt/script_moon_rise_set.html .
The Sunrise Calculator is Copyright © 2006-2015 Harry Whitfield (G6AUC).
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
The Moonrise Calculation Code is Copyright © 2004, Stephen R. Schmitt
The moonrise and moonset code module is a modified version of the
Moonrise, Moonset solver by Stephen R. Schmitt and is made available on these conditions:
"You may use or modify this source code in any way you find useful, provided
that you agree that the author has no warranty, obligations or liability.
You must determine the suitability of this source code for your use."