This repository contains python code to calculate dawn, sunrise, sunset, and dusk for a given latitude and longitude and date. These timestamps can then be used to create control variables for ambient light in econometric analysis. The python code in this repository uses the Astral python module created by Simon Kennedy.
Kennedy, S. (2020) Astral 2.2 https://pypi.org/project/astral/