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...