      COMMON /EDRDAT/ IDREC,ISCLK,IERT,ITLMFMT,IOBSCUR,IRES1,IVALID,
     1 ITLMIN,IDSN,ISNR,IRSL,ILRSF,IRES2,ILRS,IENGR,IAACS,IHRS

C_TITLE  EDRDAT  NIMS EDR file data record description (EDRDAT.INC)

C_VARS  TYPE        VARIABLE      DESCRIPTION
      INTEGER*2     IDREC	! EDR data record number
      INTEGER*4     ISCLK	! Spacecraft clock: RIM (high order 3 bytes)
C						    minor frame (1 byte)
      BYTE          LSCLK(4),MF
      EQUIVALENCE   (LSCLK,ISCLK),(MF,LSCLK(4))
      INTEGER*4     IERT	! Earth Received Time: (Bits 0-6 year,
C							7-15 day, 16-31 minute)
      BYTE          ITLMFMT	! Telemetry format (defined in GLL 3-280)
      BYTE          IOBSCUR	! Obscuration status: 0 not obscured, 1 maybe,
C						      2 obscured, 3 unknown
      BYTE          IRES1(2)	! Reserved
      BYTE          IVALID(10)	! Valid data flags, one byte per packet,
C				   1 bit per MOD8 count -- 1 if valid, 0 if not
      BYTE          ITLMIN	! Flags: bits 0-4: record ID of FID in LRS hdr
C					 bits 5-7: input source (0 SFDU, 1 SDR,
C							2 IDR, 3 SFDU, 4 EDR)
      BYTE          IDSN	! DSN station number
      INTEGER*2     ISNR	! Symbol Signal-to-Noise Ratio, GCF of 1st block
      INTEGER*2     IRSL	! Receiver Signal Level, GCF of 1st block
      INTEGER*2     ILRSF	! LRS error flags (see EDR SIS for details)
      BYTE          IRES2(3)	! Reserved
      BYTE          ILRS(3)	! Low rate science items
      BYTE          IENGR(2)	! LRS engineering items (including temps)
      INTEGER*2     IAACS(12)   ! LRS AACS items
      BYTE          IHRS(96,10)	! 10 packets of NIMS HRS, including
C				!  housekeeping, background and sensor
C				!  data, latter two as packed 10-bit items

C_DESCR Record structure of NIMS EDR file data record:  See NIMS EDR SIS.
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_HIST	12feb90  R. Mehlman  ORIGINAL VERSION (incomplete)
C	13nov90  RMX  Completed version
C	17sep91  RMX  Detailed complete version
C_END
