-- ERROR --
-----------------> BLESK ver.2021-02-27 run on Thu Mar 23 15:49:39 2023 UTC
-- File 20211104_122917_1229.dat, 2510  packets found.
APID:
      1229 (EW) in 2510 packets (all packets)
Mode:
      1 (EBEW-SRSL) in 2510 packets (all packets)
Total number of packets: 
      36720 in 2510 packets (all packets)
Packet No from 1 to 2510
!!!ERROR: Maximum packet number must be = 36720
   Sequence of packet numbers -- OK -- 
!!!ERROR: Last packet number must be = 36720
Hz and MHz counters from 189.882315 to 460.581446
-each separately from 189s to 460s and from 581446us to 882315us.
   Differences in neigboring packets: 
      0.000000 in 2508 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -270.699131 in 1 packets: 1428
MIU packet time from 2021-11-04T12:32:29.882.315.000 to 2021-11-04T12:37:00.581.446.000
   Differences in neigboring packets: 
      0.000000 in 2508 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -270.699131 in 1 packets: 1428
MIU orbit number: 
      60000 in 2510 packets (all packets)
MIU orbit information / directon: 
      0 (DOWN) in 2510 packets (all packets)
MIU orbit information / number of events: 
      0 in 2510 packets (all packets)
Waveform overflows in 306us: 
      0 (none) in 2510 packets (all packets)
Instrument anomalies: 
      0 (OK) in 2510 packets (all packets)
FPGA configuration version: 
      211 in 2510 packets (all packets)
10 MHz counter at the last 1Hz pulse from 190.9688037 to 461.9678800
   Differences in neigboring packets: 
      0.0000000 in 2508 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -270.9990763 in 1 packets: 1428
Temperature FPGA: 
      05 -> 48.5 degC in 2510 packets (all packets)
Temperature XO: 
      C0 -> 35.6 degC in 2510 packets (all packets)
Temperature ant 3: 
      01 -> 108.0 degC in 2510 packets (all packets)
Temperature ant 4: 
      01 -> 108.0 degC in 2510 packets (all packets)
Number of external events: 
      3 in 1428 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 1082 packets: 1429, 1430, 1431, 1432, 1433, 1434, 1435, 1436, 1437, 1438, 1439, 1440, 1441, 1442, 1443, 1444, 1445, 1446, ...
Number of generated alerts: 
      3 in 1428 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 1082 packets: 1429, 1430, 1431, 1432, 1433, 1434, 1435, 1436, 1437, 1438, 1439, 1440, 1441, 1442, 1443, 1444, 1445, 1446, ...
Survey memory error: 
      0 in 2510 packets (all packets)
Event memory error: 
      0 in 2510 packets (all packets)
Configuration error: 
      0 in 2510 packets (all packets)
SDRAM CRC error: 
      0 in 2510 packets (all packets)
Radio gain: 
      0 in 2510 packets (all packets)
Radio bandwidth: 
      0 in 2510 packets (all packets)
Digital gain: 
      0 in 2510 packets (all packets)
Analog gain: 
      0 in 2510 packets (all packets)

EVENT DATA READER
-- File 20211104_122917_1229.dat, 12 EW pages found. Extra packets: 62.
   ERROR -  Extra packets
   Design version: 211 => Data interpreted as:   Pre-final (EM4-FM1) data structure with variable 32bit C10MHz in the event data descriptor
--
Data structure of all event data packets in the sequence read from file:
   Event numbers from 1 to 3
      3 in 1428 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 1020 packets: 1429, 1430, 1431, 1432, 1433, 1434, 1435, 1436, 1437, 1438, 1439, 1440, 1441, 1442, 1443, 1444, 1445, 1446, ...
   LS 32 bits of C10MHz from descriptor (period 430s)  from 33.0768734 to 191.8129540
      Difference between the neighboring packets: 
      0.0000170 in 2446 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      158.6944986 in 1 packets: 1428
   Memory page number from 0 to 11
      Difference between the neighboring packets: 
      0 in 2436 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 11 packets: 204, 408, 612, 816, 1020, 1224, 1428, 1632, 1836, 2040, 2244
   Event page number from 1 to 30
      Difference between the neighboring packets: 
      0 in 2436 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 10 packets: 204, 408, 612, 816, 1020, 1224, 1632, 1836, 2040, 2244
      -29 in 1 packets: 1428
   MIU event flag 
      1 in 2448 packets (all packets)
   Time triggered event flag 
      0 in 2448 packets (all packets)
   Absolute time of the 1st EW sample = header abs. time + offset - one page (3.468 ms) - 175 ns delay
   Min EW event (1st sample) abs. time found among all events: 2021-11-04T12:32:29.826.826.637
   Min EW header abs. time found among all events            : 2021-11-04T12:32:29.882.315.000
   Max EW event (1st sample) abs. time found among all events: 2021-11-04T12:37:00.525.957.631
   Max EW header abs. time found among all events            : 2021-11-04T12:37:00.581.446.000
   TM values from -198 to 213 median:-4.00000
