-- ERROR --
-----------------> BLESK ver.2021-02-27 run on Tue Jan  9 21:41:48 2024 UTC
-- File 20230722_201009_1229.dat, 3462  packets found.
APID:
      1229 (EW) in 3462 packets (all packets)
Mode:
      1 (EBEW-SRSL) in 3462 packets (all packets)
Total number of packets: 
      36720 in 3462 packets (all packets)
Packet No from 1 to 3462
!!!ERROR: Maximum packet number must be = 36720
   Sequence of packet numbers -- OK -- 
!!!ERROR: Last packet number must be = 36720
Hz and MHz counters from 1.969865 to 2.212629
-each separately from 1s to 2s and from 212629us to 969865us.
   Differences in neigboring packets: 
      0.000000 in 3460 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      0.242764 in 1 packets: 408
MIU packet time from 2023-07-22T20:10:13.969.865.000 to 2023-07-22T20:10:14.212.629.000
   Differences in neigboring packets: 
      0.000000 in 3460 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      0.242764 in 1 packets: 408
MIU orbit number: 
      60000 in 3462 packets (all packets)
MIU orbit information / directon: 
      0 (DOWN) in 3462 packets (all packets)
MIU orbit information / number of events: 
      0 in 3462 packets (all packets)
Waveform overflows in 306us: 
      0 (none) in 3462 packets (all packets)
Instrument anomalies: 
      0 (OK) in 3462 packets (all packets)
FPGA configuration version: 
      211 in 3462 packets (all packets)
10 MHz counter at the last 1Hz pulse from 3.2934263 to 4.2934231
   Differences in neigboring packets: 
      0.0000000 in 3460 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      0.9999968 in 1 packets: 408
Temperature FPGA: 
      FE -> 57.6 degC in 3462 packets (all packets)
Temperature XO: 
      C6 -> 45.2 degC in 3462 packets (all packets)
Temperature ant 3: 
      01 -> 108.0 degC in 3462 packets (all packets)
Temperature ant 4: 
      01 -> 108.0 degC in 3462 packets (all packets)
Number of external events: 
      1 in 408 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      2 in 3054 packets: 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, ...
Number of generated alerts: 
      1 in 408 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      2 in 3054 packets: 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, ...
Survey memory error: 
      0 in 3462 packets (all packets)
Event memory error: 
      0 in 3462 packets (all packets)
Configuration error: 
      0 in 3462 packets (all packets)
SDRAM CRC error: 
      0 in 3462 packets (all packets)
Radio gain: 
      0 in 3462 packets (all packets)
Radio bandwidth: 
      0 in 3462 packets (all packets)
Digital gain: 
      0 in 3462 packets (all packets)
Analog gain: 
      0 in 3462 packets (all packets)

EVENT DATA READER
-- File 20230722_201009_1229.dat, 16 EW pages found. Extra packets: 198.
   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 2
      1 in 408 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      2 in 2856 packets: 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, ...
   LS 32 bits of C10MHz from descriptor (period 430s)  from 4.4089497 to 4.4991007
      Difference between the neighboring packets: 
      0.0000170 in 3262 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      0.0346970 in 1 packets: 408
   Memory page number from 0 to 25
      Difference between the neighboring packets: 
      0 in 3248 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 14 packets: 204, 612, 816, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 2856, 3060
      11 in 1 packets: 408
   Event page number from 1 to 60
      Difference between the neighboring packets: 
      0 in 3248 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 14 packets: 204, 612, 816, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 2856, 3060
      -59 in 1 packets: 408
   MIU event flag 
      1 in 3264 packets (all packets)
   Time triggered event flag 
      0 in 3264 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: 2023-07-22T20:10:13.914.376.825
   Min EW header abs. time found among all events            : 2023-07-22T20:10:13.969.865.000
   Max EW event (1st sample) abs. time found among all events: 2023-07-22T20:10:14.157.140.825
   Max EW header abs. time found among all events            : 2023-07-22T20:10:14.212.629.000
   TM values from -311 to 235 median:-4.00000
