NCEPLIBS-w3emc 2.12.0
Loading...
Searching...
No Matches
w3fs13.f
Go to the documentation of this file.
1C> @file
2C> @brief Year, month, and day to day of year.
3C> @author Ralph Jones @date 1985-08-31
4
5C> 0converts year, month and day to day of year.
6C>
7C> ### Program History Log:
8C> Date | Programmer | Comments
9C> -----|------------|---------
10C> 1985-07-31 | Ralph Jones | Initial.
11C> 1989-11-02 | Ralph Jones | Convert to cray cft77 fortran.
12C>
13C> @param[in] IYR Year of century, 00-99 or year of era, 1901-2099
14C> @param[in] IMO Month of year, 1-12
15C> @param[in] IDA Day of month, 1-31
16C> @param[out] JDY Day of year, 1-366
17C>
18C> @note This procedure is valid only from the years 1901-2099 inclusive.
19C>
20 SUBROUTINE w3fs13(IYR,IMO,IDA,JDY)
21C
22 INTEGER JTABLE(24)
23C
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/
26C
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