OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
main_orbnum.f
Go to the documentation of this file.
1  integer*4 year
2  integer*4 day
3  integer*4 msec
4 
5  integer*2 iyear
6  integer*2 iday
7  real*8 dsec
8 
9  real*8 usec
10 
11  integer*4 orbnum
12  integer*4 orbnum2
13  integer*4 inorad
14  real*8 pdsec
15 
16  real*8 yds2unix
17 
18  character*69 cline1
19  character*69 cline2
20 
21  write(*,*) 'Enter year, day'
22  read(*,*) year,day
23 
24  orbnum2 = 0
25 
26  do msec=0,86400*1000,100
27  call getorbit(year,day,msec,orbnum,pdsec,inorad,cline1,cline2)
28  if (msec .eq. 0) orbnum2 = orbnum
29 
30  if (orbnum .ne. orbnum2) then
31  orbnum2 = orbnum
32  iyear = year
33  iday = day
34  dsec = msec/1000.d0
35  usec = yds2unix(iyear,iday,dsec)
36  write(*,10) iyear,iday,dsec,usec,pdsec,orbnum
37  10 format(i4,x,i3,x,f7.2,x,f12.1,x,f7.2,x,i7)
38  call exit(0)
39  endif
40  enddo
41 
42  end
double yds2unix(int16_t year, int16_t day, double secs)
Definition: yds2unix.c:7
#define real
Definition: DbAlgOcean.cpp:26
subroutine getorbit(iyr, iday, msec, iorbno, inorad, cline1, cline2)
Definition: getorbit.f:2