90 pds(1) = char(mod(id(1)/65536,256))
91 pds(2) = char(mod(id(1)/256,256))
92 pds(3) = char(mod(id(1),256))
98 if (id(6).ne.0) i = i + 128
99 if (id(7).ne.0) i = i + 64
103 pds(10) = char(id(9))
109 IF ((i9.GE.1.AND.i9.LE.100).OR.i9.EQ.102.OR.
110 & i9.EQ.103.OR.i9.EQ.105.OR.i9.EQ.107.OR.
111 & i9.EQ.109.OR.i9.EQ.111.OR.i9.EQ.113.OR.
112 & i9.EQ.115.OR.i9.EQ.117.OR.i9.EQ.119.OR.
113 & i9.EQ.125.OR.i9.EQ.126.OR.i9.EQ.160.OR.
114 & i9.EQ.200.OR.i9.EQ.201.OR.i9.EQ.235.OR.
115 & i9.EQ.237.OR.i9.EQ.238)
THEN
119 level = ior(level,32768)
121 pds(11) = char(mod(level/256,256))
122 pds(12) = char(mod(level,256))
124 pds(11) = char(id(10))
125 pds(12) = char(id(11))
127 pds(13) = char(id(12))
128 pds(14) = char(id(13))
129 pds(15) = char(id(14))
130 pds(16) = char(id(15))
131 pds(17) = char(id(16))
132 pds(18) = char(id(17))
137 IF (id(20).EQ.10)
THEN
138 pds(19) = char(mod(id(18)/256,256))
139 pds(20) = char(mod(id(18),256))
141 pds(19) = char(id(18))
142 pds(20) = char(id(19))
144 pds(21) = char(id(20))
145 pds(22) = char(mod(id(21)/256,256))
146 pds(23) = char(mod(id(21),256))
147 pds(24) = char(id(22))
148 pds(25) = char(id(23))
149 pds(26) = char(id(24))
151 IF (iscale.LT.0)
THEN
153 iscale = ior(iscale,32768)
155 pds(27) = char(mod(iscale/256,256))
156 pds(28) = char(mod(iscale ,256))
157 IF (id(1).GT.28)
THEN
158 pds(29) = char(id(26))
159 pds(30) = char(id(27))
164 IF (id(1).GT.30)
THEN
subroutine w3fi68(id, pds)
Converts an array of 25, or 27 integer words into a grib product definition section (pds) of 28 bytes...