A MATLAB Script for Predicting Lunar Eclipses

Predicting the local circumstances of lunar eclipses.


Updated Mon, 31 Jan 2022 15:38:30 +0000

View License

PDF document and MATLAB script named leclipse.m that can be used to predict local circumstances of lunar eclipses. This software provides the eclipse type, the universal times and topocentric coordinates of the Moon at the beginning and end of the penumbra contacts, and the time and coordinates at maximum eclipse. The source ephemeris for this routine is a JPL DE430 ephemeris file which is valid from 1849 DEC 26 until 2150 JAN 22. This application uses several functions ported to MATLAB from the Fortran version of the NOVAS (Naval Observatory Vector Astrometry Subroutines) source code developed at the United States Naval Observatory (www.usno.navy.mil/USNO/astronomical-applications/software-products/novas).

Cite As

David Eagle (2023). A MATLAB Script for Predicting Lunar Eclipses (https://www.mathworks.com/matlabcentral/fileexchange/39344-a-matlab-script-for-predicting-lunar-eclipses), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Updated to use DE430 ephemeris (included in zip file) and MICE/NOVAS routines.

Added MICE version of this script in the lunar_eclipse_mice.zip archive.