Orbital Solar Eclipse Predictor

62 views
Skip to first unread message

Bert Mariani

unread,
Oct 12, 2025, 4:03:35 PMOct 12
to The Ring Programming Language
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
=============================================

ObitalSolarEclipse.ring

Mahmoud Fayed

unread,
Nov 7, 2025, 8:10:12 AMNov 7
to The Ring Programming Language
Hello Bert

Thank you very much for sharing :D

Greetings,
Mahmoud

Mahmoud Fayed

unread,
Nov 14, 2025, 11:20:30 AMNov 14
to The Ring Programming Language
Hello Bert

Thanks again for sharing :D


Greetings,
Mahmoud

On Sunday, October 12, 2025 at 11:03:35 PM UTC+3 Bert Mariani wrote:

Bert Mariani

unread,
Dec 7, 2025, 12:54:01 PM (19 hours ago) Dec 7
to The Ring Programming Language
Hello ALL

"Some announcements feel instantly historic, even if they sound technical at first. That’s what happened when astronomers confirmed the official date of the century’s longest total solar eclipse: **August 2, 2027**.
On that summer day, the Moon will slide perfectly in front of the Sun and hold it there, creating up to *6 minutes and 23 seconds* of totality along a narrow path."

Ran the  "Orbital-Solar-Eclipse .ring"  --- Predictor

                        Date:                 Time:          Type:     Mag:  Gamma:  u-value:
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

Eclipse #11:  2027-02-06 at 15:57 UTC  Annular.  2.13  -0.30   0.03
Eclipse #12:  2027-08-02 at 10:06 UTC  Total...  2.69   0.14  -0.02

Eclipse #13:  2028-01-26 at 15:14 UTC  Annular.  1.96   0.39   0.03
Eclipse #14:  2028-07-22 at 03:03 UTC  Total...  1.77  -0.60  -0.01
Reply all
Reply to author
Forward
0 new messages