-- ERROR --
-----------------> BLESK ver.2021-02-27 run on Mon Jan  8 17:02:14 2024 UTC
-- File 20230721_170910_1229.dat, 3466  packets found.
APID:
      1229 (EW) in 3466 packets (all packets)
Mode:
      1 (EBEW-SRSL) in 3466 packets (all packets)
Total number of packets: 
      36720 in 3466 packets (all packets)
Packet No from 1 to 3466
!!!ERROR: Maximum packet number must be = 36720
   Sequence of packet numbers -- OK -- 
!!!ERROR: Last packet number must be = 36720
Hz and MHz counters from 9.574440 to 16.715074
-each separately from 9s to 16s and from 574440us to 715074us.
   Differences in neigboring packets: 
      0.000000 in 3464 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -7.140634 in 1 packets: 2652
MIU packet time from 2023-07-21T17:09:22.574.440.000 to 2023-07-21T17:09:29.715.074.000
   Differences in neigboring packets: 
      0.000000 in 3464 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -7.140634 in 1 packets: 2652
MIU orbit number: 
      60000 in 3466 packets (all packets)
MIU orbit information / directon: 
      0 (DOWN) in 3466 packets (all packets)
MIU orbit information / number of events: 
      0 in 3466 packets (all packets)
Waveform overflows in 306us: 
      0 (none) in 3466 packets (all packets)
Instrument anomalies: 
      0 (OK) in 3466 packets (all packets)
FPGA configuration version: 
      211 in 3466 packets (all packets)
10 MHz counter at the last 1Hz pulse from 10.6879174 to 17.6878944
   Differences in neigboring packets: 
      0.0000000 in 3464 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -6.9999770 in 1 packets: 2652
Temperature FPGA: 
      FF -> 56.3 degC in 2652 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      FE -> 57.6 degC in 814 packets: 2653, 2654, 2655, 2656, 2657, 2658, 2659, 2660, 2661, 2662, 2663, 2664, 2665, 2666, 2667, 2668, 2669, 2670, ...
Temperature XO: 
      C6 -> 45.2 degC in 3466 packets (all packets)
Temperature ant 3: 
      01 -> 108.0 degC in 3466 packets (all packets)
Temperature ant 4: 
      01 -> 108.0 degC in 3466 packets (all packets)
Number of external events: 
      3 in 2652 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 814 packets: 2653, 2654, 2655, 2656, 2657, 2658, 2659, 2660, 2661, 2662, 2663, 2664, 2665, 2666, 2667, 2668, 2669, 2670, ...
Number of generated alerts: 
      3 in 2652 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 814 packets: 2653, 2654, 2655, 2656, 2657, 2658, 2659, 2660, 2661, 2662, 2663, 2664, 2665, 2666, 2667, 2668, 2669, 2670, ...
Survey memory error: 
      0 in 3466 packets (all packets)
Event memory error: 
      0 in 3466 packets (all packets)
Configuration error: 
      0 in 3466 packets (all packets)
SDRAM CRC error: 
      0 in 3466 packets (all packets)
Radio gain: 
      0 in 3466 packets (all packets)
Radio bandwidth: 
      0 in 3466 packets (all packets)
Digital gain: 
      0 in 3466 packets (all packets)
Analog gain: 
      0 in 3466 packets (all packets)

EVENT DATA READER
-- File 20230721_170910_1229.dat, 16 EW pages found. Extra packets: 202.
   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 2652 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 612 packets: 2653, 2654, 2655, 2656, 2657, 2658, 2659, 2660, 2661, 2662, 2663, 2664, 2665, 2666, 2667, 2668, 2669, 2670, ...
   LS 32 bits of C10MHz from descriptor (period 430s)  from 11.2068708 to 18.3925498
      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, ...
      -7.1856790 in 1 packets: 2652
   Memory page number from 43 to 58
      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 15 packets: 204, 408, 612, 816, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 2856, 3060
   Event page number from 1 to 13
      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, 408, 612, 816, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2856, 3060
      -12 in 1 packets: 2652
   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-21T17:09:22.518.951.637
   Min EW header abs. time found among all events            : 2023-07-21T17:09:22.574.440.000
   Max EW event (1st sample) abs. time found among all events: 2023-07-21T17:09:29.659.585.648
   Max EW header abs. time found among all events            : 2023-07-21T17:09:29.715.074.000
   TM values from -262 to 223 median:-4.00000
