Hello Mahmoud et ALL
As part of the Orbital Series of Apps ...
- OrbitalSolarEclipse.ring
It will predict Total, Annular, Hybrid and Partial Solar Eclipses.
The accuracy comes from using Meeus Equations for Lunar Orbits.
Meeus is just an Amazing Astronomer !!
func main()
start_year = 2022
end_year = 2026
#-----------------------------
# TOTAL SOLAR ECLIPSE - Occurs when the Moon is close enough to Earth( near perigee)
# that its apparent size is larger than the Sun's,
# AND the Moon passes directly between Earth and Sun (low gamma value).
# The Moon doesn't have to be exactly at perigee.
#
# ANNULAR SOLAR ECLIPSE - Occurs when the Moon is farther from Earth (near apogee)
# so its apparent size is smaller than the Sun's,
# AND the Moon passes directly between Earth and Sun (low gamma value).
# The Moon doesn't have to be exactly at apogee.
#
# PARTIAL SOLAR ECLIPSE - Occurs when the alignment is NOT direct -
# the Moon passes above or below the centerline (high gamma value),
# so only part of the Sun is covered as seen from Earth.
#
# HYBRID ECLIPSE - A rare case where the eclipse appears annular at some locations
# and total at others due to Earth's curvature.
# --------------------------------------------
Created in conjunction with Claude AI
Which seems more cooperative this time around.
GPT-5 just gave me more hassles.
==========================
OUTPUT
=============================================
SOLAR ECLIPSE PREDICTOR (2022-2026)
Using Jean Meeus Astronomical Algorithms
=============================================
Date: Time: Type: Mag: Gamma: u-value:
Eclipse #01: 2022-04-30 at 20:29 UTC Partial. 0.18 -1.19 0.01
Eclipse #02: 2022-10-25 at 10:50 UTC Partial. 0.23 1.07 0.00
Eclipse #03: 2023-04-20 at 04:14 UTC Hybrid.. 2.10 -0.39 0.00
Eclipse #04: 2023-10-14 at 17:56 UTC Annular. 2.04 0.37 0.02
Eclipse #05: 2024-04-08 at 18:22 UTC Total... 2.26 0.34 -0.01
Eclipse #06: 2024-10-02 at 18:51 UTC Annular. 2.04 -0.35 0.02
Eclipse #07: 2025-03-29 at 10:59 UTC Partial. 0.24 1.04 -0.01
Eclipse #08: 2025-09-21 at 19:55 UTC Partial. 0.24 -1.06 0.02
Eclipse #09: 2026-02-17 at 12:03 UTC Annular. 1.02 -0.97 0.01
Eclipse #10: 2026-08-12 at 17:38 UTC Total... 1.20 0.90 -0.01
---------------------------------------------
Total solar eclipses predicted: 10
=============================================
=============================================
NASA SOLAR ECLIPSE DATA (2022-2026)
=============================================
2022:
Apr 30, 2022 20:42:36 - Partial
Oct 25, 2022 11:01:19 - Partial
2023:
Apr 20, 2023 04:17:55 - Hybrid (Total/Annular)
Oct 14, 2023 18:00:40 - Annular
2024:
Apr 08, 2024 18:18:29 - Total
Oct 02, 2024 18:46:13 - Annular
2025:
Mar 29, 2025 10:48:36 - Partial
Sep 21, 2025 19:43:04 - Partial
2026:
Feb 17, 2026 12:13:05 - Annular
Aug 12, 2026 17:47:05 - Total
Total: 10 solar eclipses
=============================================