NASA Logo
Ocean Color Science Software

ocssw V2022
sun2000.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void sun2000 (int iyr, int iday, double sec, float sun[3], float *rs)
 
void nutate (double t, double xls, double gs, double xlm, double omega, double *dpsi, double *eps)
 
void gha2000 (int iyr, double day, double *gha)
 
void ephparms (double t, double *xls, double *gs, double *xlm, double *omega)
 

Function Documentation

◆ ephparms()

void ephparms ( double  t,
double *  xls,
double *  gs,
double *  xlm,
double *  omega 
)

This subroutine computes ephemeris parameters used by other Mission Operations routines: the solar mean longitude and mean anomaly, and the lunar mean longitude and mean ascending node. It uses the model referenced in The Astronomical Almanac for 1984, Section S (Supplement) and documented 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. These parameters are used to compute the solar longitude and the nutation in longitude and obliquity.

Parameters
tTime in days since January 1, 2000 at 12 hours UT
xlsMean solar longitude (degrees)
gsMean solar anomaly (degrees)
xlmMean lunar longitude (degrees)
omegaAscending node of mean lunar orbit (degrees)

Definition at line 3 of file ephparms.c.

◆ gha2000()

void gha2000 ( int  iyr,
double  day,
double *  gha 
)

This subroutine computes the Greenwich hour angle in degrees for the input time. 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. It includes the correction to mean sideral time for nutation as well as precession. 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 obliquity

   Program written by:     Frederick S. Patt
                           General Sciences Corporation
                           November 2, 1992
Parameters
iyrYear (four digits)
dayDay (time of day as fraction)
ghareenwich hour angle (degrees)

Definition at line 5 of file gha2000.c.

◆ nutate()

void nutate ( double  t,
double  xls,
double  gs,
double  xlm,
double  omega,
double *  dpsi,
double *  eps 
)

This subroutine computes the nutation in longitude and the obliquity of the ecliptic corrected for nutation. 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. These parameters are used to compute the apparent time correction to the Greenwich Hour Angle and for the calculation of the geocentric Sun vector. The input ephemeris parameters are computed using subroutine ephparms. Terms are included to 0.1 arcsecond. Program written by: Frederick S. Patt General Sciences Corporation October 21, 1992.

Parameters
tTime in days since January 1, 2000 at 12 hours UT
xlsMean solar longitude (degrees)
gsMean solar anomaly (degrees)
xlmMean lunar longitude (degrees)
omegaAscending node of mean lunar orbit (degrees)
dpsiNutation in longitude (degrees)
epsObliquity of the Ecliptic (degrees) (includes nutation in obliquity)

Definition at line 7 of file nutate.c.

◆ 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.