NCEPLIBS-w3emc 2.12.0
Loading...
Searching...
No Matches
w3movdat.f
Go to the documentation of this file.
1
4
23 subroutine w3movdat(rinc,idat,jdat)
24
25 real rinc(5)
26 integer idat(8),jdat(8)
27 real rinc1(5),rinc2(5)
28! - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
29! add the interval to the input time of day and put into reduced form
30! and then compute new date using julian day arithmetic.
31 rinc1(1)=rinc(1)
32 rinc1(2:5)=rinc(2:5)+idat(5:8)
33 call w3reddat(-1,rinc1,rinc2)
34 jldayn=iw3jdn(idat(1),idat(2),idat(3))+nint(rinc2(1))
35 call w3fs26(jldayn,jdat(1),jdat(2),jdat(3),jdow,jdoy)
36 jdat(4)=idat(4)
37 jdat(5:8)=nint(rinc2(2:5))
38! - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
39 end
function iw3jdn(iyear, month, iday)
Computes julian day number from year (4 digits), month, and day.
Definition iw3jdn.f:42
subroutine w3fs26(jldayn, iyear, month, iday, idaywk, idayyr)
Computes year (4 digits), month, day, day of week, day of year from julian day number.
Definition w3fs26.f:56
subroutine w3movdat(rinc, idat, jdat)
This subprogram returns the date and time that is a given NCEP relative time interval from an NCEP ab...
Definition w3movdat.f:24
subroutine w3reddat(it, rinc, dinc)
This subprogram reduces an ncep relative time interval into one of seven canonical forms,...
Definition w3reddat.f:86