27 SUBROUTINE pdseup(KENS,KPROB,XPROB,KCLUST,KMEMBR,ILAST,MSGA)
28 INTEGER KENS(5),KPROB(2),KCLUST(16),KMEMBR(80)
32 CALL gbytec(msga, ibytes, 0,24)
33 IF(ilast.GT.ibytes)
THEN
41 CALL gbytesc(msga,kens,40*8,8,0,5)
44 CALL gbytesc(msga,kprob,45*8,8,0,2)
46 CALL gbytec (msga,jsgn,47*8,1)
47 CALL gbytec (msga,jexp,47*8+1,7)
48 CALL gbytec (msga,ifr,47*8+8,24)
49 xprob(1)=(-1)**jsgn*ifr*16.**(jexp-70)
51 CALL gbytec (msga,jsgn,51*8,1)
52 CALL gbytec (msga,jexp,51*8+1,7)
53 CALL gbytec (msga,ifr,51*8+8,24)
54 xprob(2)=(-1)**jsgn*ifr*16.**(jexp-70)
58 IF(ilast.GE.61)
CALL gbytesc(msga,kclust,60*8,8,0,16)
60 IF(ilast.GE.77)
CALL gbytesc(msga,kmembr,76*8,1,0,80)
subroutine gbytec(in, iout, iskip, nbyte)
Wrapper for gbytesc() limiting NSKIP and N to 0 and 1.
subroutine gbytesc(in, iout, iskip, nbyte, nskip, n)
Extract arbitrary size values from a packed bit string, right justifying each value in the unpacked a...
subroutine pdseup(kens, kprob, xprob, kclust, kmembr, ilast, msga)
Unpacks grib pds extension starting on byte 41 for ensemble forecast products.