Apparent Coordinates of the Moon, Sun or a Planet

MATLAB script that can be used to compute the apparent coordinates of the Moon, Sun or a planet.
876 Downloads
Updated 26 Jan 2022

View License

PDF document and a MATLAB function named aplanet1.m, and a demonstration script, named demo_aplanet1.m that can be used to determine the apparent geocentric and topocentric coordinates of the Moon, Sun or a planet. The source ephemeris for this routine is a JPL binary ephemeris file. These applications use 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 (2024). Apparent Coordinates of the Moon, Sun or a Planet (https://www.mathworks.com/matlabcentral/fileexchange/39232-apparent-coordinates-of-the-moon-sun-or-a-planet), 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.3.0.0

Updated to use JPL ephemeris *.bsp files and N66 version MICE routines. DE440s is included in the zip file download.

1.2.0.0

Added MICE-based version in the demo_aplanet1_mice.zip archive.

1.1.0.0

Script now computes leap seconds internally. Includes MICA output example for comparison.

1.0.0.0