NCEPLIBS-g2
4.0.0
Loading...
Searching...
No Matches
makwmo.F90
Go to the documentation of this file.
1
4
24
SUBROUTINE
makwmo
(BULHED,IDAY,IHOUR,IMIN,KWBX,HEADER)
25
CHARACTER * 6
BULHED
26
CHARACTER * 1
HEADER (*)
27
CHARACTER * 1
WMOHDR (21)
28
CHARACTER * 4
KWBX
29
CHARACTER * 2
CTEMP
30
!
31
!$ 1. CREATE WMO HEADER.
32
!$ 1.1 CONVERT BULHED FROM EBCDIC TO ASCII.
33
!
34
! WRITE (6,FMT='('' MADE IT TO MAKWMO'')')
35
!
36
DO
i = 1,6
37
wmohdr(i) = bulhed(i:i)
38
END DO
39
wmohdr(7)=char(32)
! ASCII BLANK
40
!
41
! MOVE KWBX INTO WMO HEADER
42
!
43
DO
i = 1,4
44
wmohdr(i+7) = kwbx(i:i)
45
END DO
46
wmohdr(12)=char(32)
! ASCII BLANK
47
!
48
!$ 1.2 PICK OFF THE DAY OF MONTH (YY)
49
!$ AND CONVERT TO ASCII.
50
!
51
write
(ctemp,fmt=
'(I2.2)'
) iday
52
wmohdr(13)=ctemp(1:1)
53
wmohdr(14)=ctemp(2:2)
54
!
55
!$ 1.3 PICK OFF THE HOUR(GG) AND CONVERT TO ASCII.
56
!
57
write
(ctemp,fmt=
'(I2.2)'
) ihour
58
wmohdr(15)=ctemp(1:1)
59
wmohdr(16)=ctemp(2:2)
60
61
write
(ctemp,fmt=
'(I2.2)'
) imin
62
wmohdr(17)=ctemp(1:1)
63
wmohdr(18)=ctemp(2:2)
64
65
!
66
! 1.4 FIL IN REST OF HEADER
67
!
68
! WMOHDR(17)=char(48) ! ASCII "0"
69
! WMOHDR(18)=char(48) ! ASCII "0"
70
wmohdr(19)=char(13)
! ASCII CR = '\r'
71
wmohdr(20)=char(13)
! ASCII CR = '\r'
72
wmohdr(21)=char(10)
! ASCII LF = '\n'
73
!
74
!$ 2. MOVE WMOHDR TO OUTPUT FIELD.
75
!
76
DO
i = 1,21
77
header(i) = wmohdr(i)
78
END DO
79
!
80
RETURN
81
END SUBROUTINE
makwmo
makwmo
subroutine makwmo(bulhed, iday, ihour, imin, kwbx, header)
Forms the wmo header for a given bulletin.
Definition
makwmo.F90:25
utils
makwmo.F90
Generated by
1.9.8