Sunrise, sunset

March 8, 2018

I grew up in Budapest and moved to the Netherlands a few years ago. I could not ignore the fact that the Sun has very different patterns: it rises later and sets later here than in Budapest. However, this difference is not uniform: my feeling was that the sun rises much later and sets about the same time during the winter. I saw the inverse in the summer: Dutch summer evenings are much longer, but dawn does not lag behind that much. I wanted to verify this feeling in a scalable manner, so I created a website (code here) where you can pick two arbitrary locations on the globe and see a graph with their dawn/dusk times through the year.

The map and the sunrise/sunset chart

To be precise, the map shows the times of civil twilight. According to the Wikipedia article on twilight, under clear weather conditions, civil twilight approximates the limit at which solar illumination suffices for the human eye to clearly distinguish terrestrial objects. In other words, this is when you or I would say that it is now dark outside.

There are many intersting comparisons one can make.

I encourage everyone to play around with the map and compare these places – or whatever location comes to their mind.

What did I learn?

In addition to verifying my hypothesis, building this website was a great learning experience. This was the first time I really used JavaScript. I learnt how to combine data from multiple APIs, used various open source packages, and wrote quite a bit of logic myself as well. All in all, I used:

Cover image: Sunset in Amsterdam. Photo by the Author, 2016. Creative Commons CC BY-NC-SA 4.0

Sunrise, sunset - March 8, 2018 - András Hann