ocssw
V2022
|
Go to the source code of this file.
Functions | |
void | sun2000 (int iyr, int iday, double sec, float sun[3], float *rs) |
Variables | |
double | dpsi |
double | eps |
int | nutime = -9999 |
Function Documentation
◆ sun2000()
void sun2000 | ( | int | iyr, |
int | iday, | ||
double | sec, | ||
float | sun[3], | ||
float * | rs | ||
) |
This subroutine computes the Sun vector in geocentric inertial (equatorial) coodinates. It uses the model referenced in The Astronomical Almanac for 1984, Section S (Supplement) and documented in "Exact closed-form geolocation algorithm for Earth survey sensors", by F.S. Patt and W.W. Gregg, Int. Journal of Remote Sensing, 1993. The accuracy of the Sun vector is approximately 0.1 Subprograms referenced: JD Computes Julian day from calendar date EPHPARMS Computes mean solar longitude and anomaly and mean lunar lontitude and ascending node NUTATE Compute nutation corrections to lontitude and obliquityc Coded by: Frederick S. Patt, GSC, November 2, 1992 Modified to include Earth constants subroutine by W. Gregg, May 11, 1993. arcminute.
- Parameters
-
iyr Year, four digits (i.e, 1993) iday Day of year (1-366) sec Seconds of day sun Unit Sun vector in geocentric inertial coordinates of date rs Magnitude of the Sun vector (AU)
arcseconds