Skip to content

Solar Eclipse calculation routine #1078

@mindaugl

Description

@mindaugl

For the almanac calculations, currently Skyfield has method to calculate Lunar Eclipses, which both illustrates package capabilities and serves practical purpose to get details/analyse particular eclipse. Nevertheless, even more interesting case of Solar Eclipses calculation is missing in the package - wouldn't it be beneficial to have it included in the almanac calculations?

I created a pull request with example code for the Solar eclipses calculation:
#1076

The methodology is slightly more complicated than for Lunar Eclipses, but overall quite similar - it reuses the same function as for the Lunar Eclipses calculation to find the minimum angle for the earth-moon-sun system. It then checks three configuration cases, whether earth falls into penumbra, umbra or antumbra of the moon shadow. The routine then uses this information to determine the type of the Eclipse - Total/Hybrid, Partial, or Annular. Additionally, the routine determines the Magnitude and Obscurity for the eclipses by checking the overlap of the sun and moon radiuses from the point of the earth surface where eclipse is seen to be the largest.

The agreement of Solar Eclipses time, type, magnitude and obscurity is almost perfect as compared to the published sources (https://eclipse.gsfc.nasa.gov/solar.html).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions