26 SUBROUTINE skgb(LUGB,ISEEK,MSEEK,LSKIP,LGRIB)
37 dowhile(lgrib.EQ.0.AND.kn.GE.8.AND.kz.EQ.lseek)
39 CALL baread(lugb,ks,kn,kz,z)
43 dowhile(lgrib.EQ.0.AND.k.LT.km)
44 CALL gbytec(z,i4,(k+0)*8,4*8)
45 CALL gbytec(z,i1,(k+7)*8,1*8)
46 IF(i4.EQ.1196575042.AND.(i1.EQ.1.OR.i1.EQ.2))
THEN
48 IF (i1.EQ.1)
CALL gbytec(z,kg,(k+4)*8,3*8)
49 IF (i1.EQ.2)
CALL gbytec(z,kg,(k+12)*8,4*8)
50 CALL baread(lugb,ks+k+kg-4,4,k4,z4)
53 IF(i4.EQ.926365495)
THEN
63 kn=min(lseek,iseek+mseek-ks)
subroutine gbytec(in, iout, iskip, nbyte)
Wrapper for gbytesc() limiting NSKIP and N to 0 and 1.
subroutine skgb(lugb, iseek, mseek, lskip, lgrib)
This subprogram searches a file for the next grib 1 message.