The Planrise.m computes planetary positions using JPL_Eph_DE430.m. To compute the rising and setting times of a planet we first determine its (geocentric) equatorial coordinates α and δ for an arbitrary time on the given day. From the declination and the geographical latitude, Planrise then determines whether the planet is continuously above or below the horizon.
Montenbruck O., Pfleger T.; Astronomy on the Personal Computer; Springer Verlag, Heidelberg; 4th edition (2000).
Meeus J.; Astronomical Algorithms; Willmann-Bell; Richmond, Virginia; 2nd edition (1998).
Meysam Mahooti (2020). Planets Rise/Set (https://www.mathworks.com/matlabcentral/fileexchange/60055-planets-rise-set), MATLAB Central File Exchange. Retrieved .
The code works with updated DE430Coeff.mat now for all years including years before 1940 and years after 2080.
DE430Coeff.mat full matrix is now available in the following link:
Use it rather than existing DE430Coeff.mat matrix.
The code not works for year before 1940 or year after 2080. The .mat file return index error for all year before 1940 or after 2080.
How to correct it?
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!