      SUBROUTINE CR4SEC(GAMMA2,SCF,TIME,BAD)
C
C USING 96 SECOND CR-4 EDR RECORD, INTERPOLATE SECONDARY MAG DATA (2.40 SEC) 
C TO PRIMARY MAG RATE (.30 SEC).
C
C ORIGINAL SOURCE WRITTEN BY SANDY KRAMER, HUGHES STX, CODE 692  03/26/96
C
      INTEGER*2 TIME(6)
C
      REAL*4 GAMMA(3,640),GAMMA2(3,80),SCF(3,640)
C
      INCLUDE 'UNPACK.INC'
C
      DO I=1,640
C
C STEP INTERPOLATE 2.40 SECOND CR-4 SECONDARY MAG DATA TO .30 SECOND
C PRIMARY MAG RATE.
C
       ISEC = (I-1)/8 + 1
       GAMMA(1,I) = GAMMA2(1,ISEC)
       GAMMA(2,I) = GAMMA2(2,ISEC)
       GAMMA(3,I) = GAMMA2(3,ISEC)
C
      END DO
C
C CALL CR-4 AVERAGING ROUTINES
C
      CALL CR4PRI(GAMMA,SCF,TIME,BAD)
C
      RETURN
      END
