184 & MBUF,CBUF,NLEN,NNUM,MNUM,
185 & KF,K,KPDS,KGDS,KENS,LB,F,NBITSS,IRET)
186 INTEGER JPDS(200),JGDS(200),JENS(200)
187 INTEGER KPDS(200),KGDS(200),KENS(200)
191 parameter(msk1=32000,msk2=4000)
202 IF(jr.GE.0.AND.(jr.LT.nnum.OR.irgi.EQ.0))
THEN
203 CALL getgb1s(cbuf,nlen,nnum,jr,jpds,jgds,jens,
204 & kr,kpds,kgds,kens,lskip,lgrib,irgs)
205 IF(irgs.EQ.0) k=kr+mnum
206 IF(irgi.EQ.1.AND.irgs.EQ.0) mnum=-1-mnum
207 IF(irgi.EQ.1.AND.irgs.GT.0) mnum=mnum+nnum
221 dowhile(irgi.EQ.1.AND.irgs.EQ.1)
223 CALL getgi(lugi,mnum,mbuf,cbuf,nlen,nnum,irgi)
225 CALL getgir(lugb,msk1,msk2,mnum,mbuf,cbuf,nlen,nnum,irgi)
228 CALL getgb1s(cbuf,nlen,nnum,jr,jpds,jgds,jens,
229 & kr,kpds,kgds,kens,lskip,lgrib,irgs)
230 IF(irgs.EQ.0) k=kr+mnum
231 IF(irgi.EQ.1.AND.irgs.EQ.0) mnum=-1-mnum
232 IF(irgi.EQ.1.AND.irgs.GT.0) mnum=mnum+nnum
239 ELSEIF(irgs.NE.0)
THEN
241 ELSEIF(
lengds(kgds).GT.jf)
THEN
244 CALL getgb1r(lugb,lskip,lgrib,kf,kpds,kgds,kens,lb,f,nbitss
subroutine getgb1r(lugb, lskip, lgrib, kf, kpds, kgds, kens, lb, f, nbitss, iret)
Program history log:
subroutine getgb1s(cbuf, nlen, nnum, j, jpds, jgds, jens, k, kpds, kgds, kens, lskip, lgrib, iret)
Find a grib message.
subroutine getgbemn(lugb, lugi, jf, j, jpds, jgds, jens, mbuf, cbuf, nlen, nnum, mnum, kf, k, kpds, kgds, kens, lb, f, nbitss, iret)
Find and unpack a grib message.
subroutine getgi(lugi, mnum, mbuf, cbuf, nlen, nnum, iret)
Read a grib index file and return its contents.
subroutine getgir(lugb, msk1, msk2, mnum, mbuf, cbuf, nlen, nnum, iret)
Read a grib file and return its index contents.