Page 1 of 1

How Cumulus calculate sunrise and sunset

Posted: Wed 20 Nov 2013 12:33 am
by nikokara
Hallo :D

May i ask the method Cumulus App calculate's sunrise and sunset, and the method for difference between today and tomorrow daylight.

Note. I'm familar with Delphi (Pascal)

Re: How Cumulus calculate sunrise and sunset

Posted: Wed 20 Nov 2013 7:54 am
by steve
It uses a third party component, which uses the same algorithms which I guess most software uses, from the book "Astronomical Algorithms" by Jean Meeus. "Daylight" is the period between dawn and dusk, i.e between the start of morning civil twilight and the end of evening civil twilight.

Re: How Cumulus calculate sunrise and sunset

Posted: Wed 20 Nov 2013 8:05 am
by Solorize
After a quick look I have found some examples, see below links
which may help.

Algorithm
http://williams.best.vwh.net/sunrise_su ... orithm.htm

Coded in C
http://souptonuts.sourceforge.net/code/sunrise.c.html

Re: How Cumulus calculate sunrise and sunset

Posted: Wed 20 Nov 2013 12:13 pm
by nikokara
Thank you Steve, thank you Solorize :D :clap:

U.S. National Oceanic & Atmospheric Administration (NOAA) uses the same algorithm, based on equations from Astronomical Algorithms, by Jean Meeus.

Here are the links
http://www.esrl.noaa.gov/gmd/grad/solcalc/
http://www.esrl.noaa.gov/gmd/grad/solcalc/sunrise.html

PHP has a build in function (date_sun_info) for Sunrise, Sunset, plus Civilian Twilight, Nautical Twilight and Astronomical Twilight. ;)

attached two helpful excel files for Solar Calculations Enjoy!!!
NOAA_Solar_Calculations_day.xls
NOAA_Solar_Calculations_year.xls

Re: How Cumulus calculate sunrise and sunset

Posted: Wed 20 Nov 2013 12:55 pm
by mcrossley
nikokara wrote:thank you Solorize
If ever there was a more apt username... :lol:

Re: How Cumulus calculate sunrise and sunset

Posted: Wed 20 Nov 2013 1:14 pm
by Solorize
;)