38 SUBROUTINE w3fi58(IFIELD,NPTS,NWORK,NPFLD,NBITS,LEN,KMIN)
40 parameter(alog2=0.69314718056)
51 IF (npts.LE.0)
GO TO 3000
58 kmax = max(kmax,ifield(i))
59 kmin = min(kmin,ifield(i))
65 IF (kmax.EQ.kmin)
GO TO 3000
74 nbits=log(bigdif+0.5)/alog2+1
79 nwork(k) = ifield(k) - kmin
84 len=(nbits*npts-1)/8+1
85 CALL sbytesc(npfld,nwork,0,nbits,0,npts)
91 IF(nzero.GT.0)
CALL sbytec(npfld,kzero,noff,nzero)
subroutine sbytec(out, in, iskip, nbyte)
This is a wrapper for sbytesc()
subroutine sbytesc(out, in, iskip, nbyte, nskip, n)
Store bytes - pack bits: Put arbitrary size values into a packed bit string, taking the low order bit...
subroutine w3fi58(ifield, npts, nwork, npfld, nbits, len, kmin)
Converts an array of integer numbers into an array of positive differences (number(s) - minimum value...