NASA Logo
Ocean Color Science Software

ocssw V2022
l_sun.c File Reference
#include "libnav.h"
#include "sun2000.h"
#include "nav.h"
Include dependency graph for l_sun.c:

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
iyrinput Year, four digits (i.e, 1993)
idoyinput Day of year (1-366)
secinput Seconds of day
sunroutput Unit Sun vector in geocentric rotating coordinates
rsEarth-to-Sun distance (AU)

Definition at line 28 of file l_sun.c.