--
Data structure of separate events (selected and re-ordered from the packet sequence):

 Event no. 1 total number of packets: 612
    Page no. 1:  204 packets  -- OK;  memory page(s):
      56 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      57 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      58 in 204 packets (all packets)  --OK-- 
   Event no. 1 pages: 3  ordered packets: 612
   TM values from -206 to 186 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=9 C1MHz=0.574440
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 611 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: 11.2068708
   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-21T17:09:22.574.440.000
   Event 1st sample abs. time : 2023-07-21T17:09:22.518.951.637)
   --- Rel. time correction for 1 points based on 14 XO calibration points at 1Hz counter from 0 to 13
   --- First point: 1Hz counter = 9, 32bit 10MHz counter = 11.206870800 corrected by 40bit 10MHz counter of 10.687917400 obtained at 1Hz counter of 9. Result: 9.518955164
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):               9.518954989
   Event data descriptor XO time (reconstructed seconds from XP start)    :               9.518955164
   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: 2652
    Page no. 1:  204 packets  -- OK;  memory page(s):
      43 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      44 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      45 in 204 packets (all packets)  --OK-- 
    Page no. 4:  204 packets  -- OK;  memory page(s):
      46 in 204 packets (all packets)  --OK-- 
    Page no. 5:  204 packets  -- OK;  memory page(s):
      47 in 204 packets (all packets)  --OK-- 
    Page no. 6:  204 packets  -- OK;  memory page(s):
      48 in 204 packets (all packets)  --OK-- 
    Page no. 7:  204 packets  -- OK;  memory page(s):
      49 in 204 packets (all packets)  --OK-- 
    Page no. 8:  204 packets  -- OK;  memory page(s):
      50 in 204 packets (all packets)  --OK-- 
    Page no. 9:  204 packets  -- OK;  memory page(s):
      51 in 204 packets (all packets)  --OK-- 
    Page no. 10:  204 packets  -- OK;  memory page(s):
      52 in 204 packets (all packets)  --OK-- 
    Page no. 11:  204 packets  -- OK;  memory page(s):
      53 in 204 packets (all packets)  --OK-- 
    Page no. 12:  204 packets  -- OK;  memory page(s):
      54 in 204 packets (all packets)  --OK-- 
    Page no. 13:  204 packets  -- OK;  memory page(s):
      55 in 204 packets (all packets)  --OK-- 
   Event no. 3 pages: 13  ordered packets: 2652
   TM values from -262 to 223 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=16 C1MHz=0.715074
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 2651 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: 18.3474828
   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-21T17:09:29.715.074.000
   Event 1st sample abs. time : 2023-07-21T17:09:29.659.585.648)
   --- Rel. time correction for 1 points based on 14 XO calibration points at 1Hz counter from 0 to 13
   --- First point: 1Hz counter = 16, 32bit 10MHz counter = 18.347482800 corrected by 40bit 10MHz counter of 14.687904200 obtained at 1Hz counter of 13. Result: 16.659590311
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):              16.659590136
   Event data descriptor XO time (reconstructed seconds from XP start)    :              16.659590311
   Sampling frequency correction factor for this event:     0.999996800
--
Extremes in separate events:

 - Event number: 1 from 2023-07-21T17:09:22.518.951.637 to 2023-07-21T17:09:22.529.355.672 (XO: 9.518954989 - 9.529359025)
   Min TM value:-206 at an offset of 4230.852 usec -> 2023-07-21T17:09:22.523.182.488 (XO: 9.523185841)
   Max TM value:186 at an offset of 4233.552 usec -> 2023-07-21T17:09:22.523.185.188 (XO: 9.523188541)
   Max dTM/dt [1/us]:1.75e+03 at an offset of 4230.964 usec -> 2023-07-21T17:09:22.523.182.601 (XO: 9.523185954)
   Min dTM/dt [1/us]:-1.72e+03 at an offset of 4233.689 usec -> 2023-07-21T17:09:22.523.185.326 (XO: 9.523188679)
   Med: -4.00000   Ave: -4.3953203   Std: 14.997981

 - Event number: 2 --EMPTY-- 

 - Event number: 3 from 2023-07-21T17:09:29.659.585.648 to 2023-07-21T17:09:29.704.669.792 (XO: 16.659590136 - 16.704674280)
   Min TM value:-262 at an offset of 24448.791 usec -> 2023-07-21T17:09:29.684.034.438 (XO: 16.684038926)
   Max TM value:223 at an offset of 4209.476 usec -> 2023-07-21T17:09:29.663.795.123 (XO: 16.663799612)
   Max dTM/dt [1/us]:2.16e+03 at an offset of 24448.916 usec -> 2023-07-21T17:09:29.684.034.563 (XO: 16.684039051)
   Min dTM/dt [1/us]:-2.22e+03 at an offset of 44338.954 usec -> 2023-07-21T17:09:29.703.924.602 (XO: 16.703929090)
   Med: -4.00000   Ave: -4.3920717   Std: 17.229860