--
Data structure of separate events (selected and re-ordered from the packet sequence):

 Event no. 1 total number of packets: 408
    Page no. 59:  204 packets  -- OK;  memory page(s):
      0 in 204 packets (all packets)  --OK-- 
    Page no. 60:  204 packets  -- OK;  memory page(s):
      1 in 204 packets (all packets)  --OK-- 
   Event no. 1 pages: 2  ordered packets: 408
   TM values from -124 to 117 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=1 C1MHz=0.969865
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 407 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: 4.4089497
   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): 2023-07-22T20:10:13.969.865.000
   Event 1st sample abs. time : 2023-07-22T20:10:13.914.376.825)
   --- Rel. time correction failed for 1 points and 0 XO calibration points.
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):            -333.000000175
   Event data descriptor XO time (reconstructed seconds from XP start)    :            -333.000000000
   Sampling frequency correction factor for this event:     1.000000000

 Event no. 2 total number of packets: 2856
    Page no. 1:  204 packets  -- OK;  memory page(s):
      12 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      13 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      14 in 204 packets (all packets)  --OK-- 
    Page no. 4:  204 packets  -- OK;  memory page(s):
      15 in 204 packets (all packets)  --OK-- 
    Page no. 5:  204 packets  -- OK;  memory page(s):
      16 in 204 packets (all packets)  --OK-- 
    Page no. 6:  204 packets  -- OK;  memory page(s):
      17 in 204 packets (all packets)  --OK-- 
    Page no. 7:  204 packets  -- OK;  memory page(s):
      18 in 204 packets (all packets)  --OK-- 
    Page no. 8:  204 packets  -- OK;  memory page(s):
      19 in 204 packets (all packets)  --OK-- 
    Page no. 9:  204 packets  -- OK;  memory page(s):
      20 in 204 packets (all packets)  --OK-- 
    Page no. 10:  204 packets  -- OK;  memory page(s):
      21 in 204 packets (all packets)  --OK-- 
    Page no. 11:  204 packets  -- OK;  memory page(s):
      22 in 204 packets (all packets)  --OK-- 
    Page no. 12:  204 packets  -- OK;  memory page(s):
      23 in 204 packets (all packets)  --OK-- 
    Page no. 13:  204 packets  -- OK;  memory page(s):
      24 in 204 packets (all packets)  --OK-- 
    Page no. 14:  204 packets  -- OK;  memory page(s):
      25 in 204 packets (all packets)  --OK-- 
   Event no. 2 pages: 14  ordered packets: 2856
   TM values from -311 to 235 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=2 C1MHz=0.212629
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 2855 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: 4.4505657
   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): 2023-07-22T20:10:14.212.629.000
   Event 1st sample abs. time : 2023-07-22T20:10:14.157.140.825)
   --- Rel. time correction failed for 1 points and 0 XO calibration points.
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):            -333.000000175
   Event data descriptor XO time (reconstructed seconds from XP start)    :            -333.000000000
   Sampling frequency correction factor for this event:     1.000000000
--
Extremes in separate events:

 - Event number: 1 from 2023-07-22T20:10:13.914.376.825 to 2023-07-22T20:10:13.921.312.825 (XO: -333.000000175 - -332.993064175)
   Min TM value:-124 at an offset of 3052.562 usec -> 2023-07-22T20:10:13.917.429.387 (XO: -332.996947613)
   Max TM value:117 at an offset of 3012.938 usec -> 2023-07-22T20:10:13.917.389.762 (XO: -332.996987238)
   Max dTM/dt [1/us]:1.41e+03 at an offset of 3052.588 usec -> 2023-07-22T20:10:13.917.429.412 (XO: -332.996947588)
   Min dTM/dt [1/us]:-1.35e+03 at an offset of 3051.700 usec -> 2023-07-22T20:10:13.917.428.525 (XO: -332.996948475)
   Med: -4.00000   Ave: -4.4098237   Std: 26.755308

 - Event number: 2 from 2023-07-22T20:10:14.157.140.825 to 2023-07-22T20:10:14.205.692.825 (XO: -333.000000175 - -332.951448175)
   Min TM value:-311 at an offset of 2227.938 usec -> 2023-07-22T20:10:14.159.368.762 (XO: -332.997772238)
   Max TM value:235 at an offset of 32060.925 usec -> 2023-07-22T20:10:14.189.201.749 (XO: -332.967939250)
   Max dTM/dt [1/us]:3.05e+03 at an offset of 42215.162 usec -> 2023-07-22T20:10:14.199.355.987 (XO: -332.957785013)
   Min dTM/dt [1/us]:-3.07e+03 at an offset of 2227.812 usec -> 2023-07-22T20:10:14.159.368.637 (XO: -332.997772363)
   Med: -4.00000   Ave: -4.4409726   Std: 24.808577
