Sunrise Calculator
Harry Whitfield


Sunrise Calculator computes and displays the times of sunrise and sunset, given a latitude, a longitude and a date.

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 calculation is based, and should be treated with caution.

This new version also computes and displays the times of moonrise and moonset.

1.0.1 - initial release.
1.1 - added altitude compensation code.
1.2 - added brushed metal graphics.
1.3 - added civil, nautical and astronomical sunrise/sunset calculations to the original "official" calculation.
1.4.1 - added moonrise/moonset calculations.
1.4.2 - added dock icon.
1.5 - internal changes.


13551 Downloads
Version 1.5 - Updated August 23, 2007

Comments for Sunrise Calculator


rob_grange - September 24, 2007
exelet little widget

I'm a landsscape photographer and its really usefull, but it would be even better if it took the lat long infomation from my gps!

Rob
This comment applies to version 1.5

punkteleos - April 11, 2006
Nice widget, thanks.

Understand that as an American it is my duty to be Americentric, so I was wondering if you might add an automatic daylight savings adjustment for us.

Also, as a runner, I am frequently more concerned with the end of civil twilight, or when it really gets dark, and whether there will be any moonlight. I've always used the site listed below. I'm not sure how extensive you care to be or whether twilight calculations are any different, but I thought I might put in a request for these calculations.
http://aa.usno.navy.mil/data/docs/RS_OneDay.html
This comment applies to version 1.2

Michel, from Tours - February 18, 2006
Thanks, Harry! In fact, getting higher (in altitude) is like moving eastwards for a sea-level observer, or advancing in time... nice horizon!
Now, how about those living under sea-level? ;))

3 minutes and 22 seconds, is it? I'm surprised it be that much. Great for a declaration of love: one can take his time!

Thanks for sharing your knowledge. Hope tomorrow will be sunny!
This comment applies to version 1.0.1

Harry Whitfield - February 18, 2006
Michel, from Tours: At 899 feet (274 metres) on the third platform of the Eiffel Tower, I reckon you would (today) have 3 minutes 22 seconds for abstract emotion (or to boil an egg).
This comment applies to version 1.0.1

Michel, from Tours - February 17, 2006
@Harry Whitfield,
Hi, and thanks for committing yourself to what was meant to be a point of theory (for the pleasure of precision) more than a personnaly required field. I know the equation gets rather complex if all parameters were computed. Moreover, those of us living above a significant altitude are a minority, in terms of what percentage I ignore. My concern, more as a dreamer than as a scientist, is to wonder on the privilege of an observer at the top of the Eiffel tower 900 feet above Paris, of seeing the sun rise a few minutes before low down pedestrians! Just a number of minutes he would translate in abstract emotion :) So you see, nothing really inquisitive in my mind!
This comment applies to version 1.0.1

Dutchman - February 17, 2006
I just tryed it out by using google earth to find my house and pulling the lat/long from that. I was going to add the comment about altitude too...but somebody else already considered that. Interested in altitude ranges from Death Valley to Everest. Then If I time it and notice a difference, I know what difference my local terrian makes - even more useful information. Nifty little widget, become like Caine from Kung-Fu and watch the sun rise every morning. It is time for me me to go, you pebble snatcher!
This comment applies to version 1.0.1

Harry Whitfield - February 17, 2006
Michel, from Tours: Disregard my last entry which was based on information gleaned from the web. The variation in sunrise/sunset times with altitude depends on a number of factors including latitude. At an altitude of 1000m, you see about 1 degree further, which at the equator would make a change of 4 minutes to sunset and sunrise times. At 51 30 N (London), it currently gives a change of nearly 7 minutes. At the summit of Everest, the change would be 3 degrees, and at the summit of the Matterhorn about 2 degrees.

At altitudes below 1000m, the characteristics of the local terrain would be likely to make more difference than the altitude alone. What range of altitudes are you interested in?
This comment applies to version 1.0.1

Harry Whitfield - February 16, 2006
The adjustment you need is less than 1 minute in time per 1500m in height. That's about 6 minutes on the summit of Everest, 3 minutes on the Matterhorn and insignificant for most of us who are earthbound.
This comment applies to version 1.0.1

Michel, from Tours - February 16, 2006
There's a third parameter, missing: local altitude. Otherwise, one of those widgets I like to have around. Nice.
This comment applies to version 1.0.1

Harry Whitfield - February 16, 2006
I've just tested it with Latitude:53 32 57 N and Longitude:9 59 31 E for today 2006/02/16 and it gives 06:37:42/16:31:42 UTC times. If you set Timezone Offset = 1 (hour) it says 07:37:42/17:31:42. In what way is that not working?
Note that it requires E/W and N/S (not O).
This comment applies to version 1.0.1

Matze - February 15, 2006
Hello, your Widget is class, only unfortunately functions it not with the data of Hamburg/Germany. Longitude:9 59 31 O Latitude:53 32 57 N
This comment applies to version 1.0.1

Matze - February 15, 2006
Hello, your Widget is class, only unfortunately functions it not with the data of Hamburg/Germany. Longitude:9 59 31 O Latitude:53 32 57 N
This comment applies to version 1.0.1