      SUBROUTINE VIM5PNS(PRI,GAMMA2,TIME,BAD)
C
C USING 192 SECOND VIM-5 EDR RECORD, INTERPOLATE SECONDARY MAG DETAIL (24 SEC) 
C DATA POINTS TO PRIMARY MAG DETAIL RATE (.48 SEC).  PASS INTERPOLATED 
C SECONDARY MAG DATA TO FIELD AVERAGING ROUTINES FOR ADDITION TO THE SUMMARY 
C RECORD.
C
C CREATED 07/26/95 - SBK
C
      INTEGER*2 TIME(6)
C
      REAL*4 PRI(3,400),GAMMA2(3,8),SEC(3,400)
C
      INCLUDE 'UNPACK.INC'
C
      DO I=1,400
C
C STEP INTERPOLATE 24 SECOND VIM-5 SECONDARY MAG DATA
C
       ISEC = (I-1)/50 + 1
       SEC(1,I) = GAMMA2(1,ISEC)
       SEC(2,I) = GAMMA2(2,ISEC)
       SEC(3,I) = GAMMA2(3,ISEC)
C
      END DO
C
C CALL VIM-5 AVERAGING ROUTINES
C
      CALL VIM5PRI(PRI,SEC,TIME,BAD)
C
      RETURN
      END
