NCEPLIBS-w3emc  2.11.0
w3fs13.f
Go to the documentation of this file.
1 C> @file
2 C> @brief Year, month, and day to day of year.
3 C> @author Ralph Jones @date 1985-08-31
4 
5 C> 0converts year, month and day to day of year.
6 C>
7 C> ### Program History Log:
8 C> Date | Programmer | Comments
9 C> -----|------------|---------
10 C> 1985-07-31 | Ralph Jones | Initial.
11 C> 1989-11-02 | Ralph Jones | Convert to cray cft77 fortran.
12 C>
13 C> @param[in] IYR Year of century, 00-99 or year of era, 1901-2099
14 C> @param[in] IMO Month of year, 1-12
15 C> @param[in] IDA Day of month, 1-31
16 C> @param[out] JDY Day of year, 1-366
17 C>
18 C> @note This procedure is valid only from the years 1901-2099 inclusive.
19 C>
20  SUBROUTINE w3fs13(IYR,IMO,IDA,JDY)
21 C
22  INTEGER JTABLE(24)
23 C
24  DATA jtable/0,0,31,31,60,59,91,90,121,120,152,151,
25  & 182,181,213,212,244,243,274,273,305,304,335,334/
26 C
27  iset = 0
28  IF (iand(iyr,3).EQ.0) iset = 1
29  i = imo * 2 - iset
30  jdy = jtable(i) + ida
31  RETURN
32  END
subroutine w3fs13(IYR, IMO, IDA, JDY)
0converts year, month and day to day of year.
Definition: w3fs13.f:21