      COMMON /EDRHREC/ B_IHREC,B_PROJ,B_INSTR,B_ISCLK1,B_ISCLK2,
     . B_IERT1,B_IERT2,
     1 B_NTOTAL,B_NFILL,B_NCMPLT,B_NVLRS,B_NVAACS,B_NREALT,B_NSDR,
     . B_NIDR,B_NSFDU,B_NEDR,
     2 B_NGCFERR,B_NNGOLERR,B_NAGOLERR,B_NGOLERR,B_NPNERR,
     . B_NSCLKERR,B_SCLKPART,
     3 B_HDRRES1,B_RIMSTAT,B_IHREC1,B_HDRRES2

      BYTE HDREC1(1024),HDREC2(1024),HEADER(2048)
      EQUIVALENCE (HDREC1,HEADER,B_IHREC),(HDREC2,HEADER(1025))

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

C_VARS  TYPE        VARIABLE      DESCRIPTION
      BYTE          B_IHREC(2)	! EDR record number (0)
      BYTE	    B_PROJ(10)	! Project (ASCII "GALILEO")
      BYTE	    B_INSTR(6)	! Instrument (ASCII "NIMS")
      BYTE          B_ISCLK1(4)	! Spacecraft clock of first data record
      BYTE          B_ISCLK2(4)	! Spacecraft clock of last data record
      BYTE          B_IERT1(4)	! ERT of first data record (Bits 0-6 year, 7-15)
      BYTE          B_IERT2(4)	! ERT of last data record  ( day, 16-31 minute)
      BYTE          B_NTOTAL(2)	! Total # records
      BYTE          B_NFILL(2)	! Total # filler records
      BYTE          B_NCMPLT(2)	! Total # complete records
      BYTE          B_NVLRS(2)	! Total # valid NIMS LRS packets
      BYTE          B_NVAACS(2)	! Total # valid AACS LRS packets
      BYTE          B_NREALT(2)	! Total # realtime records
      BYTE          B_NSDR(2)	! Total # records from SDRs
      BYTE          B_NIDR(2)	! Total # records from IDRs
      BYTE          B_NSFDU(2)	! Total # records from non-realtime SFDUs
      BYTE          B_NEDR(2)	! Total # records from EDRs
      BYTE          B_NGCFERR(2)	! # records with GCF block errors
      BYTE          B_NNGOLERR(2)	! # records with NIMS LRS Golay error
      BYTE          B_NAGOLERR(2)	! # records with AACS LRS Golay error
      BYTE          B_NGOLERR(4)	! Total # records with Golay errors
      BYTE          B_NPNERR(4)	! Total # records with PN-number errors
      BYTE          B_NSCLKERR(4)      	! Total # SCLK errors
      BYTE          B_SCLKPART	! SCLK rollover partition
      BYTE          B_HDRRES1(151)      ! Reserved
      BYTE          B_RIMSTAT(2,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
      BYTE          B_IHREC1(2)	     ! EDR record number (1) 1st of 2nd hdr rec
      BYTE          B_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       22mar93  EME  Modified for Sun/UNIX system
C_END
