Group Abstract Group Abstract

Message Boards Message Boards

Circular sunset/sunrise calendar

enter image description here

POSTED BY: Sander Huisman
5 Replies

Note that the code will not work for all geolocations; some parts of the world don't have sunsets/sunrise for extended periods of times. For that the code will not work correctly…

POSTED BY: Sander Huisman
POSTED BY: Mark Dowdeswell

Very neat! Thanks for sharing! I use the Trace function to get the non-rounded values for sunset/sunrise. Normally it is rounded to the minute (reflecting the precision you can get because of local elevation, elevation around the horizon where the sun sets, temperature distortions, etc), but it make it very ugly. The Trace is a hack, but the only one that kinda works, I hope it keeps working in future versions… I actually asked for an update to Sunset/Sunrise that would give the precise one, perhaps as an Around value. Future versions might improve on this.

Thanks for the fix!

POSTED BY: Sander Huisman

Fantastic post - thanks!

To make Sander's notebook "standalone", the three lines at the start could be edited to use variable $GeoLocationCity:

    location = $GeoLocationCity; (* set the location*)
    tz = location["TimeZone"][[2]]; (* which timezone *)
    locationname = location[[2, 1]]; (* name of the location for displaying purposes*)
POSTED BY: Mark Dowdeswell

enter image description here -- you have earned Featured Contributor Badge enter image description here Your exceptional post has been selected for our editorial column Staff Picks http://wolfr.am/StaffPicks and Your Profile is now distinguished by a Featured Contributor Badge and is displayed on the Featured Contributor Board. Thank you!

POSTED BY: EDITORIAL BOARD
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard