Jump to content

Stargazers Lounge Uses Cookies

Like most websites, SGL uses cookies in order to deliver a secure, personalised service, to provide social media functions and to analyse our traffic. Continued use of SGL indicates your acceptance of our cookie policy.

sgl_imaging_challenge_banner_android_vs_ios_winners.thumb.jpg.803608cf7eedd5cfb31eedc3e3f357e9.jpg

george7378

How to calculate sunrise and sunset times yourself

Recommended Posts

Hi everyone,

I recently made a tutorial which (hopefully) encompasses everything you need to know about manually calculating sunrise and sunset times yourself. It is available as a walk-through tutorial with mathematical functions explained here:

How to calculate sunrise and sunset times

I also turned it into a C++ program which provides sunrise and sunset times (in UTC, with the option of DST) in case you want to check the answers, and also basic ephemerides for the Sun. It only takes about 200 lines of code to implement this algorithm yourself, so you could use this tutorial to make your own program too.

http://gkastro.0sites.org/Sunriseset.exe

The link above might not always be available, so if you find it dead, please contact me if you want the program.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.