ocssw
V2022
|
Go to the source code of this file.
Functions | |
void | l_sun_ (int *iyr, int *iday, double *sec, float sunr[3], float *rs) |
Function Documentation
◆ l_sun_()
void l_sun_ | ( | int * | iyr, |
int * | iday, | ||
double * | sec, | ||
float | sunr[3], | ||
float * | rs | ||
) |
c Computes unit Sun vector in geocentric rotating coodinates, using c subprograms to compute inertial Sun vector and Greenwich hour angle c Subprograms referenced: c c SUN2000 Computes inertial Sun vector c GHA2000 Computes Greenwich sidereal angle c c Coded by: Frederick S. Patt, GSC, September 29, 1992 c c Modification History: c c Modifified to use new Sun and hour angle routines c Frederick S. Patt, November 3, 1992 c c Removed internal jd() function, since it is available as an c independent module. B. A. Franz, GSC, November 14, 1997.
- Parameters
-
iyr input Year, four digits (i.e, 1993) idoy input Day of year (1-366) sec input Seconds of day sunr output Unit Sun vector in geocentric rotating coordinates rs Earth-to-Sun distance (AU)