-- ERROR --
-----------------> BLESK ver.2021-02-27 run on Tue Mar  7 18:33:25 2023 UTC
-- File 20220525_041728_1229.dat, 2448  packets found.
APID:
      1229 (EW) in 2448 packets (all packets)
Mode:
      1 (EBEW-SRSL) in 2448 packets (all packets)
Total number of packets: 
      2448 in 2448 packets (all packets)
Packet No from 1 to 2448
   Sequence of packet numbers -- OK -- 
Hz and MHz counters from 0.005550 to 0.005550
-each separately from 0s to 0s and from 5550us to 5550us.
   Differences in neigboring packets: 
      0.000000 in 2447 packets (all packets)
MIU packet time from 2022-05-25T04:17:31.005.550.000 to 2022-05-25T04:17:31.005.550.000
   Differences in neigboring packets: 
      0.000000 in 2447 packets (all packets)
MIU orbit number: 
      60000 in 2448 packets (all packets)
MIU orbit information / directon: 
      0 (DOWN) in 2448 packets (all packets)
MIU orbit information / number of events: 
      0 in 2448 packets (all packets)
Waveform overflows in 306us: 
      0 (none) in 2448 packets (all packets)
Instrument anomalies: 
      0 (OK) in 2448 packets (all packets)
FPGA configuration version: 
      211 in 2448 packets (all packets)
10 MHz counter at the last 1Hz pulse from 0.0000000 to 0.0000000
   Differences in neigboring packets: 
      0.0000000 in 2447 packets (all packets)
Temperature FPGA: 
      00 -> 55.0 degC in 2448 packets (all packets)
Temperature XO: 
      00 -> -273.1 degC in 2448 packets (all packets)
Temperature ant 3: 
      00 -> 115.9 degC in 2448 packets (all packets)
Temperature ant 4: 
      00 -> 115.9 degC in 2448 packets (all packets)
Number of external events: 
      1 in 2448 packets (all packets)
Number of generated alerts: 
      0 in 2448 packets (all packets)
Survey memory error: 
      0 in 2448 packets (all packets)
Event memory error: 
      0 in 2448 packets (all packets)
Configuration error: 
      1 in 2448 packets (all packets)
      -> ERROR
SDRAM CRC error: 
      0 in 2448 packets (all packets)
Radio gain: 
      0 in 2448 packets (all packets)
Radio bandwidth: 
      3 in 2448 packets (all packets)
Digital gain: 
      0 in 2448 packets (all packets)
Analog gain: 
      8 in 2448 packets (all packets)

EVENT DATA READER
-- File 20220525_041728_1229.dat, 12 EW pages found. Extra packets: 0.
   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 1
      1 in 2448 packets (all packets)
   LS 32 bits of C10MHz from descriptor (period 430s)  from 0.0000000 to 16.3642322
      Difference between the neighboring packets: 
      -15.9633298 in 1 packets: 1
      0.0000170 in 2442 packets: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, ...
      -0.0298094 in 1 packets: 1632
      16.3503942 in 1 packets: 1633
      -16.3523492 in 1 packets: 1749
      16.3523832 in 1 packets: 1750
   Memory page number from 0 to 114
      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, 1428, 1836, 2040, 2244
      104 in 1 packets: 1632
   Event page number from 1 to 12
      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, 1428, 1836, 2040, 2244
      -11 in 1 packets: 1632
   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: 2022-05-25T04:17:30.950.061.587
   Min EW header abs. time found among all events            : 2022-05-25T04:17:31.005.550.000
   Max EW event (1st sample) abs. time found among all events: 2022-05-25T04:17:30.950.061.587
   Max EW header abs. time found among all events            : 2022-05-25T04:17:31.005.550.000
   TM values from -2045 to 2037 median:-4.00000
--
Data structure of separate events (selected and re-ordered from the packet sequence):

 Event no. 1 total number of packets: 2448
    Page no. 1:  204 packets  -- OK;  memory page(s):
      111 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      112 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      113 in 204 packets (all packets)  --OK-- 
    Page no. 4:  204 packets  -- OK;  memory page(s):
      114 in 204 packets (all packets)  --OK-- 
    Page no. 5:  204 packets  -- OK;  memory page(s):
      0 in 204 packets (all packets)  --OK-- 
    Page no. 6:  204 packets  -- OK;  memory page(s):
      1 in 204 packets (all packets)  --OK-- 
    Page no. 7:  204 packets  -- OK;  memory page(s):
      2 in 204 packets (all packets)  --OK-- 
    Page no. 8:  204 packets  -- OK;  memory page(s):
      3 in 204 packets (all packets)  --OK-- 
    Page no. 9:  204 packets  -- OK;  memory page(s):
      4 in 204 packets (all packets)  --OK-- 
    Page no. 10:  204 packets  -- OK;  memory page(s):
      5 in 204 packets (all packets)  --OK-- 
    Page no. 11:  204 packets  -- OK;  memory page(s):
      6 in 204 packets (all packets)  --OK-- 
    Page no. 12:  204 packets  -- OK;  memory page(s):
      7 in 204 packets (all packets)  --OK-- 
   Event no. 1 pages: 12  ordered packets: 2448
   TM values from -2045 to 2037 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=0 C1MHz=0.005550
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      16.3503942 in 1 packets: 1
      0.0000170 in 2442 packets: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, ...
      413.1443804 in 1 packets: 117
      16.3523832 in 1 packets: 118
      429.0979266 in 1 packets: 816
      413.5333998 in 1 packets: 817
      -- ERROR -- incorrect differences for packets of this event. 
   Event type -- OK -- (constant for all packets of this event): External
   Gain -- OK -- (constant for all packets of this event): 1/2x(ant3)
   Header abs. time  -- OK -- (constant for all packets of this event): 2022-05-25T04:17:31.005.550.000
   Event 1st sample abs. time : 2022-05-25T04:17:30.950.061.587)
   --- Rel. time correction for 1 points based on 101 XO calibration points at 1Hz counter from 0 to 28
   --- First point: 1Hz counter = 0, 32bit 10MHz counter = 0.000000000 corrected by 40bit 10MHz counter of 0.503599800 obtained at 1Hz counter of 0. Result: -0.503601965
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):              -0.503602140
   Event data descriptor XO time (reconstructed seconds from XP start)    :              -0.503601965
   Sampling frequency correction factor for this event:     0.999995700
--
Extremes in separate events:

 - Event number: 1 from 2022-05-25T04:17:30.950.061.587 to 2022-05-25T04:17:30.991.677.765 (XO: -0.503602140 - -0.461985962)
   Min TM value:-2045 at an offset of 3489.453 usec -> 2022-05-25T04:17:30.953.551.039 (XO: -0.500112688)
   Max TM value:2037 at an offset of 8978.276 usec -> 2022-05-25T04:17:30.959.039.863 (XO: -0.494623864)
   Max dTM/dt [1/us]:1.53e+04 at an offset of 8876.651 usec -> 2022-05-25T04:17:30.958.938.237 (XO: -0.494725490)
   Min dTM/dt [1/us]:-1.33e+04 at an offset of 11692.375 usec -> 2022-05-25T04:17:30.961.753.962 (XO: -0.491909765)
   Med: -4.00000   Ave: -4.1499306   Std: 23.269735
