Field Name Length (bits) Bit Contents Description
Item Total Algn Off
dataTeGraded 96 + 58*n 32 0 telemetry Packet Data Packet, Timed Exposure, Graded Mode (see table 24, swreq Rev. I)
  header 6464 32 0 telemetry Header Telemetry Packet Header
    synch 3232 32 0 uint32 = 0x736f4166 This field delimits the start of a telemetry packet.
    telemetryLength 1010 1 32 uint10 = 3+(29*n)/16 This field indicates the total number of 32-bit words in the telemetry packet
    formatTag 66 1 42 uint6 = 25, 53 This field identifies the content of the telemetry packet [see enum TlmFormatTag]:
TTAG_SCI_TE_DAT_GRADED (25)
TTAG_SCI_CC_DAT_GRADED3x3 (53)
    sequenceNumber 1616 1 48 uint16 This field is the sequence number of the telemetry packet
  ccdId 44 1 64 uint4 Identify which CCD produced the data [see enum CcdId]
  fepId 33 1 68 uint3 Identify which FEP processed the data [see enum FepId]
  dataPacketNumber 2020 1 71 uint20 Data Packet Number within the current CCD exposure
  events[(16*pl-48)/29] 5858*n 32 96 event TeGraded Array of Timed Exposure Graded Mode events
    ccdRow 1010 1 96+
58*i
uint10 CCD Row position of center pixel of the event
    ccdColumn 1010 1 106+
58*i
uint10 CCD Column position of center pixel of the event
    eventAmplitude 1717 1 116+
58*i
uint17 Total corrected amplitude of the event
    gradeCode 88 1 133+
58*i
uint8 Grade code of the event [see Event Grade Code Definition]
    cornerMean 1313 1 141+
58*i
int13 Mean of the corrected pulse height value of corner pixels within the event, rounded to the nearest integer value. If no corner values were valid, this field will contain 4095. If the mean is less than or equal to -4096, the field will be set to -4096 [see enum GradedMeanCode]

Definition of variables
i the index of an element in the events array (0 < i < n)
n the dimension of the events array [(16*pl-48)/29]
pl the value of the telemetryLength field