-- ERROR --
-----------------> BLESK ver.2021-02-27 run on Mon Jan  8 14:24:21 2024 UTC
-- File 20230721_033138_1229.dat, 796  packets found.
APID:
      1229 (EW) in 796 packets (all packets)
Mode:
      1 (EBEW-SRSL) in 796 packets (all packets)
Total number of packets: 
      36720 in 796 packets (all packets)
Packet No from 1 to 796
!!!ERROR: Maximum packet number must be = 36720
   Sequence of packet numbers -- OK -- 
!!!ERROR: Last packet number must be = 36720
Hz and MHz counters from 28.903882 to 35.243411
-each separately from 28s to 35s and from 243411us to 903882us.
   Differences in neigboring packets: 
      0.000000 in 794 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -6.339529 in 1 packets: 408
MIU packet time from 2023-07-21T03:32:09.903.882.000 to 2023-07-21T03:32:16.243.411.000
   Differences in neigboring packets: 
      0.000000 in 794 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -6.339529 in 1 packets: 408
MIU orbit number: 
      60000 in 796 packets (all packets)
MIU orbit information / directon: 
      0 (DOWN) in 796 packets (all packets)
MIU orbit information / number of events: 
      0 in 796 packets (all packets)
Waveform overflows in 306us: 
      0 (none) in 796 packets (all packets)
Instrument anomalies: 
      0 (OK) in 796 packets (all packets)
FPGA configuration version: 
      211 in 796 packets (all packets)
10 MHz counter at the last 1Hz pulse from 30.2889666 to 37.2889425
   Differences in neigboring packets: 
      0.0000000 in 794 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -6.9999759 in 1 packets: 408
Temperature FPGA: 
      01 -> 53.7 degC in 408 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      02 -> 52.4 degC in 388 packets: 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, ...
Temperature XO: 
      C4 -> 42.0 degC in 408 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      C5 -> 43.6 degC in 388 packets: 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, ...
Temperature ant 3: 
      01 -> 108.0 degC in 796 packets (all packets)
Temperature ant 4: 
      01 -> 108.0 degC in 796 packets (all packets)
Number of external events: 
      3 in 408 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      2 in 388 packets: 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, ...
Number of generated alerts: 
      3 in 408 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      2 in 388 packets: 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, ...
Survey memory error: 
      0 in 796 packets (all packets)
Event memory error: 
      0 in 796 packets (all packets)
Configuration error: 
      0 in 796 packets (all packets)
SDRAM CRC error: 
      0 in 796 packets (all packets)
Radio gain: 
      0 in 796 packets (all packets)
Radio bandwidth: 
      0 in 796 packets (all packets)
Digital gain: 
      0 in 796 packets (all packets)
Analog gain: 
      0 in 796 packets (all packets)

EVENT DATA READER
-- File 20230721_033138_1229.dat, 3 EW pages found. Extra packets: 184.
   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 2 to 3
      3 in 408 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      2 in 204 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 31.1373625 to 37.4837855
      Difference between the neighboring packets: 
      0.0000170 in 610 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -6.3464230 in 1 packets: 408
   Memory page number from 33 to 35
      Difference between the neighboring packets: 
      0 in 609 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 2 packets: 204, 408
   Event page number from 1 to 2
      Difference between the neighboring packets: 
      0 in 609 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 1 packets: 204
      -1 in 1 packets: 408
   MIU event flag 
      1 in 612 packets (all packets)
   Time triggered event flag 
      0 in 612 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-21T03:32:09.848.393.631
   Min EW header abs. time found among all events            : 2023-07-21T03:32:09.903.882.000
   Max EW event (1st sample) abs. time found among all events: 2023-07-21T03:32:16.187.922.631
   Max EW header abs. time found among all events            : 2023-07-21T03:32:16.243.411.000
   TM values from -207 to 185 median:-4.00000
--
Data structure of separate events (selected and re-ordered from the packet sequence):

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

 Event no. 2 total number of packets: 204
    Page no. 1:  204 packets  -- OK;  memory page(s):
      35 in 204 packets (all packets)  --OK-- 
   Event no. 2 pages: 1  ordered packets: 204
   TM values from -180 to 162 median: -5.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=28 C1MHz=0.903882
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 203 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: 31.1373625
   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-21T03:32:09.903.882.000
   Event 1st sample abs. time : 2023-07-21T03:32:09.848.393.631)
   --- Rel. time correction for 1 points based on 29 XO calibration points at 1Hz counter from 0 to 28
   --- First point: 1Hz counter = 28, 32bit 10MHz counter = 31.137362500 corrected by 40bit 10MHz counter of 30.288966600 obtained at 1Hz counter of 28. Result: 28.848398869
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):              28.848398694
   Event data descriptor XO time (reconstructed seconds from XP start)    :              28.848398869
   Sampling frequency correction factor for this event:     0.999996500

 Event no. 3 total number of packets: 408
    Page no. 1:  204 packets  -- OK;  memory page(s):
      33 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      34 in 204 packets (all packets)  --OK-- 
   Event no. 3 pages: 2  ordered packets: 408
   TM values from -207 to 185 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=35 C1MHz=0.243411
   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: 37.4768665
   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-21T03:32:16.243.411.000
   Event 1st sample abs. time : 2023-07-21T03:32:16.187.922.631)
   --- Rel. time correction for 1 points based on 29 XO calibration points at 1Hz counter from 0 to 28
   --- First point: 1Hz counter = 35, 32bit 10MHz counter = 37.476866500 corrected by 40bit 10MHz counter of 30.288966600 obtained at 1Hz counter of 28. Result: 35.187925058
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):              35.187924883
   Event data descriptor XO time (reconstructed seconds from XP start)    :              35.187925058
   Sampling frequency correction factor for this event:     0.999996500
--
Extremes in separate events:

 - Event number: 1 --EMPTY-- 

 - Event number: 2 from 2023-07-21T03:32:09.848.393.631 to 2023-07-21T03:32:09.851.861.643 (XO: 28.848398694 - 28.851866707)
   Min TM value:-180 at an offset of 3269.574 usec -> 2023-07-21T03:32:09.851.663.204 (XO: 28.851668268)
   Max TM value:162 at an offset of 3269.199 usec -> 2023-07-21T03:32:09.851.662.829 (XO: 28.851667893)
   Max dTM/dt [1/us]:1.54e+03 at an offset of 3293.712 usec -> 2023-07-21T03:32:09.851.687.342 (XO: 28.851692406)
   Min dTM/dt [1/us]:-1.49e+03 at an offset of 3296.174 usec -> 2023-07-21T03:32:09.851.689.805 (XO: 28.851694868)
   Med: -5.00000   Ave: -4.5726175   Std: 8.5929339

 - Event number: 3 from 2023-07-21T03:32:16.187.922.631 to 2023-07-21T03:32:16.194.858.655 (XO: 35.187924883 - 35.194860907)
   Min TM value:-207 at an offset of 3320.187 usec -> 2023-07-21T03:32:16.191.242.817 (XO: 35.191245069)
   Max TM value:185 at an offset of 3319.937 usec -> 2023-07-21T03:32:16.191.242.567 (XO: 35.191244819)
   Max dTM/dt [1/us]:1.40e+03 at an offset of 3322.674 usec -> 2023-07-21T03:32:16.191.245.305 (XO: 35.191247557)
   Min dTM/dt [1/us]:-1.85e+03 at an offset of 3320.049 usec -> 2023-07-21T03:32:16.191.242.680 (XO: 35.191244932)
   Med: -4.00000   Ave: -4.4015427   Std: 7.8089756
