Rise and Set of the Sun, Moon and Planets

Topocentric rise and set of the Sun, Moon and planets. Source ephemeris is DE421 with MICE and NOVAS routines.
657 Downloads
Updated 1 Feb 2022

View License

PDF document and MATLAB script named riseset.m that can be used to determine rise and set conditions of the Sun, Moon and planets. This software uses a combination of one-dimensional minimization and root-finding to predict visibility. The source ephemeris for this routine is a JPL binary ephemeris file. 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).
Also uses several support files from the JPL MICE software suite.

Cite As

David Eagle (2024). Rise and Set of the Sun, Moon and Planets (https://www.mathworks.com/matlabcentral/fileexchange/39326-rise-and-set-of-the-sun-moon-and-planets), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Gravitation, Cosmology & Astrophysics in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.2.0.0

Updated to use DE421.bsp ephemeris (included in the zip file). Updated data files and MICE/NOVAS routines.

1.1.0.0

A MICE version of this script can be found in the riseset_mice.zip archive.

1.0.0.0