NASA Logo
Ocean Color Science Software

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

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
iyrYear, four digits (i.e, 1993)
idayDay of year (1-366)
secSeconds of day
sunUnit Sun vector in geocentric inertial coordinates of date
rsMagnitude of the Sun vector (AU)

arcseconds

Definition at line 8 of file sun2000.c.

Variable Documentation

◆ dpsi

double dpsi

Definition at line 6 of file sun2000.c.

◆ eps

double eps

Definition at line 6 of file sun2000.c.

◆ nutime

int nutime = -9999

Definition at line 7 of file sun2000.c.