|
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 07) 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 07 JDate 00h = 2460986.5 ------------------------------------ Statistics returned by the function: VSOP87C_Geocentric_Sun (JDTT) RAHrs = 14.82439945881 = Equatorial RA of the Sun in hours DeclDeg = -16.285147596094 = Equatorial declination of the Sun in degrees DistAU = 0.99108183972043 = True Earth/Sun distance in AUs AngDiamDeg = 0.53793069891642 = Angular diameter of the Sun in degrees EclLngDeg = 224.82923569509 = Ecliptical longitude of the sun in degrees EclLatDeg = 0.00018276576548003 = Ecliptical latitude of the sun in degrees |