178 & MBUF,CBUF,NLEN,NNUM,MNUM,
179 & KG,K,KPDS,KGDS,KENS,G,IRET)
180 INTEGER JPDS(200),JGDS(200),JENS(200)
181 INTEGER KPDS(200),KGDS(200),KENS(200)
184 parameter(msk1=32000,msk2=4000)
195 IF(jr.GE.0.AND.(jr.LT.nnum.OR.irgi.EQ.0))
THEN
196 CALL getgb1s(cbuf,nlen,nnum,jr,jpds,jgds,jens,
197 & kr,kpds,kgds,kens,lskip,lgrib,irgs)
198 IF(irgs.EQ.0) k=kr+mnum
199 IF(irgi.EQ.1.AND.irgs.EQ.0) mnum=-1-mnum
200 IF(irgi.EQ.1.AND.irgs.GT.0) mnum=mnum+nnum
214 dowhile(irgi.EQ.1.AND.irgs.EQ.1)
216 CALL getgi(lugi,mnum,mbuf,cbuf,nlen,nnum,irgi)
218 CALL getgir(lugb,msk1,msk2,mnum,mbuf,cbuf,nlen,nnum,irgi)
221 CALL getgb1s(cbuf,nlen,nnum,jr,jpds,jgds,jens,
222 & kr,kpds,kgds,kens,lskip,lgrib,irgs)
223 IF(irgs.EQ.0) k=kr+mnum
224 IF(irgi.EQ.1.AND.irgs.EQ.0) mnum=-1-mnum
225 IF(irgi.EQ.1.AND.irgs.GT.0) mnum=mnum+nnum
232 ELSEIF(irgs.NE.0)
THEN
234 ELSEIF(lgrib.GT.jg)
THEN
238 CALL baread(lugb,lskip,lgrib,kg,g)
239 IF(kg.EQ.lgrib) iret=0
subroutine getgb1s(cbuf, nlen, nnum, j, jpds, jgds, jens, k, kpds, kgds, kens, lskip, lgrib, iret)
Find a grib message.
subroutine getgbemp(lugb, lugi, jg, j, jpds, jgds, jens, mbuf, cbuf, nlen, nnum, mnum, kg, k, kpds, kgds, kens, g, iret)
Read a grib index file (or optionally the grib file itself) to get the index buffer (i....
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.