|
View/Copy PHP Source Code |
VSOP87C Sun Module Example / Test Demo
This simple example/test program computes the basic astronomical
statistics for the Sun at 00h TDB on any given date according to the The VSOP87 C series. NOTES:
Enter Numerical Calendar Date Elements (yNum mNum dNum) Initial default startup date = Current date (2025 11 06) at 00:00:00 TT. The program does not check for errors and simply assumes the calendar date elements (yNum, mNum, dNum) are valid values. Valid date elements should return a valid result. If possible, check the test computations against another VSOP87 C source to see how closely they match. EXAMPLE: October 5th, 1991 date elements would be entered as: 1991 10 05
------------------------------------------------------ VSOP87C Geocentric Astronomical Statistics For the Sun For Ecliptic and Equinox of Date yyyy mm dd = 2025 11 06 JDate 00h = 2460985.5 ------------------------------------ Statistics returned by the function: VSOP87C_Geocentric_Sun (JDTT) RAHrs = 14.757937257073 = Equatorial RA of the Sun in hours DeclDeg = -15.988187444398 = Equatorial declination of the Sun in degrees DistAU = 0.99132621862846 = True Earth/Sun distance in AUs AngDiamDeg = 0.53779807686858 = Angular diameter of the Sun in degrees EclLngDeg = 223.82659680962 = Ecliptical longitude of the sun in degrees EclLatDeg = 0.00016903014183805 = Ecliptical latitude of the sun in degrees |