-- ERROR --
-----------------> BLESK ver.2021-02-27 run on Sun Mar 19 04:36:57 2023 UTC
-- File 20220614_114634_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 8.394772 to 12.237330
-each separately from 8s to 12s and from 237330us to 394772us.
   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, ...
      3.842558 in 1 packets: 408
MIU packet time from 2022-06-14T11:46:45.394.772.000 to 2022-06-14T11:46:49.237.330.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, ...
      3.842558 in 1 packets: 408
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 9.6467924 to 13.6467790
   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, ...
      3.9999866 in 1 packets: 408
Temperature FPGA: 
      00 -> 55.0 degC in 3466 packets (all packets)
Temperature XO: 
      C5 -> 43.6 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: 
      1 in 408 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 3058 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, ...
      3 in 3058 packets: 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, ...
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 20220614_114634_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
      1 in 408 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 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 10.1872222 to 13.9326452
      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, ...
      3.6899690 in 1 packets: 408
   Memory page number from 0 to 15
      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 17 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
      -43 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: 2022-06-14T11:46:45.339.283.825
   Min EW header abs. time found among all events            : 2022-06-14T11:46:45.394.772.000
   Max EW event (1st sample) abs. time found among all events: 2022-06-14T11:46:49.181.841.825
   Max EW header abs. time found among all events            : 2022-06-14T11:46:49.237.330.000
   TM values from -266 to 232 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 -215 to 193 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=8 C1MHz=0.394772
   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: 10.1872222
   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): 2022-06-14T11:46:45.394.772.000
   Event 1st sample abs. time : 2022-06-14T11:46:45.339.283.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: 0
   No packets in this event  -- NOT OK -- 

 Event no. 3 total number of packets: 2856
    Page no. 17:  204 packets  -- OK;  memory page(s):
      2 in 204 packets (all packets)  --OK-- 
    Page no. 18:  204 packets  -- OK;  memory page(s):
      3 in 204 packets (all packets)  --OK-- 
    Page no. 19:  204 packets  -- OK;  memory page(s):
      4 in 204 packets (all packets)  --OK-- 
    Page no. 20:  204 packets  -- OK;  memory page(s):
      5 in 204 packets (all packets)  --OK-- 
    Page no. 21:  204 packets  -- OK;  memory page(s):
      6 in 204 packets (all packets)  --OK-- 
    Page no. 22:  204 packets  -- OK;  memory page(s):
      7 in 204 packets (all packets)  --OK-- 
    Page no. 23:  204 packets  -- OK;  memory page(s):
      8 in 204 packets (all packets)  --OK-- 
    Page no. 24:  204 packets  -- OK;  memory page(s):
      9 in 204 packets (all packets)  --OK-- 
    Page no. 25:  204 packets  -- OK;  memory page(s):
      10 in 204 packets (all packets)  --OK-- 
    Page no. 26:  204 packets  -- OK;  memory page(s):
      11 in 204 packets (all packets)  --OK-- 
    Page no. 27:  204 packets  -- OK;  memory page(s):
      12 in 204 packets (all packets)  --OK-- 
    Page no. 28:  204 packets  -- OK;  memory page(s):
      13 in 204 packets (all packets)  --OK-- 
    Page no. 29:  204 packets  -- OK;  memory page(s):
      14 in 204 packets (all packets)  --OK-- 
    Page no. 30:  204 packets  -- OK;  memory page(s):
      15 in 204 packets (all packets)  --OK-- 
   Event no. 3 pages: 14  ordered packets: 2856
   TM values from -266 to 232 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=12 C1MHz=0.237330
   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: 13.8841102
   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): 2022-06-14T11:46:49.237.330.000
   Event 1st sample abs. time : 2022-06-14T11:46:49.181.841.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 2022-06-14T11:46:45.339.283.825 to 2022-06-14T11:46:45.346.219.825 (XO: -333.000000175 - -332.993064175)
   Min TM value:-215 at an offset of 3579.262 usec -> 2022-06-14T11:46:45.342.863.087 (XO: -332.996420913)
   Max TM value:193 at an offset of 3537.938 usec -> 2022-06-14T11:46:45.342.821.762 (XO: -332.996462237)
   Max dTM/dt [1/us]:2.19e+03 at an offset of 3594.688 usec -> 2022-06-14T11:46:45.342.878.512 (XO: -332.996405487)
   Min dTM/dt [1/us]:-1.96e+03 at an offset of 3579.100 usec -> 2022-06-14T11:46:45.342.862.925 (XO: -332.996421075)
   Med: -4.00000   Ave: -4.3968606   Std: 8.5932956

 - Event number: 2 --EMPTY-- 

 - Event number: 3 from 2022-06-14T11:46:49.181.841.825 to 2022-06-14T11:46:49.230.393.825 (XO: -333.000000175 - -332.951448175)
   Min TM value:-266 at an offset of 36579.075 usec -> 2022-06-14T11:46:49.218.420.900 (XO: -332.963421100)
   Max TM value:232 at an offset of 46664.663 usec -> 2022-06-14T11:46:49.228.506.487 (XO: -332.953335513)
   Max dTM/dt [1/us]:2.37e+03 at an offset of 16703.000 usec -> 2022-06-14T11:46:49.198.544.825 (XO: -332.983297175)
   Min dTM/dt [1/us]:-2.62e+03 at an offset of 16677.450 usec -> 2022-06-14T11:46:49.198.519.275 (XO: -332.983322725)
   Med: -4.00000   Ave: -4.3692873   Std: 7.1591037
