aeclipse.py

Created by steveg1cmz

Created on October 15, 2023

176 Bytes

Astronomy: Eclipse Algorithms are based on Jean Meeus. Calculates eclipses (lunar eclipse and solar eclipse). Functions: DTm(JDE): JDE->Date-Time (rounded to minutes) eclipse(realyear,koff)->eclipse characteristics (or None) koff=0 for solar, -0.5 or 0.5 for lunar Example usage is in aeclipseuse.py (calendar). PLATFORMS: Numworks : ok BBC microbit-serial: ok

Results: Itsa: eclipse type (string)

DT: Date and time (minutes may be rounded)

Magnitude: The fraction of diameter (note: not the obscuration, or brightnesss) 0<magnitude<1 indicates partial 1<=magnitude indicates total (but see versions). Accuracy: ~2 sig figs when valid (solar annular, total and hybrid should be disregarded).

Gamma: How central the eclipse is, Accuracy ~ 3 sig figs.

Angled: Several angles in degrees

JDE: accurate time of peak

mins: semidurations (add or subtract from peak time) time should be adjusted by deltaT (currently < 2mins) to give UTC.


# version 0.1: 
#Bug in calculation of solar time
# version 0.2: OK
#(but disregard magnitude of solar eclipses that are not  partial)
#see versions for details

During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our cookies policy.