Predicting solar eclipses with Python
Erik Bernhardsson
APRIL 7, 2024
deg This takes a (latitude, longitude) pair as well as a unix timestamp and computes the angular separation between the sun and the moon. If the angular separation is very close to zero, we have a solar eclipse. In particular, let's find the path of every eclipse in the 2020-2023 span. separation(sun) return sep.
Let's personalize your content