1 SUBROUTINE CR8I2V(RDATA,BASE,AMP,IDATA,LM)
2 ************************************************************************
3 * ( IN ) RDATA R*8(LM) : ŽÀ�””z—ñ
4 * ( OUT) BASE R*4 : Šî�€’l
5 * ( OUT) AMP R*4 : ŒW�”
6 * ( OUT) IDATA I*2(LM) : �®�””z—ñ
7 * ( IN ) LM I*4 : ƒf�[ƒ^�”
10 ************************************************************************
12 REAL*8 RDATA(LM),RMAX,RMIN,DIST,DBASE,EXPV
13 INTEGER*4 IDATA(*) !shc-rizvi
14 c INTEGER*2 IDATA(*) !shc-rizvi
16 INTEGER*2 HZERO/0/,HWORK
23 IF (RDATA(I).GT.RMAX) RMAX=RDATA(I)
24 IF (RDATA(I).LT.RMIN) RMIN=RDATA(I)
37 IF ((LM/2)*2.NE.LM) THEN ! LM ODD
38 Crizvi CALL MOVEC(IDATA(LM/2+1),1,HZERO,1,2)
39 IDATA(LM/2+1) = HZERO * 65536
45 IWORK=NINT((RDATA(I)-DBASE)*EXPV) ! EVEN PART
47 IDATA(I/2)=NINT((RDATA(I-1)-DBASE)*EXPV)*65536+IWORK
49 IDATA(I/2)=(NINT((RDATA(I-1)-DBASE)*EXPV)+1)*65536+IWORK
52 IF ((LM/2)*2.NE.LM) THEN ! LM ODD
53 HWORK=NINT((RDATA(LM)-DBASE)*EXPV)
54 Crizvi CALL MOVEC(IDATA(LM/2+1),1,HWORK,1,2)
55 IDATA(LM/2+1) = HWORK * 65536