Go to the documentation of this file.
14 subroutine yd2ymd(year,dayOfYear,month,dayOfMonth)
26 integer*4 endOfMonth(12,2)
28 data endofmonth / 31,59,90,120,151,181,212,243,273,304,334,365,
29 . 31,60,91,121,152,182,213,244,274,305,335,366 /
31 if (mod(year,4) .eq. 0)
then
38 dowhile( dayofyear .gt. endofmonth(month,leap) )
42 if (month .gt. 1)
then
43 dayofmonth = dayofyear - endofmonth(month-1,leap)
45 dayofmonth = dayofyear
subroutine yd2ymd(year, dayOfYear, month, dayOfMonth)