--
Data structure of separate events (selected and re-ordered from the packet sequence):

 Event no. 1 total number of packets: 1020
    Page no. 1:  204 packets  -- OK;  memory page(s):
      7 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      8 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      9 in 204 packets (all packets)  --OK-- 
    Page no. 4:  204 packets  -- OK;  memory page(s):
      10 in 204 packets (all packets)  --OK-- 
    Page no. 5:  204 packets  -- OK;  memory page(s):
      11 in 204 packets (all packets)  --OK-- 
   Event no. 1 pages: 5  ordered packets: 1020
   TM values from -198 to 213 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=189 C1MHz=0.882315
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 1019 packets (all packets)
      -- OK -- correct differences for all packets of this event
         LS 32 bits of C10MHz from descriptor (period 430s)  in the first packet of this event: 191.7956310
   Event type -- OK -- (constant for all packets of this event): External
   Gain -- OK -- (constant for all packets of this event): 1x
   Header abs. time  -- OK -- (constant for all packets of this event): 2021-11-04T12:32:29.882.315.000
   Event 1st sample abs. time : 2021-11-04T12:32:29.826.826.637)
   --- Rel. time correction for 1 points based on 449 XO calibration points at 1Hz counter from 0 to 448
   --- First point: 1Hz counter = 189, 32bit 10MHz counter = 191.795631000 corrected by 40bit 10MHz counter of 190.968803700 obtained at 1Hz counter of 189. Result: 189.826830111
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):             189.826829936
   Event data descriptor XO time (reconstructed seconds from XP start)    :             189.826830111
   Sampling frequency correction factor for this event:     0.999996600

 Event no. 2 total number of packets: 0
   No packets in this event  -- NOT OK -- 

 Event no. 3 total number of packets: 1428
    Page no. 24:  204 packets  -- OK;  memory page(s):
      0 in 204 packets (all packets)  --OK-- 
    Page no. 25:  204 packets  -- OK;  memory page(s):
      1 in 204 packets (all packets)  --OK-- 
    Page no. 26:  204 packets  -- OK;  memory page(s):
      2 in 204 packets (all packets)  --OK-- 
    Page no. 27:  204 packets  -- OK;  memory page(s):
      3 in 204 packets (all packets)  --OK-- 
    Page no. 28:  204 packets  -- OK;  memory page(s):
      4 in 204 packets (all packets)  --OK-- 
    Page no. 29:  204 packets  -- OK;  memory page(s):
      5 in 204 packets (all packets)  --OK-- 
    Page no. 30:  204 packets  -- OK;  memory page(s):
      6 in 204 packets (all packets)  --OK-- 
   Event no. 3 pages: 7  ordered packets: 1428
   TM values from -181 to 179 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=460 C1MHz=0.581446
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 1427 packets (all packets)
      -- OK -- correct differences for all packets of this event
         LS 32 bits of C10MHz from descriptor (period 430s)  in the first packet of this event: 33.0768734
   Event type -- OK -- (constant for all packets of this event): External
   Gain -- OK -- (constant for all packets of this event): 1x
   Header abs. time  -- OK -- (constant for all packets of this event): 2021-11-04T12:37:00.581.446.000
   Event 1st sample abs. time : 2021-11-04T12:37:00.525.957.631)
   --- Rel. time correction for 1 points based on 449 XO calibration points at 1Hz counter from 0 to 448
   --- First point: 1Hz counter = 460, 32bit 10MHz counter = 33.076873400 corrected by 40bit 10MHz counter of 449.967920900 obtained at 1Hz counter of 448. Result: 460.605726220
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):             460.605726045
   Event data descriptor XO time (reconstructed seconds from XP start)    :             460.605726220
   Sampling frequency correction factor for this event:     0.999996500
--
Extremes in separate events:

 - Event number: 1 from 2021-11-04T12:32:29.826.826.637 to 2021-11-04T12:32:29.844.166.695 (XO: 189.826829936 - 189.844169995)
   Min TM value:-198 at an offset of 4092.764 usec -> 2021-11-04T12:32:29.830.919.400 (XO: 189.830922700)
   Max TM value:213 at an offset of 4065.864 usec -> 2021-11-04T12:32:29.830.892.500 (XO: 189.830895800)
   Max dTM/dt [1/us]:1.58e+03 at an offset of 4065.801 usec -> 2021-11-04T12:32:29.830.892.438 (XO: 189.830895738)
   Min dTM/dt [1/us]:-1.86e+03 at an offset of 4065.976 usec -> 2021-11-04T12:32:29.830.892.613 (XO: 189.830895913)
   Med: -4.00000   Ave: -4.4775764   Std: 7.2470766

 - Event number: 2 --EMPTY-- 

 - Event number: 3 from 2021-11-04T12:37:00.525.957.631 to 2021-11-04T12:37:00.550.233.715 (XO: 460.605726045 - 460.630002130)
   Min TM value:-181 at an offset of 3115.761 usec -> 2021-11-04T12:37:00.529.073.391 (XO: 460.608841806)
   Max TM value:179 at an offset of 3016.773 usec -> 2021-11-04T12:37:00.528.974.404 (XO: 460.608742818)
   Max dTM/dt [1/us]:1.52e+03 at an offset of 3073.448 usec -> 2021-11-04T12:37:00.529.031.079 (XO: 460.608799493)
   Min dTM/dt [1/us]:-1.55e+03 at an offset of 3016.873 usec -> 2021-11-04T12:37:00.528.974.504 (XO: 460.608742918)
   Med: -4.00000   Ave: -4.4445682   Std: 7.6389254
