27 SUBROUTINE gtbits(IBM,IDS,LEN,MG,G,GROUND,GMIN,GMAX,NBIT)
28 dimension mg(len),g(len),ground(len)
33 ground(1)=nint(g(1)*ds)/ds
37 ground(i)=nint(g(i)*ds)/ds
38 gmax=max(gmax,ground(i))
39 gmin=min(gmin,ground(i))
43 IF(i1.GT.0.AND.i1.LE.len)
THEN
47 ground(i1)=nint(g(i1)*ds)/ds
52 ground(i)=nint(g(i)*ds)/ds
53 gmax=max(gmax,ground(i))
54 gmin=min(gmin,ground(i))
69 nbit=log((gmax-gmin)*ds+0.9)/log(2.)+1.
subroutine gtbits(ibm, ids, len, mg, g, ground, gmin, gmax, nbit)
The number of bits required to pack a given field at a particular decimal scaling is computed using t...