Go to the documentation of this file.
2 c this
subroutine extracts the discrete value bdat from a byte
3 c using the location specified by dis in the array raw
7 c changed
integer*1 to byte for Sun OS compatibility, B. A. Franz,
8 c gac, november 14, 1997.
11 integer*2 mask(8),itmp2,idat
12 byte raw(*),bdat,temp2(2)
13 equivalence(temp2,itmp2)
14 data mask/128,64,32,16,8,4,2,1/
19 temp2(1) = raw(dis(1))
21 temp2(2) = raw(dis(1))
24 idat = idat + iand(itmp2,mask(dis(2)+j-1))
26 bdat = idat/mask(dis(2)+dis(3)-1)
subroutine read_discrete(bdat, dis, raw)