OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
esdist.f
Go to the documentation of this file.
1 
2  real*8 function esdist(iyr,iday,msec)
3 c
4 c this subroutine computes the earth-sun distance in au. it uses the model
5 c referenced in the astronomical almanac for 1984, section s(supplement).
6 c
7 c arguments:
8 c
9 c name Type i/o description
10 c --------------------------------------------------------
11 c iyr i*4 i year, four digits(i.e, 1993)
12 c iday i*4 i day of year(1-366)
13 c msec i*4 i milliseconds of day
14 c rs r*4 o magnitude of the sun vector(au)
15 c
16 c subprograms referenced:
17 c
18 c jd computes julian day from calendar date
19 c
20 c coded by: frederick s. patt, gsc, november 2, 1992
21 c adapted from sun2000 to esdist by b. franz, oct 2003.
22 c
23  implicit none
24  integer*4 iyr, iday, msec, jd
25  real*8 t, gs
26 c
27  real*8 radeg
28  integer*4 imon
29 c
30  data radeg /57.29577951/
31  data imon /1/
32 
33 
34 c compute floating point days since jan 1.5, 2000
35 c note that the julian day starts at noon on the specified date
36 
37  t = jd(iyr,imon,iday)
38  * - 2451545.0d0
39  * + (msec/1000.d0 - 43200.d0)/86400.d0
40 
41 c compute mean anomaly
42 
43  gs = 357.52772d0 + 0.9856002831d0*t
44 
45 c compute solar distance(au)
46  esdist = 1.00014d0 - 0.01671d0*cos(gs/radeg)
47  * - 0.00014d0*cos(2.0d0*gs/radeg)
48 
49  return
50  end
@ floating
float * vector(long nl, long nh)
Definition: nrutil.c:15
float mean(float *xs, int sample_size)
Definition: numerical.c:81
subroutine earth(pos, vel, widphse1, widphfl1, widphse2,
Definition: earth.f:2
#define real
Definition: DbAlgOcean.cpp:26
Definition: jd.py:1
int sun2000(size_t sdim, int32_t iyr, int32_t idy, double *sec, orb_array *sun)
real *8 function esdist(iyr, iday, msec)
Definition: esdist.f:3
for(i=0;i< NROOTS;i++) s[i]
Definition: decode_rs.h:85
integer function julian(DAY, MONTH, YEAR)
Definition: julian.f:2
this program makes no use of any feature of the SDP Toolkit that could generate such a then geolocation is calculated at that and then aggregated up to Resolved feature request Bug by adding three new int8 SDSs for each high resolution offsets between the high resolution geolocation and a bi linear interpolation extrapolation of the positions This can be used to reconstruct the high resolution geolocation Resolved Bug by delaying cumulation of gflags until after validation of derived products Resolved Bug by setting Latitude and Longitude to the correct fill resolving to support Near Real Time because they may be unnecessary if use of entrained ephemeris and attitude data is turned on(as it will be in Near-Real-Time processing).