NASA Logo
Ocean Color Science Software

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

Go to the source code of this file.

Functions

double esdist_ (int *iyr, int *iday, int *msec)
 

Function Documentation

◆ esdist_()

double esdist_ ( int *  iyr,
int *  iday,
int *  msec 
)

c This subroutine computes the earth-sun distance in AU. It uses the model c referenced in The Astronomical Almanac for 1984, Section S (Supplement).

c Subprograms referenced: c c JD Computes Julian day from calendar date c c Coded by: Frederick S. Patt, GSC, November 2, 1992 c Adapted from sun2000 to esdist by B. Franz, Oct 2003.

Parameters
year
day
msec
Returns

c Compute floating point days since Jan 1.5, 2000 c Note that the Julian day starts at noon on the specified date

Definition at line 21 of file esdist.c.