      COMMON /EDRHDR/ IHREC,PROJ,INSTR,ISCLK1,ISCLK2,IERT1,IERT2,
     1 NTOTAL,NFILL,NCMPLT,NVLRS,NVAACS,NREALT,NSDR,NIDR,NSFDU,NEDR,
     2 NGCFERR,NNGOLERR,NAGOLERR,NGOLERR,NPNERR,NSCLKERR,SCLKPART,
     3 HDRRES1,RIMSTAT,IHREC1,HDRRES2

C_TITLE  EDRHDR  NIMS EDR file header records description (EDRHDR.INC)

C_VARS  TYPE        VARIABLE      DESCRIPTION
      INTEGER*2     IHREC	! EDR record number (0)
      BYTE	    PROJ(10)	! Project (ASCII "GALILEO")
      BYTE	    INSTR(6)	! Instrument (ASCII "NIMS")
      INTEGER*4     ISCLK1	! Spacecraft clock of first data record
      BYTE	    LSCLK1(4),MF1 ! RIM (high order 3 bytes) minor frm (LO byte)
      EQUIVALENCE   (ISCLK1,LSCLK1),(MF1,LSCLK1(4))
      INTEGER*4     ISCLK2	! Spacecraft clock of last data record
      BYTE	    LSCLK2(4),MF2 ! RIM (high order 3 bytes) minor frm (LO byte)
      EQUIVALENCE   (ISCLK2,LSCLK2),(MF2,LSCLK2(4))
      INTEGER*4     IERT1	! ERT of first data record (Bits 0-6 year, 7-15)
      INTEGER*4     IERT2	! ERT of last data record  ( day, 16-31 minute)
      INTEGER*2     NTOTAL	! Total # records
      INTEGER*2     NFILL	! Total # filler records
      INTEGER*2     NCMPLT	! Total # complete records
      INTEGER*2     NVLRS	! Total # valid NIMS LRS packets
      INTEGER*2     NVAACS	! Total # valid AACS LRS packets
      INTEGER*2     NREALT	! Total # realtime records
      INTEGER*2     NSDR	! Total # records from SDRs
      INTEGER*2     NIDR	! Total # records from IDRs
      INTEGER*2     NSFDU	! Total # records from non-realtime SFDUs
      INTEGER*2     NEDR	! Total # records from EDRs
      INTEGER*2     NGCFERR	! Total # records with GCF block errors
      INTEGER*2     NNGOLERR	! Total # records with NIMS LRS Golay error
      INTEGER*2     NAGOLERR	! Total # records with AACS LRS Golay error
      INTEGER*4     NGOLERR	! Total # records with Golay errors
      INTEGER*4     NPNERR	! Total # records with PN-number errors
      INTEGER*4     NSCLKERR	! Total # SCLK errors
      BYTE          SCLKPART	! SCLK rollover partition
      BYTE          HDRRES1(151)   ! Reserved
      INTEGER*2     RIMSTAT(4,100) ! Noise statistics for each RIM of EDR
C					(1,*) Min GCF SNR in records of RIM
C					(2,*) Max GCF SNR in records of RIM
C					(3,*) Min GCF RSL in records of RIM
C					(4,*) Max GCF RSL in records of RIM
C				      SNR = Signal-to-Noise Ratio
C				      RSL = Receiver Signal Level
      INTEGER*2     IHREC1	! EDR record number (1) 1st word of 2nd hdr rec
      BYTE          HDRRES2(1022)  ! Reserved

C_DESCR Structure of NIMS EDR file header records:  See NIMS EDR SIS.
C	Total length 2048 bytes (2 records).
C
C	Note that the RIM count is in the high-order 3 bytes of the
C	spacecraft clock item.  For ease of use, it should probably
C	be extracted into the 3 low-order bytes of a 4-byte longword,
C	with zero high-order byte.  Likewise, the minor frame count
C	byte can be inserted into its own 4-byte item.

C_LIMS  MISC array to be replaced by detailed spec of 29 EDR items

C_HIST	12feb90  R. Mehlman  ORIGINAL VERSION, incomplete
C	13nov90  RMX  Completed version
C	01oct91  RMX  Corrected errors in size of NPNERR & NSCLKERR, added
C			missing NGOLERR

C_END
